com.supermap.data
Class GeoPoint
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoPoint
-
public class GeoPoint extends Geometry
The GeoPoint class is derived from theGeometryclass.This class is mainly used to model point geographic entity.
Point2DandGeoPointcan be used to represent 2D points, the different isGeoPointdescribes the feature entity,Point2Ddescribes a location point;GeoPointwith different styles can represent different feature entities,Point2Dis 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoPointclone()Returns a copy of the current GeoPoint object.voiddispose()Release the resource occupy by this object.doublegetX()Returns the X-coordinate of the GeoPoint object.doublegetY()Returns the Y-coordinate of the GeoPoint object.booleanisEmpty()Determines whether the current point geometry is null, that is both the X-coordinate and Y-coordinate are -1.7976931348623157e+308.voidsetX(double x)Sets the X-coordinate of the GeoPoint object.voidsetY(double y)Sets the Y-coordinate of the GeoPoint object.
-
-
-
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.
-
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.
-
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. SeeEnvironment.
-
-