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: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

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.


Copyright © 2011. All Rights Reserved.