|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Curve s 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 Curve
s 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 stringMethod Detail |
---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Curve
GeometricPrimitive.PrimitiveType.Curve
.
getPrimitiveType
in interface Curve
getPrimitiveType
in interface GeometricPrimitive
GeometricPrimitive.PrimitiveType.Curve
public Ring.RingType getRingType()
Ring
getRingType
in interface Ring
public LineString getAsLineString()
Curve
NOTE: This method is only safe to use when the curve is a LineString
or LinearRing
or it only
consists of LineStringSegment
s. In any other case it will fail.
getAsLineString
in interface Curve
public Pair<Point,Point> getBoundary()
Curve
getBoundary
in interface Curve
List
shall
be retrunedpublic List<CurveSegment> getCurveSegments()
Curve
getCurveSegments
in interface Curve
public Curve.CurveType getCurveType()
Ring
Curve.CurveType.Ring
.
getCurveType
in interface Curve
getCurveType
in interface Ring
Curve.CurveType.Ring
public Measure getLength(Unit requestedUnit)
getLength
in interface Curve
public boolean isClosed()
Curve
isClosed
in interface Curve
public List<Curve> getMembers()
Ring
Curve
s that constitute this Ring
.
getMembers
in interface Ring
public Point getStartPoint()
Curve
getStartPoint
in interface Curve
public Point getEndPoint()
Curve
getEndPoint
in interface Curve
public Points getControlPoints()
Curve
NOTE: This method is only safe to use when the curve is a LineString
or LinearRing
or it only
consists of LineStringSegment
s. In any other case it will fail.
getControlPoints
in interface Curve
protected 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 |