com.supermap.data

Class GeoPoint3D



  • public class GeoPoint3D
    extends Geometry3D

    The GeoPoint3D class is derived from the Geometry3D class.

    This class is mainly used to model point geographic entity.

    • Constructor Detail

      • GeoPoint3D

        public GeoPoint3D()
        Constructs a new GeoPoint3D object.
      • GeoPoint3D

        public GeoPoint3D(double x,
                          double y,
                          double z)
        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.
        z - The z-coordinate of the specified GeoPoint.
      • GeoPoint3D

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

        public GeoPoint3D(Point3D point)
        Creates a new GeoPoint object according to the specified arguments.
        Parameters:
        point - The specified Point3D 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.
      • getZ

        public double getZ()
        Returns the Z-coordinate of the GeoPoint object. Z value of the point object constructed using non-parameter constructor is the default value.
        Returns:
        The Z-coordinate of the GeoPoint object.
        Default:
        The default value is 0.0.
      • setZ

        public void setZ(double z)
        Sets the Z-coordinate of the GeoPoint object. Z value of the point object constructed using non-parameter constructor is the default value.
        Parameters:
        z - Used to set the Z-coordinate of the GeoPoint object.
      • clone

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

        public boolean isEmpty()
        Determines whether the current point object is null or not.
        Overrides:
        isEmpty in class Geometry
        Returns:
        Returns true it the GeoPoint object is empty.
        Default:
        The default value is ture.