|
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.Object org.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 reversedMethod 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 Geometry
getId
in interface GMLObject
getId
in class AbstractDefaultGeometry
public CRS getCoordinateSystem()
Geometry
getCoordinateSystem
in interface Geometry
getCoordinateSystem
in class AbstractDefaultGeometry
public Surface.SurfaceType getSurfaceType()
OrientableSurface
Surface.SurfaceType.OrientableSurface
.
getSurfaceType
in interface OrientableSurface
getSurfaceType
in interface Surface
Surface.SurfaceType.OrientableSurface
public Surface getBaseSurface()
OrientableSurface
Surface
that this OrientableSurface
is based on.
getBaseSurface
in interface OrientableSurface
public boolean isReversed()
OrientableSurface
isReversed
in interface OrientableSurface
public boolean contains(Geometry geometry)
Geometry
contains
in interface Geometry
contains
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
contains geometry
public boolean crosses(Geometry geometry)
Geometry
crosses
in interface Geometry
crosses
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
crosses geometry
public Geometry getDifference(Geometry geometry)
Geometry
Geometry
.
getDifference
in interface Geometry
getDifference
in class AbstractDefaultGeometry
geometry
- other geometry, must not be null
null
(empty set)public Measure getDistance(Geometry geometry, Unit requestedUnit)
Geometry
getDistance
in interface Geometry
getDistance
in class AbstractDefaultGeometry
geometry
- second geometryrequestedUnit
- unit of the
public boolean equals(Geometry geometry)
Geometry
equals
in interface Geometry
equals
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
is equal to geometry
public Measure getArea(Unit requestedBaseUnit)
getArea
in interface Surface
public Geometry getBuffer(Measure distance)
Geometry
Geometry
that contains all points with a distance from this Geometry that is less than or
equal to the specified distance.
getBuffer
in interface Geometry
getBuffer
in class AbstractDefaultGeometry
public Point getCentroid()
Geometry
getCentroid
in interface Geometry
getCentroid
in class AbstractDefaultGeometry
Point
that is the centroid of this geometrypublic Geometry getConvexHull()
Geometry
getConvexHull
in interface Geometry
getConvexHull
in class AbstractDefaultGeometry
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Envelope getEnvelope()
Geometry
getEnvelope
in interface Geometry
getEnvelope
in class AbstractDefaultGeometry
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public List<? extends SurfacePatch> getPatches()
Surface
getPatches
in interface Surface
public Measure getPerimeter(Unit requestedUnit)
getPerimeter
in interface Surface
public PrecisionModel getPrecision()
Geometry
PrecisionModel
of the geometry.
getPrecision
in interface Geometry
getPrecision
in class AbstractDefaultGeometry
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Surface
GeometricPrimitive.PrimitiveType.Surface
.
getPrimitiveType
in interface GeometricPrimitive
getPrimitiveType
in interface Surface
GeometricPrimitive.PrimitiveType.Surface
public Geometry getIntersection(Geometry geometry)
Geometry
Geometry
.
getIntersection
in interface Geometry
getIntersection
in class AbstractDefaultGeometry
geometry
- other geometry, must not be null
null
(empty set)public boolean intersects(Geometry geometry)
Geometry
intersects
in interface Geometry
intersects
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
intersects geometry
public boolean isDisjoint(Geometry geometry)
Geometry
isDisjoint
in interface Geometry
isDisjoint
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
is disjoint from geometry
public boolean overlaps(Geometry geometry)
Geometry
overlaps
in interface Geometry
overlaps
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
overlaps geometry
public boolean touches(Geometry geometry)
Geometry
touches
in interface Geometry
touches
in class AbstractDefaultGeometry
geometry
- the Geometry
to test this Geometry
against
Geometry
touches geometry
public boolean isBeyond(Geometry geometry, Measure distance)
Geometry
isBeyond
in interface Geometry
isBeyond
in class AbstractDefaultGeometry
geometry
- second geometry
distance
public boolean isWithin(Geometry geometry)
Geometry
Geometry.contains(Geometry)
method
isWithin
in interface Geometry
isWithin
in class AbstractDefaultGeometry
public boolean isWithinDistance(Geometry geometry, Measure distance)
Geometry
isWithinDistance
in interface Geometry
isWithinDistance
in class AbstractDefaultGeometry
geometry
- second geometry
distance
public Geometry getUnion(Geometry geometry)
Geometry
Geometry
.
getUnion
in interface Geometry
getUnion
in class AbstractDefaultGeometry
geometry
- other geometry, must not be null
public Points getExteriorRingCoordinates()
Surface
NOTE: 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 Surface
public List<Points> getInteriorRingsCoordinates()
Surface
NOTE: 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 Surface
public 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 |