Package org.geolatte.geom
Class Point<P extends Position>
- java.lang.Object
-
- org.geolatte.geom.Geometry<P>
-
- org.geolatte.geom.Point<P>
-
- All Implemented Interfaces:
Serializable,Simple
public class Point<P extends Position> extends Geometry<P> implements Simple
A 0-dimensionalGeometry.- Author:
- Karel Maesen, Geovise BVBA, 2011
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Point(CoordinateReferenceSystem<P> crs)Point(Point<P> point)Point(PositionSequence<P> sequence, CoordinateReferenceSystem<P> crs)Point(P position, CoordinateReferenceSystem<P> crs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(GeometryVisitor<P> visitor)Accepts aGeometryVisitor.<Q extends Position>
Point<Q>as(Class<Q> castToType)intgetDimension()Returns the topological dimension of this instance.GeometryTypegetGeometryType()Returns the type of thisGeometry.PgetPosition()Returns thePositionof thisPoint.-
Methods inherited from class org.geolatte.geom.Geometry
checkCast, equals, forceToCrs, getCoordinateDimension, getCoordinateReferenceSystem, getCrs, getEnvelope, getNumPositions, getPositionClass, getPositionN, getPositions, getSRID, hashCode, isEmpty, nestPositionSequences, toString, writeReplace
-
-
-
-
Constructor Detail
-
Point
public Point(CoordinateReferenceSystem<P> crs)
-
Point
public Point(PositionSequence<P> sequence, CoordinateReferenceSystem<P> crs)
-
Point
public Point(P position, CoordinateReferenceSystem<P> crs)
-
-
Method Detail
-
getPosition
public P getPosition()
Returns thePositionof thisPoint.- Returns:
- the
Positionof thisPoint.
-
getDimension
public int getDimension()
Description copied from class:GeometryReturns the topological dimension of this instance. In non-homogenous collections, this will return the largest topological dimension of the containedGeometries.- Specified by:
getDimensionin classGeometry<P extends Position>- Returns:
- the topological dimension of this instance
-
getGeometryType
public GeometryType getGeometryType()
Description copied from class:GeometryReturns the type of thisGeometry.- Specified by:
getGeometryTypein classGeometry<P extends Position>- Returns:
- the
GeometryTypeof this instance.
-
-