org.deegree.geometry.primitive
Interface Polygon
- All Superinterfaces:
- GeometricPrimitive, Geometry, GMLObject, Surface
- 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: 33706 $, $Date: 2009-08-07 00:49:16 +0200 (Fr, 07 Aug 2009) $
- Author:
- Markus Schneider , last edited by: $Author$
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, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>