|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.primitive.DefaultRing
public class DefaultRing
Default implementation of Ring.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Ring |
|---|
Ring.RingType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Curve |
|---|
Curve.CurveType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive |
|---|
GeometricPrimitive.PrimitiveType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
|---|
Geometry.GeometryType |
| Field Summary | |
|---|---|
protected List<Curve> |
members
The constituting Curve instances. |
protected List<CurveSegment> |
segments
The segments of all member curves. |
| Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
crs, env, id, jtsFactory, jtsGeometry, pm |
| Constructor Summary | |
|---|---|
protected |
DefaultRing(String id,
CRS crs,
PrecisionModel pm,
DefaultLineString singleCurve)
Creates a new DefaultRing instance from a closed DefaultLineString. |
|
DefaultRing(String id,
ICRS crs,
PrecisionModel pm,
LineStringSegment segment)
Creates a new DefaultRing instance from the given parameters. |
|
DefaultRing(String id,
ICRS crs,
PrecisionModel pm,
List<Curve> members)
Creates a new DefaultRing instance from the given parameters. |
| Method Summary | |
|---|---|
protected com.vividsolutions.jts.geom.LinearRing |
buildJTSGeometry()
|
LineString |
getAsLineString()
Returns a linear interpolated representation of the curve. |
Pair<Point,Point> |
getBoundary()
The boundary of a curve is the set of points at either end of the curve. |
Points |
getControlPoints()
Convenience method for accessing the control points of linear interpolated curves. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
List<CurveSegment> |
getCurveSegments()
Returns the segments that constitute this curve. |
Curve.CurveType |
getCurveType()
Must always return Curve.CurveType.Ring. |
Point |
getEndPoint()
Returns the end point of the curve. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY. |
Measure |
getLength(Unit requestedUnit)
|
List<Curve> |
getMembers()
Returns the Curves that constitute this Ring. |
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Curve. |
Ring.RingType |
getRingType()
Returns the type of ring. |
Point |
getStartPoint()
Returns the start point of the curve. |
boolean |
isClosed()
Returns whether the curve forms a closed loop. |
| Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.geometry.Geometry |
|---|
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
| Methods inherited from interface org.deegree.commons.tom.gml.GMLObject |
|---|
getGMLProperties |
| Field Detail |
|---|
protected List<Curve> members
Curve instances.
protected List<CurveSegment> segments
| Constructor Detail |
|---|
public DefaultRing(String id,
ICRS crs,
PrecisionModel pm,
List<Curve> members)
DefaultRing instance from the given parameters.
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullmembers - the Curves that compose the Ring
public DefaultRing(String id,
ICRS crs,
PrecisionModel pm,
LineStringSegment segment)
DefaultRing instance from the given parameters.
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullsegment - the segment that composes the Ring
protected DefaultRing(String id,
CRS crs,
PrecisionModel pm,
DefaultLineString singleCurve)
DefaultRing instance from a closed DefaultLineString.
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullsingleCurve - closed line string| Method Detail |
|---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension in interface Geometrypublic Geometry.GeometryType getGeometryType()
GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRY.
getGeometryType in interface GeometrygetGeometryType in interface GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRYpublic GeometricPrimitive.PrimitiveType getPrimitiveType()
CurveGeometricPrimitive.PrimitiveType.Curve.
getPrimitiveType in interface CurvegetPrimitiveType in interface GeometricPrimitiveGeometricPrimitive.PrimitiveType.Curvepublic Ring.RingType getRingType()
Ring
getRingType in interface Ringpublic LineString getAsLineString()
Curve
NOTE: This method is only safe to use when the curve is a LineString or LinearRing or it only
consists of LineStringSegments. In any other case it will fail.
getAsLineString in interface Curvepublic Pair<Point,Point> getBoundary()
Curve
getBoundary in interface CurveList shall
be retrunedpublic List<CurveSegment> getCurveSegments()
Curve
getCurveSegments in interface Curvepublic Curve.CurveType getCurveType()
RingCurve.CurveType.Ring.
getCurveType in interface CurvegetCurveType in interface RingCurve.CurveType.Ringpublic Measure getLength(Unit requestedUnit)
getLength in interface Curvepublic boolean isClosed()
Curve
isClosed in interface Curvepublic List<Curve> getMembers()
RingCurves that constitute this Ring.
getMembers in interface Ringpublic Point getStartPoint()
Curve
getStartPoint in interface Curvepublic Point getEndPoint()
Curve
getEndPoint in interface Curvepublic Points getControlPoints()
Curve
NOTE: This method is only safe to use when the curve is a LineString or LinearRing or it only
consists of LineStringSegments. In any other case it will fail.
getControlPoints in interface Curveprotected com.vividsolutions.jts.geom.LinearRing buildJTSGeometry()
buildJTSGeometry in class AbstractDefaultGeometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||