deegree 2.2 (2008/12/22 11:33 build-3038-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

 class PolygonImpl
extends SurfacePatchImpl
implements Polygon, Serializable

Author:
Andreas Poth, last edited by: $Author: apoth $

Field Summary
 
Fields inherited from class org.deegree.model.spatialschema.SurfacePatchImpl
area, centroid, crs, exteriorRing, interiorRings, interpolation, valid
 
Constructor Summary
PolygonImpl(Ring exteriorRing, Ring[] interiorRings, CoordinateSystem crs)
           
PolygonImpl(SurfaceInterpolation interpolation, Position[] exteriorRing, Position[][] interiorRings, CoordinateSystem crs)
          Creates a new PolygonImpl object.
 
Method Summary
 Object clone()
          returns a shallow copy of the geometry
 boolean contains(Geometry gmo)
          The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry.
 boolean equals(Object other)
          checks if this curve is completly equal to the submitted geometry
 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

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

PolygonImpl

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.


equals

public boolean equals(Object other)
checks if this curve is completly equal to the submitted geometry

Overrides:
equals in class SurfacePatchImpl
Parameters:
other - object to compare to

toString

public String toString()
Overrides:
toString in class SurfacePatchImpl
Returns:

clone

public Object clone()
returns a shallow copy of the geometry

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

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

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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