deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.geometry.primitive.patches
Interface PolygonPatch

All Superinterfaces:
SurfacePatch
All Known Subinterfaces:
Rectangle, Triangle
All Known Implementing Classes:
DefaultPolygonPatch, DefaultRectangle, DefaultTriangle

public interface PolygonPatch
extends SurfacePatch

A PolygonPatch is a planar SurfacePatch that is defined by a set of boundary curves and an underlying surface to which these curves adhere. The curves are coplanar and the polygon uses planar interpolation in its interior. Implements GM_Polygon of ISO 19107.

Please note that a PolygonPatch is not restricted to use linear interpolation for its exterior and interior rings.

Version:
$Revision: 33706 $, $Date: 2009-08-07 00:49:16 +0200 (Fr, 07 Aug 2009) $
Author:
Markus Schneider , last edited by: $Author: markusschneider $

Nested Class Summary
static class PolygonPatch.PolygonPatchType
          Simple enum defining the different possible PolygonPatch instances.
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.patches.SurfacePatch
SurfacePatch.SurfacePatchType
 
Method Summary
 List<? extends Ring> getBoundaryRings()
          Returns the boundary rings (interior + exteriors)
 Ring getExteriorRing()
          Returns the exterior ring of the patch.
 List<Ring> getInteriorRings()
          Returns the interior rings (holes) of the patch.
 PolygonPatch.PolygonPatchType getPolygonPatchType()
           
 
Methods inherited from interface org.deegree.geometry.primitive.patches.SurfacePatch
getArea, getCoordinateDimension, getSurfacePatchType
 

Method Detail

getBoundaryRings

List<? extends Ring> getBoundaryRings()
Returns the boundary rings (interior + exteriors)

Returns:
the boundary rings, list may be empty (but not null)

getExteriorRing

Ring getExteriorRing()
Returns the exterior ring of the patch.

Please note that the exterior may be empty (null). The following explanation is from the GML 3.1.1 spec (section 9.2.2.5): In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.

Returns:
the exterior ring, or null

getInteriorRings

List<Ring> getInteriorRings()
Returns the interior rings (holes) of the patch.

Returns:
the interior rings (holes) of the patch, list may be empty (but not null)

getPolygonPatchType

PolygonPatch.PolygonPatchType getPolygonPatchType()
Returns:
the type of this polygon patch.

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>