|
||||||||||
| 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.DefaultOrientableCurve
public class DefaultOrientableCurve
Default implementation of OrientableCurve.
| 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 |
|---|
env, jtsFactory, jtsGeometry, pm |
| Constructor Summary | |
|---|---|
DefaultOrientableCurve(String id,
ICRS crs,
Curve baseCurve,
boolean isReversed)
Creates a new DefaultOrientableCurve instance from the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
contains(Geometry geometry)
Tests whether this geometry contains the specified geometry. |
boolean |
crosses(Geometry geometry)
Tests whether this geometry crosses the specified geometry. |
boolean |
equals(Geometry geometry)
Tests whether this geometry is equal to the specified geometry. |
LineString |
getAsLineString()
Returns a linear interpolated representation of the curve. |
Curve |
getBaseCurve()
Returns the Curve that this OrientableCurve is based on. |
Pair<Point,Point> |
getBoundary()
The boundary of a curve is the set of points at either end of the curve. |
Geometry |
getBuffer(Measure distance)
Return a new Geometry that contains all points with a distance from this Geometry that is less than or
equal to the specified distance. |
Points |
getControlPoints()
Convenience method for accessing the control points of linear interpolated curves. |
Geometry |
getConvexHull()
Returns the convex hull of the geometry. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
ICRS |
getCoordinateSystem()
Returns the associated spatial reference system. |
List<CurveSegment> |
getCurveSegments()
Returns the segments that constitute this curve. |
Curve.CurveType |
getCurveType()
Must always return Curve.CurveType.OrientableCurve. |
Geometry |
getDifference(Geometry geometry)
Returns the set-theoretic difference of this and the passed Geometry. |
Measure |
getDistance(Geometry geometry,
Unit requestedUnit)
Returns the minimum distance between this and the specified geometry. |
Point |
getEndPoint()
Returns the end point of the curve. |
Envelope |
getEnvelope()
Returns the minimal bounding box of the geometry. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY. |
String |
getId()
Returns the id of the geometry. |
Geometry |
getIntersection(Geometry geometry)
Returns the set-theoretic intersection of this and the passed Geometry. |
com.vividsolutions.jts.geom.Geometry |
getJTSGeometry()
Returns an equivalent (or best-fit) JTS geometry object. |
Measure |
getLength(Unit requestedUnit)
|
PrecisionModel |
getPrecision()
Returns the PrecisionModel of the geometry. |
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Curve. |
Point |
getStartPoint()
Returns the start point of the curve. |
Geometry |
getUnion(Geometry geometry)
Returns the set-theoretic union of this and the passed Geometry. |
boolean |
intersects(Geometry geometry)
Tests whether this geometry intersects the specified geometry. |
boolean |
isBeyond(Geometry geometry,
Measure distance)
Tests whether this geometry is beyond a specified distance of a second geometry. |
boolean |
isClosed()
Returns whether the curve forms a closed loop. |
boolean |
isDisjoint(Geometry geometry)
Tests whether this geometry is disjoint from the specified geometry. |
boolean |
isReversed()
Returns whether the orientation of this curve is reversed compared to the base curve. |
boolean |
isWithin(Geometry geometry)
tests whether the value of a geometric is topological located within this geometry. |
boolean |
isWithinDistance(Geometry geometry,
Measure distance)
Tests whether this geometry is within a specified distance of a second geometry. |
boolean |
overlaps(Geometry geometry)
Tests whether this geometry overlaps the specified geometry. |
boolean |
touches(Geometry geometry)
Tests whether this geometry touches the specified geometry. |
| Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
buildJTSGeometry, createFromJTS, getAsDefaultGeometry, getCentroid, getGMLProperties, isSFSCompliant, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString |
| 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 |
|---|
getCentroid, isSFSCompliant, setCoordinateSystem, setGMLProperties, setId, setPrecision |
| Methods inherited from interface org.deegree.commons.tom.gml.GMLObject |
|---|
getGMLProperties |
| Constructor Detail |
|---|
public DefaultOrientableCurve(String id,
ICRS crs,
Curve baseCurve,
boolean isReversed)
DefaultOrientableCurve instance from the given parameters.
id - identifier of the created geometry objectcrs - coordinate reference systembaseCurve - base curveisReversed - set to true, if the order of the base curve shall be reversed| Method Detail |
|---|
public String getId()
Geometry
In a GML representation of the geometry, this corresponds to the gml:id (GML 3 and later) or
gid (GML 2) attribute of the geometry element.
getId in interface ObjectgetId in interface GeometrygetId in class AbstractDefaultGeometrypublic ICRS getCoordinateSystem()
Geometry
getCoordinateSystem in interface GeometrygetCoordinateSystem in class AbstractDefaultGeometrypublic 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 List<CurveSegment> getCurveSegments()
Curve
getCurveSegments in interface Curvepublic Curve.CurveType getCurveType()
OrientableCurveCurve.CurveType.OrientableCurve.
getCurveType in interface CurvegetCurveType in interface OrientableCurveCurve.CurveType.OrientableCurvepublic Curve getBaseCurve()
OrientableCurveCurve that this OrientableCurve is based on.
getBaseCurve in interface OrientableCurveCurvepublic boolean isReversed()
OrientableCurve
isReversed in interface OrientableCurvepublic Point getEndPoint()
Curve
getEndPoint in interface Curvepublic Point getStartPoint()
Curve
getStartPoint in interface Curvepublic boolean contains(Geometry geometry)
Geometry
contains in interface Geometrycontains in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry contains geometrypublic boolean crosses(Geometry geometry)
Geometry
crosses in interface Geometrycrosses in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry crosses geometrypublic Geometry getDifference(Geometry geometry)
GeometryGeometry.
getDifference in interface GeometrygetDifference in class AbstractDefaultGeometrygeometry - other geometry, must not be null
null (empty set)
public Measure getDistance(Geometry geometry,
Unit requestedUnit)
Geometry
getDistance in interface GeometrygetDistance in class AbstractDefaultGeometrygeometry - second geometryrequestedUnit - unit of the
public boolean equals(Geometry geometry)
Geometry
equals in interface Geometryequals in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry is equal to geometrypublic Pair<Point,Point> getBoundary()
Curve
getBoundary in interface CurveList shall
be retrunedpublic Geometry getBuffer(Measure distance)
GeometryGeometry that contains all points with a distance from this Geometry that is less than or
equal to the specified distance.
getBuffer in interface GeometrygetBuffer in class AbstractDefaultGeometrypublic Geometry getConvexHull()
Geometry
getConvexHull in interface GeometrygetConvexHull in class AbstractDefaultGeometrypublic int getCoordinateDimension()
Geometry
getCoordinateDimension in interface Geometrypublic Envelope getEnvelope()
Geometry
getEnvelope in interface GeometrygetEnvelope in class AbstractDefaultGeometrypublic Measure getLength(Unit requestedUnit)
getLength in interface Curvepublic PrecisionModel getPrecision()
GeometryPrecisionModel of the geometry.
getPrecision in interface GeometrygetPrecision in class AbstractDefaultGeometrypublic Geometry getIntersection(Geometry geometry)
GeometryGeometry.
getIntersection in interface GeometrygetIntersection in class AbstractDefaultGeometrygeometry - other geometry, must not be null
null (empty set)public boolean intersects(Geometry geometry)
Geometry
intersects in interface Geometryintersects in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry intersects geometrypublic boolean isDisjoint(Geometry geometry)
Geometry
isDisjoint in interface GeometryisDisjoint in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry is disjoint from geometrypublic boolean overlaps(Geometry geometry)
Geometry
overlaps in interface Geometryoverlaps in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry overlaps geometrypublic boolean touches(Geometry geometry)
Geometry
touches in interface Geometrytouches in class AbstractDefaultGeometrygeometry - the Geometry to test this Geometry against
Geometry touches geometry
public boolean isBeyond(Geometry geometry,
Measure distance)
Geometry
isBeyond in interface GeometryisBeyond in class AbstractDefaultGeometrygeometry - second geometry
distancepublic boolean isClosed()
Curve
isClosed in interface Curvepublic boolean isWithin(Geometry geometry)
GeometryGeometry.contains(Geometry) method
isWithin in interface GeometryisWithin in class AbstractDefaultGeometry
public boolean isWithinDistance(Geometry geometry,
Measure distance)
Geometry
isWithinDistance in interface GeometryisWithinDistance in class AbstractDefaultGeometrygeometry - second geometry
distancepublic Geometry getUnion(Geometry geometry)
GeometryGeometry.
getUnion in interface GeometrygetUnion in class AbstractDefaultGeometrygeometry - other geometry, must not be null
public 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 Curvepublic com.vividsolutions.jts.geom.Geometry getJTSGeometry()
AbstractDefaultGeometry
getJTSGeometry in class AbstractDefaultGeometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||