org.deegree.geometry.primitive
Interface Polygon

All Superinterfaces:
GeometricPrimitive, Geometry, GMLObject, Object, Surface, TypedObjectNode
All Known Implementing Classes:
DefaultPolygon, PolygonReference

public interface Polygon
extends Surface

A Surface that consists of one single planar patch (a PolygonPatch).

Please note that a Polygon is not restricted to use linear interpolation for its exterior and interior rings (just as a PolygonPatch).

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
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Surface
Surface.SurfaceType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
GeometricPrimitive.PrimitiveType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Method Summary
 Ring getExteriorRing()
          Returns the exterior ring of the polygon.
 List<Ring> getInteriorRings()
          Returns the interior rings (holes) of the polygon.
 List<PolygonPatch> getPatches()
          Returns a list that contains the one PolygonPatch that constitutes this polygon.
 Surface.SurfaceType getSurfaceType()
          Must always return Surface.SurfaceType.Polygon.
 
Methods inherited from interface org.deegree.geometry.primitive.Surface
getArea, getExteriorRingCoordinates, getInteriorRingsCoordinates, getPerimeter, getPrimitiveType
 
Methods inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
getGeometryType
 
Methods inherited from interface org.deegree.geometry.Geometry
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject
getGMLProperties
 

Method Detail

getSurfaceType

Surface.SurfaceType getSurfaceType()
Must always return Surface.SurfaceType.Polygon.

Specified by:
getSurfaceType in interface Surface
Returns:
Surface.SurfaceType.Polygon

getExteriorRing

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

Please note that this method may return 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 if no ring is distinguished as being the exterior boundary

getInteriorRings

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

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

getPatches

List<PolygonPatch> getPatches()
Returns a list that contains the one PolygonPatch that constitutes this polygon.

Specified by:
getPatches in interface Surface
Returns:
a list that contains the single planar patch that constitutes this surface


Copyright © 2011. All Rights Reserved.