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.
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

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 The X coordinate of the new 2D point.
y 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 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.

Public Methods

public void applyTransformation (Transformation2D transform)

Applies 2D affine transformation in XY plane.

Parameters
transform 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.

public Geometry createInstance ()

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

public boolean equals (Object _other)

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

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

public double getM ()

Returns the attribute M of this point.

public Geometry.Type getType ()

Returns the geometry type.

Returns
  • Returns the geometry type.

public final double getX ()

Returns the X coordinate of the point.

public final double getY ()

Returns the Y coordinate of this point.

public double getZ ()

Returns the Z coordinate of this point.

public int hashCode ()

Returns the hash code for the point.

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 Returns true if this geometry is empty.

public void queryEnvelope (Envelope env)

Gets the axis aligned bounding box of the geometry.

Parameters
env 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 The M coordinate to be set for this point.

public void setX (double x)

Sets the X coordinate of the point.

Parameters
x 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 X coordinate of the point.
y Y coordinate of the point.

public void setY (double y)

Sets the Y coordinate of this point.

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

public void setZ (double z)

Sets the Z coordinate of this point.

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