|
||||||||||
| 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.DefaultCurve
public class DefaultCurve
Default implementation of Curve.
| 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 |
| Field Summary |
|---|
| Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
crs, env, id, jtsFactory, jtsGeometry, pm |
| Constructor Summary | |
|---|---|
DefaultCurve(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<CurveSegment> segments)
Creates a new DefaultCurve instance from the given parameters. |
|
| Method Summary | |
|---|---|
protected com.vividsolutions.jts.geom.LineString |
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. |
java.util.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. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY. |
Measure |
getLength(Unit requestedUnit)
|
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Curve. |
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, 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, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
| Methods inherited from interface org.deegree.gml.GMLObject |
|---|
getGMLProperties |
| Constructor Detail |
|---|
public DefaultCurve(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<CurveSegment> segments)
DefaultCurve instance from the given parameters.
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullsegments - segments that constitute the curve (never null)| Method Detail |
|---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension in interface Geometrypublic Pair<Point,Point> getBoundary()
Curve
getBoundary in interface CurveList shall
be retrunedpublic java.util.List<CurveSegment> getCurveSegments()
Curve
getCurveSegments in interface Curvepublic Measure getLength(Unit requestedUnit)
getLength in interface Curvepublic boolean isClosed()
Curve
isClosed in interface Curvepublic 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 Curve.CurveType getCurveType()
Curve
getCurveType in interface Curvepublic Point getStartPoint()
Curve
getStartPoint in interface Curvepublic Point getEndPoint()
Curve
getEndPoint in interface Curvepublic GeometricPrimitive.PrimitiveType getPrimitiveType()
CurveGeometricPrimitive.PrimitiveType.Curve.
getPrimitiveType in interface CurvegetPrimitiveType in interface GeometricPrimitiveGeometricPrimitive.PrimitiveType.Curvepublic Geometry.GeometryType getGeometryType()
GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRY.
getGeometryType in interface GeometrygetGeometryType in interface GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRYpublic 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.LineString buildJTSGeometry()
buildJTSGeometry in class AbstractDefaultGeometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||