Class Point

Hierarchy: Object , Geometry, Point
All Implemented Interfaces: Cloneable , Comparable , Serializable , Puntal
public class Point
extends Geometry
implements Puntal
Represents a single point. A Point is topologically valid if and only if:
  • the coordinate which defines it (if any) is a valid coordinate (i.e. does not have an NaN X or Y ordinate)

Other

  • version: 1.7
public Point(Coordinate coordinate, PrecisionModel precisionModel, int SRID)
Constructs a Point with the given coordinate.
Parameters:
coordinate - coordinate the coordinate on which to base this Point , or null to create the empty geometry.
precisionModel - precisionModel the specification of the grid of allowable points for this Point
SRID - SRID the ID of the Spatial Reference System used by this Point
Deprecation:
Use GeometryFactory instead
public Point(CoordinateSequence coordinates, GeometryFactory factory)
Parameters:
coordinates - coordinates contains the single coordinate on which to base this Point , or null to create the empty geometry.
public Coordinate[] getCoordinates()
public int getNumPoints()
public boolean isEmpty()
public boolean isSimple()
public int getDimension()
public int getBoundaryDimension()
public double getX()
public double getY()
public Coordinate getCoordinate()
public String getGeometryType()
public Geometry getBoundary()
Gets the boundary of this geometry. Zero-dimensional geometries have no boundary by definition, so an empty GeometryCollection is returned.
See also:
Geometry#getBoundary
Returns:
an empty GeometryCollection
protected Envelope computeEnvelopeInternal()
public boolean equalsExact(Geometry other, double tolerance)
public void apply(CoordinateFilter filter)
public void apply(CoordinateSequenceFilter filter)
public void apply(GeometryFilter filter)
public void apply(GeometryComponentFilter filter)
public Object clone()
Creates and returns a full copy of this Point object. (including all coordinates contained by it).
Returns:
a clone of this instance
protected Point copyInternal()
public Point reverse()
protected Point reverseInternal()
public void normalize()
protected int compareToSameClass(Object other)
protected int compareToSameClass(Object other, CoordinateSequenceComparator comp)
protected int getTypeCode()
public CoordinateSequence getCoordinateSequence()