java.lang.Object | ||
↳ | com.esri.core.geometry.Geometry | |
↳ | com.esri.core.geometry.Point |
A Point is a zero-dimensional object that represents a specific (X,Y) location in a two-dimensional XY-Plane. In case of Geographic Coordinate Systems, the X coordinate is the longitude and the Y is the latitude.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.core.geometry.Geometry
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Point()
Creates an empty 2D point.
| |||||||||||
Point(double x, double y)
Creates a 2D Point with specified X and Y coordinates.
| |||||||||||
Point(double x, double y, double z)
Creates a 3D point with specified X, Y and Z coordinates.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
applyTransformation(Transformation2D transform)
Applies 2D affine transformation in XY plane.
| ||||||||||
void |
copyTo(Geometry dst)
Copies this geometry to another geometry of the same type.
| ||||||||||
Geometry |
createInstance()
Creates an instance of an empty geometry of the same type.
| ||||||||||
boolean |
equals(Object _other)
Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.
| ||||||||||
int |
getDimension()
Returns the topological dimension of the geometry object based on the geometry's type.
| ||||||||||
double |
getM()
Returns the attribute M of this point.
| ||||||||||
Geometry.Type |
getType()
Returns the geometry type.
| ||||||||||
final double |
getX()
Returns the X coordinate of the point.
| ||||||||||
final double |
getY()
Returns the Y coordinate of this point.
| ||||||||||
double |
getZ()
Returns the Z coordinate of this point.
| ||||||||||
int |
hashCode()
Returns the hash code for the point.
| ||||||||||
boolean |
isEmpty()
Indicates if the geometry object contains geometric information.
| ||||||||||
void |
queryEnvelope(Envelope env)
Gets the axis aligned bounding box of the geometry.
| ||||||||||
void |
setEmpty()
Sets the geometry to its original initialization state by releasing all data referenced by the geometry.
| ||||||||||
void |
setM(double m)
Sets the M coordinate of this point.
| ||||||||||
void |
setX(double x)
Sets the X coordinate of the point.
| ||||||||||
void |
setXY(double x, double y)
Set the X and Y coordinate of the point.
| ||||||||||
void |
setY(double y)
Sets the Y coordinate of this point.
| ||||||||||
void |
setZ(double z)
Sets the Z coordinate of this point.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.core.geometry.Geometry
| |||||||||||
From class
java.lang.Object
|
Creates an empty 2D point.
Creates a 2D Point with specified X and Y coordinates. In case of Geographic Coordinate Systems, the X coordinate is the longitude and the Y is the latitude.
x | The X coordinate of the new 2D point. |
---|---|
y | The Y coordinate of the new 2D point. |
Creates a 3D point with specified X, Y and Z coordinates. In case of Geographic Coordinate Systems, the X coordinate is the longitude and the Y is the latitude.
x | The X coordinate of the new 3D point. |
---|---|
y | The Y coordinate of the new 3D point. |
z | The Z coordinate of the new 3D point. |
Applies 2D affine transformation in XY plane.
transform | The affine transformation to be applied to this geometry. |
---|
Copies this geometry to another geometry of the same type. The result geometry is an exact copy.
Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.
Returns the topological dimension of the geometry object based on the geometry's type.
Returns 0 for point and multipoint.
Returns 1 for lines and polylines.
Returns 2 for polygons and envelopes
Returns 3 for objects with volume
Returns the attribute M of this point.
Returns the X coordinate of the point.
Returns the Y coordinate of this point.
Returns the Z coordinate of this point.
Returns the hash code for the point.
Indicates if the geometry object contains geometric information. IsEmpty returns true when the geometry object does not contain geometric information beyond its original initialization state.
Gets the axis aligned bounding box of the geometry.
env | The envelope to return the result in. |
---|
Sets the geometry to its original initialization state by releasing all data referenced by the geometry.
Sets the M coordinate of this point.
m | The M coordinate to be set for this point. |
---|
Sets the X coordinate of the point.
x | The X coordinate to be set for this point. |
---|
Set the X and Y coordinate of the point.
x | X coordinate of the point. |
---|---|
y | Y coordinate of the point. |
Sets the Y coordinate of this point.
y | The Y coordinate to be set for this point. |
---|
Sets the Z coordinate of this point.
z | The Z coordinate to be set for this point. |
---|