deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.model.spatialschema
Class PolygonImpl

java.lang.Object
  extended by org.deegree.model.spatialschema.SurfacePatchImpl
      extended by org.deegree.model.spatialschema.PolygonImpl
All Implemented Interfaces:
Serializable, GenericSurface, Polygon, SurfacePatch

public class PolygonImpl
extends SurfacePatchImpl
implements Polygon, Serializable

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deegree.model.spatialschema.SurfacePatchImpl
area, centroid, crs, exteriorRing, interiorRings, interpolation, valid
 
Constructor Summary
protected PolygonImpl(Ring exteriorRing, Ring[] interiorRings, CoordinateSystem crs)
           
protected PolygonImpl(SurfaceInterpolation interpolation, Position[] exteriorRing, Position[][] interiorRings, CoordinateSystem crs)
          Creates a new PolygonImpl object.
 
Method Summary
 Object clone()
           
 boolean contains(Geometry gmo)
          The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry.
 boolean equals(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.
 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
 
Methods inherited from interface org.deegree.model.spatialschema.SurfacePatch
getArea, getCentroid, getCoordinateSystem, getExterior, getExteriorRing, getInterior, getInteriorRings, getInterpolation
 
Methods inherited from interface org.deegree.model.spatialschema.GenericSurface
getEnvelope, getPerimeter
 

Constructor Detail

PolygonImpl

protected PolygonImpl(Ring exteriorRing,
                      Ring[] interiorRings,
                      CoordinateSystem crs)
Parameters:
exteriorRing -
interiorRings -
crs -

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
Method Detail

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(Object other)
Overrides:
equals in class SurfacePatchImpl

toString

public String toString()
Overrides:
toString in class SurfacePatchImpl

clone

public Object clone()
Overrides:
clone in class 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

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org