|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.tom.Reference<T> org.deegree.commons.tom.gml.GMLReference<T> org.deegree.geometry.refs.GeometryReference<T> org.deegree.geometry.refs.GeometricPrimitiveReference<T> org.deegree.geometry.refs.CurveReference<T>
T
- public class CurveReference<T extends Curve>
The class TODO add class documentation here.
Nested Class Summary |
---|
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 |
Constructor Summary | |
---|---|
CurveReference(GMLReferenceResolver resolver,
String uri,
String baseURL)
Creates a new CurveReference instance. |
Method Summary | |
---|---|
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. |
List<CurveSegment> |
getCurveSegments()
Returns the segments that constitute this curve. |
Curve.CurveType |
getCurveType()
Returns the type of curve. |
Point |
getEndPoint()
Returns the end point of the curve. |
Measure |
getLength(Unit requestedUnit)
|
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Returns the type of primitive. |
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.refs.GeometricPrimitiveReference |
---|
getGeometryType |
Methods inherited from class org.deegree.geometry.refs.GeometryReference |
---|
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
Methods inherited from class org.deegree.commons.tom.Reference |
---|
getId, getReferencedObject, getURI, isLocal, isResolved, resolve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.geometry.primitive.GeometricPrimitive |
---|
getGeometryType |
Methods inherited from interface org.deegree.geometry.Geometry |
---|
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, 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 |
Constructor Detail |
---|
public CurveReference(GMLReferenceResolver resolver, String uri, String baseURL)
CurveReference
instance.
resolver
- used for resolving the reference, must not be null
uri
- the geometry's uri, must not be null
baseURL
- base URL for resolving the uri, may be null
(no resolving of relative URLs)Method Detail |
---|
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 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
public List<CurveSegment> getCurveSegments()
Curve
getCurveSegments
in interface Curve
public Curve.CurveType getCurveType()
Curve
getCurveType
in interface Curve
public Point getEndPoint()
Curve
getEndPoint
in interface Curve
public Measure getLength(Unit requestedUnit)
getLength
in interface Curve
public GeometricPrimitive.PrimitiveType getPrimitiveType()
GeometricPrimitive
getPrimitiveType
in interface Curve
getPrimitiveType
in interface GeometricPrimitive
getPrimitiveType
in class GeometricPrimitiveReference<T extends Curve>
public Point getStartPoint()
Curve
getStartPoint
in interface Curve
public boolean isClosed()
Curve
isClosed
in interface Curve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |