Package org.geolatte.geom
Class LinearRing<P extends Position>
- java.lang.Object
-
- org.geolatte.geom.Geometry<P>
-
- org.geolatte.geom.LineString<P>
-
- org.geolatte.geom.LinearRing<P>
-
- All Implemented Interfaces:
Serializable,Linear<P>,Simple
public class LinearRing<P extends Position> extends LineString<P>
ALineStringthat is both closed and simple.- Author:
- Karel Maesen, Geovise BVBA creation-date: 4/14/11
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinearRing(CoordinateReferenceSystem<P> crs)LinearRing(LineString<P> lineString)LinearRing(PositionSequence<P> points, CoordinateReferenceSystem<P> crs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Q extends Position>
LinearRing<Q>as(Class<Q> castToType)GeometryTypegetGeometryType()Returns the type of thisGeometry.-
Methods inherited from class org.geolatte.geom.LineString
accept, getDimension, getEndPosition, getStartPosition, isClosed, isRing
-
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
-
LinearRing
public LinearRing(LineString<P> lineString)
-
LinearRing
public LinearRing(CoordinateReferenceSystem<P> crs)
-
LinearRing
public LinearRing(PositionSequence<P> points, CoordinateReferenceSystem<P> crs)
-
-
Method Detail
-
getGeometryType
public GeometryType getGeometryType()
Description copied from class:GeometryReturns the type of thisGeometry.- Overrides:
getGeometryTypein classLineString<P extends Position>- Returns:
- the
GeometryTypeof this instance.
-
as
public <Q extends Position> LinearRing<Q> as(Class<Q> castToType)
- Overrides:
asin classLineString<P extends Position>
-
-