public final class

Point

extends Geometry
implements Serializable
java.lang.Object
   ↳ com.esri.core.geometry.Geometry
     ↳ com.esri.core.geometry.Point

Class Overview

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.

Summary

[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.
boolean isValid()
Checks whether the Point is valid.
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.
String toString()
Returns string representation of the class for debugging purposes.
[Expand]
Inherited Methods
From class com.esri.core.geometry.Geometry
From class java.lang.Object

Public Constructors

public Point ()

Creates an empty 2D point.

public Point (double x, double y)

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.

Parameters
x double: The X coordinate of the new 2D point.
y double: The Y coordinate of the new 2D point.

public Point (double x, double y, double z)

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.

Parameters
x double: The X coordinate of the new 3D point.
y double: The Y coordinate of the new 3D point.
z double: The Z coordinate of the new 3D point.

Public Methods

public void applyTransformation (Transformation2D transform)

Applies 2D affine transformation in XY plane.

Parameters
transform Transformation2D: The affine transformation to be applied to this geometry.

public void copyTo (Geometry dst)

Copies this geometry to another geometry of the same type. The result geometry is an exact copy.

Parameters
dst Geometry

public Geometry createInstance ()

Creates an instance of an empty geometry of the same type.

Returns
Geometry

public boolean equals (Object _other)

Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.

Parameters
_other Object
Returns
boolean

public int getDimension ()

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
int Returns the integer value of the dimension of geometry.

public double getM ()

Returns the attribute M of this point.

Returns
double

public Geometry.Type getType ()

Returns the geometry type.

Returns
Geometry.Type Returns the geometry type.

public final double getX ()

Returns the X coordinate of the point.

Returns
double

public final double getY ()

Returns the Y coordinate of this point.

Returns
double

public double getZ ()

Returns the Z coordinate of this point.

Returns
double

public int hashCode ()

Returns the hash code for the point.

Returns
int

public boolean isEmpty ()

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.

Returns
boolean boolean Returns true if this geometry is empty.

public boolean isValid ()

Checks whether the Point is valid. The Point is valid if x and y are valid doubles, i.e. not NaN.

Returns
boolean true if the Point is valid

public void queryEnvelope (Envelope env)

Gets the axis aligned bounding box of the geometry.

Parameters
env Envelope: The envelope to return the result in.

public void setEmpty ()

Sets the geometry to its original initialization state by releasing all data referenced by the geometry.

public void setM (double m)

Sets the M coordinate of this point.

Parameters
m double: The M coordinate to be set for this point.

public void setX (double x)

Sets the X coordinate of the point.

Parameters
x double: The X coordinate to be set for this point.

public void setXY (double x, double y)

Set the X and Y coordinate of the point.

Parameters
x double: X coordinate of the point.
y double: Y coordinate of the point.

public void setY (double y)

Sets the Y coordinate of this point.

Parameters
y double: The Y coordinate to be set for this point.

public void setZ (double z)

Sets the Z coordinate of this point.

Parameters
z double: The Z coordinate to be set for this point.

public String toString ()

Returns string representation of the class for debugging purposes. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

Returns
String