|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| 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.DefaultOrientableSurface
public class DefaultOrientableSurface
Default implementation of OrientableSurface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Surface |
|---|
Surface.SurfaceType |
| 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 |
|---|
jtsFactory, jtsGeometry, pm |
| Constructor Summary | |
|---|---|
DefaultOrientableSurface(String id,
CRS crs,
Surface baseSurface,
boolean isReversed)
Creates a new DefaultOrientableSurface 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. |
Measure |
getArea(Unit requestedBaseUnit)
|
Surface |
getBaseSurface()
Returns the Surface that this OrientableSurface is based on. |
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. |
Point |
getCentroid()
Returns the centroid of the geometry. |
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. |
CRS |
getCoordinateSystem()
Returns the associated spatial reference system. |
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. |
Envelope |
getEnvelope()
Returns the minimal bounding box of the geometry. |
Points |
getExteriorRingCoordinates()
Convenience method for accessing the control points of the exterior ring of a simple polygon surface. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY. |
String |
getId()
Returns the id of the geometry. |
List<Points> |
getInteriorRingsCoordinates()
Convenience method for accessing the control points of the interior rings of a simple polygon surface. |
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. |
List<? extends SurfacePatch> |
getPatches()
Returns the patches that constitute this surface. |
Measure |
getPerimeter(Unit requestedUnit)
|
PrecisionModel |
getPrecision()
Returns the PrecisionModel of the geometry. |
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Surface. |
Surface.SurfaceType |
getSurfaceType()
Must always return Surface.SurfaceType.OrientableSurface. |
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 |
isDisjoint(Geometry geometry)
Tests whether this geometry is disjoint from the specified geometry. |
boolean |
isReversed()
Returns whether the orientation of this surface is reversed compared to the base surface. |
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, getGMLProperties, 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 |
|---|
setCoordinateSystem, setGMLProperties, setId, setPrecision |
| Methods inherited from interface org.deegree.gml.GMLObject |
|---|
getGMLProperties |
| Constructor Detail |
|---|
public DefaultOrientableSurface(String id,
CRS crs,
Surface baseSurface,
boolean isReversed)
DefaultOrientableSurface instance from the given parameters.
id - identifier, may be nullcrs - coordinate reference system, may be nullbaseSurface - base surfaceisReversed - set to true, if the orientation of the base Surface 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 GeometrygetId in interface GMLObjectgetId in class AbstractDefaultGeometrypublic CRS getCoordinateSystem()
Geometry
getCoordinateSystem in interface GeometrygetCoordinateSystem in class AbstractDefaultGeometrypublic Surface.SurfaceType getSurfaceType()
OrientableSurfaceSurface.SurfaceType.OrientableSurface.
getSurfaceType in interface OrientableSurfacegetSurfaceType in interface SurfaceSurface.SurfaceType.OrientableSurfacepublic Surface getBaseSurface()
OrientableSurfaceSurface that this OrientableSurface is based on.
getBaseSurface in interface OrientableSurfacepublic boolean isReversed()
OrientableSurface
isReversed in interface OrientableSurfacepublic 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 Measure getArea(Unit requestedBaseUnit)
getArea in interface Surfacepublic 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 Point getCentroid()
Geometry
getCentroid in interface GeometrygetCentroid in class AbstractDefaultGeometryPoint that is the centroid of this geometrypublic 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 Geometry.GeometryType getGeometryType()
GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRY.
getGeometryType in interface GeometrygetGeometryType in interface GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRYpublic List<? extends SurfacePatch> getPatches()
Surface
getPatches in interface Surfacepublic Measure getPerimeter(Unit requestedUnit)
getPerimeter in interface Surfacepublic PrecisionModel getPrecision()
GeometryPrecisionModel of the geometry.
getPrecision in interface GeometrygetPrecision in class AbstractDefaultGeometrypublic GeometricPrimitive.PrimitiveType getPrimitiveType()
SurfaceGeometricPrimitive.PrimitiveType.Surface.
getPrimitiveType in interface GeometricPrimitivegetPrimitiveType in interface SurfaceGeometricPrimitive.PrimitiveType.Surfacepublic 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 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 Points getExteriorRingCoordinates()
SurfaceNOTE: This method is only safe to use when the surface consists of a single planar patch that has a linear interpolated exterior ring.
getExteriorRingCoordinates in interface Surfacepublic List<Points> getInteriorRingsCoordinates()
SurfaceNOTE: This method is only safe to use when the surface consists of a single planar patch that has linear interpolated interior rings.
getInteriorRingsCoordinates in interface Surfacepublic com.vividsolutions.jts.geom.Geometry getJTSGeometry()
AbstractDefaultGeometry
getJTSGeometry in class AbstractDefaultGeometry
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||