com.supermap.data

Class GeoPoint



  • public class GeoPoint
    extends Geometry
    The GeoPoint class is derived from the Geometry class.

    This class is mainly used to model point geographic entity.

    Point2D and GeoPoint can be used to represent 2D points, the different is GeoPoint describes the feature entity, Point2D describes a location point; GeoPoint with different styles can represent different feature entities, Point2D is widely used to locate coordinates. When the object of this class has been released by the dispose() method, a ObjectDisposedException will throw out when call the method of this object.

    • Constructor Summary

      Constructors 
      Constructor and Description
      GeoPoint()
      Construct a new GeoPoint object, the X, Y coordinates of this point will be -1.7976931348623157e+308.
      GeoPoint(double x, double y)
      Creates a new GeoPoint object according to the specified arguments.
      GeoPoint(GeoPoint point)
      Initializes a new instance identical to the given GeoPoint object.
      GeoPoint(Point2D point)
      Creates a new GeoPoint object according to the specified arguments.
    • Constructor Detail

      • GeoPoint

        public GeoPoint()
        Construct a new GeoPoint object, the X, Y coordinates of this point will be -1.7976931348623157e+308.
      • GeoPoint

        public GeoPoint(double x,
                        double y)
        Creates a new GeoPoint object according to the specified arguments.
        Parameters:
        x - The x-coordinate of the specified GeoPoint.
        y - The y-coordinate of the specified GeoPoint.
      • GeoPoint

        public GeoPoint(GeoPoint point)
        Initializes a new instance identical to the given GeoPoint object.
        Parameters:
        point - The specified GeoPoint object.
      • GeoPoint

        public GeoPoint(Point2D point)
        Creates a new GeoPoint object according to the specified arguments.
        Parameters:
        point - The specified Point2D object.
    • Method Detail

      • dispose

        public void dispose()
        Release the resource occupy by this object.
        Overrides:
        dispose in class Geometry
      • getX

        public double getX()
        Returns the X-coordinate of the GeoPoint object.
        Returns:
        The X-coordinate of the GeoPoint object.
        Default:
        The defaulr value is :-1.79769313486232E+308
      • setX

        public void setX(double x)
        Sets the X-coordinate of the GeoPoint object.
        Parameters:
        x - Used to set the X-coordinate of the GeoPoint object.
      • getY

        public double getY()
        Returns the Y-coordinate of the GeoPoint object.
        Returns:
        The Y-coordinate of the GeoPoint object.
        Default:
        The defaulr value is :-1.79769313486232E+308
      • setY

        public void setY(double y)
        Sets the Y-coordinate of the GeoPoint object.
        Parameters:
        y - Used to set the Y-coordinate of the GeoPoint object.
        Default:
        The defaulr value is :-1.79769313486232E+308
      • clone

        public GeoPoint clone()
        Returns a copy of the current GeoPoint object.
        Specified by:
        clone in class Geometry
        Returns:
        The new GeoPoint object generated from the clone operation.
      • isEmpty

        public boolean isEmpty()
        Determines whether the current point geometry is null, that is both the X-coordinate and Y-coordinate are -1.7976931348623157e+308. The determine precision used is equal-zero precision by default. See Environment.
        Overrides:
        isEmpty in class Geometry
        Returns:
        Returns true it the GeoPoint object is empty.
        Default:
        The default value is ture.