org.deegree.model.spatialschema
Class PolygonImpl
java.lang.Object
org.deegree.model.spatialschema.SurfacePatchImpl
org.deegree.model.spatialschema.PolygonImpl
- All Implemented Interfaces:
- java.io.Serializable, GenericSurface, Polygon, SurfacePatch
public class PolygonImpl
- extends SurfacePatchImpl
- implements Polygon, java.io.Serializable
- Version:
- $Revision: 25223 $, $Date: 2010-07-09 09:30:18 +0200 (Fr, 09 Jul 2010) $
- Author:
- Andreas Poth, last edited by: $Author: apoth $
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
|
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry. |
boolean |
equals(java.lang.Object other)
|
SurfaceBoundary |
getBoundary()
The operation "boundary" shall return the boundary of this SurfacePatch represented as a collection of Curves
organized as a SurfaceBoundary, consisting of Curve instances along the boundary of the aggregate Surface, and
interior to the Surface where SurfacePatches are adjacent. |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
java.lang.String |
toString()
|
Methods inherited from class org.deegree.model.spatialschema.SurfacePatchImpl |
calculateCentroid, calculateParam, getArea, getCentroid, getCoordinateSystem, getEnvelope, getExterior, getExteriorRing, getInterior, getInteriorRings, getInterpolation, getPerimeter, isValid, setValid |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PolygonImpl
protected PolygonImpl(Ring exteriorRing,
Ring[] interiorRings,
CoordinateSystem crs)
throws GeometryException
- Parameters:
exteriorRing
- interiorRings
- crs
-
- Throws:
GeometryException
PolygonImpl
protected PolygonImpl(SurfaceInterpolation interpolation,
Position[] exteriorRing,
Position[][] interiorRings,
CoordinateSystem crs)
throws GeometryException
- Creates a new PolygonImpl object.
- Parameters:
interpolation
- exteriorRing
- interiorRings
- crs
-
- Throws:
GeometryException
getBoundary
public SurfaceBoundary getBoundary()
- The operation "boundary" shall return the boundary of this SurfacePatch represented as a collection of Curves
organized as a SurfaceBoundary, consisting of Curve instances along the boundary of the aggregate Surface, and
interior to the Surface where SurfacePatches are adjacent.
- Returns:
- the boundary of this SurfacePatch
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class SurfacePatchImpl
toString
public java.lang.String toString()
- Overrides:
toString
in class SurfacePatchImpl
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
intersects
public boolean intersects(Geometry gmo)
- The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. Within
a Complex, the Primitives do not intersect one another. In general, topologically structured data uses shared
geometric objects to capture intersection information.
- Specified by:
intersects
in interface SurfacePatch
- Returns:
- true if this surfacepatch intersects with given Geometry
contains
public boolean contains(Geometry gmo)
- The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry.
- Specified by:
contains
in interface SurfacePatch
- Returns:
- true if this surfacepatch contains given Geometry
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org