com.vividsolutions.jts.geom

Class Point

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class Point
extends Geometry

Basic implementation of Point.
Version:
1.6

Field Summary

Fields inherited from class com.vividsolutions.jts.geom.Geometry

SRID, envelope

Constructor Summary

Point(Coordinate coordinate, PrecisionModel precisionModel, int SRID)
Deprecated. Use GeometryFactory instead
Point(CoordinateSequence coordinates, GeometryFactory factory)

Method Summary

void
apply(CoordinateFilter filter)
void
apply(GeometryComponentFilter filter)
void
apply(GeometryFilter filter)
Object
clone()
protected int
compareToSameClass(Object other)
protected Envelope
computeEnvelopeInternal()
boolean
equalsExact(Geometry other, double tolerance)
Geometry
getBoundary()
int
getBoundaryDimension()
Coordinate
getCoordinate()
CoordinateSequence
getCoordinateSequence()
Coordinate[]
getCoordinates()
int
getDimension()
String
getGeometryType()
int
getNumPoints()
double
getX()
double
getY()
boolean
isEmpty()
boolean
isSimple()
boolean
isValid()
void
normalize()

Methods inherited from class com.vividsolutions.jts.geom.Geometry

apply, apply, apply, buffer, buffer, checkNotGeometryCollection, clone, compare, compareTo, compareToSameClass, computeEnvelopeInternal, contains, convexHull, crosses, difference, disjoint, distance, equal, equals, equalsExact, equalsExact, geometryChanged, geometryChangedAction, getArea, getBoundary, getBoundaryDimension, getCentroid, getCoordinate, getCoordinates, getDimension, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getGeometryType, getInteriorPoint, getLength, getNumGeometries, getNumPoints, getPrecisionModel, getSRID, getUserData, hasNonEmptyElements, hasNullElements, intersection, intersects, isEmpty, isEquivalentClass, isRectangle, isSimple, isValid, isWithinDistance, normalize, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, within

Constructor Details

Point

public Point(Coordinate coordinate,
             PrecisionModel precisionModel,
             int SRID)

Deprecated. Use GeometryFactory instead

Constructs a Point with the given coordinate.
Parameters:
coordinate - the coordinate on which to base this Point , or null to create the empty geometry.
precisionModel - the specification of the grid of allowable points for this Point
SRID - the ID of the Spatial Reference System used by this Point

Point

public Point(CoordinateSequence coordinates,
             GeometryFactory factory)
Parameters:
coordinates - contains the single coordinate on which to base this Point , or null to create the empty geometry.

Method Details

apply

public void apply(CoordinateFilter filter)
Overrides:
apply in interface Geometry

apply

public void apply(GeometryComponentFilter filter)
Overrides:
apply in interface Geometry

apply

public void apply(GeometryFilter filter)
Overrides:
apply in interface Geometry

clone

public Object clone()
Overrides:
clone in interface Geometry

compareToSameClass

protected int compareToSameClass(Object other)
Overrides:
compareToSameClass in interface Geometry

computeEnvelopeInternal

protected Envelope computeEnvelopeInternal()
Overrides:
computeEnvelopeInternal in interface Geometry

equalsExact

public boolean equalsExact(Geometry other,
                           double tolerance)
Overrides:
equalsExact in interface Geometry

getBoundary

public Geometry getBoundary()
Overrides:
getBoundary in interface Geometry

getBoundaryDimension

public int getBoundaryDimension()
Overrides:
getBoundaryDimension in interface Geometry

getCoordinate

public Coordinate getCoordinate()
Overrides:
getCoordinate in interface Geometry

getCoordinateSequence

public CoordinateSequence getCoordinateSequence()

getCoordinates

public Coordinate[] getCoordinates()
Overrides:
getCoordinates in interface Geometry

getDimension

public int getDimension()
Overrides:
getDimension in interface Geometry

getGeometryType

public String getGeometryType()
Overrides:
getGeometryType in interface Geometry

getNumPoints

public int getNumPoints()
Overrides:
getNumPoints in interface Geometry

getX

public double getX()

getY

public double getY()

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in interface Geometry

isSimple

public boolean isSimple()
Overrides:
isSimple in interface Geometry

isValid

public boolean isValid()
Overrides:
isValid in interface Geometry

normalize

public void normalize()
Overrides:
normalize in interface Geometry