org.deegree.geometry.refs
Class PolygonReference

java.lang.Object
  extended by org.deegree.commons.tom.Reference<T>
      extended by org.deegree.commons.tom.gml.GMLReference<T>
          extended by org.deegree.geometry.refs.GeometryReference<T>
              extended by org.deegree.geometry.refs.GeometricPrimitiveReference<T>
                  extended by org.deegree.geometry.refs.SurfaceReference<Polygon>
                      extended by org.deegree.geometry.refs.PolygonReference
All Implemented Interfaces:
GMLObject, Object, TypedObjectNode, Geometry, GeometricPrimitive, Polygon, Surface

public class PolygonReference
extends SurfaceReference<Polygon>
implements Polygon

The class TODO add class documentation here.

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
 
Constructor Summary
PolygonReference(GMLReferenceResolver resolver, String uri, String baseURL)
          Creates a new PolygonReference instance.
 
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 the patches that constitute this surface.
 Surface.SurfaceType getSurfaceType()
          Returns the type of surface.
 
Methods inherited from class org.deegree.geometry.refs.SurfaceReference
getArea, getCentroid, getExteriorRingCoordinates, getInteriorRingsCoordinates, getPerimeter
 
Methods inherited from class org.deegree.geometry.refs.GeometricPrimitiveReference
getGeometryType, getPrimitiveType
 
Methods inherited from class org.deegree.geometry.refs.GeometryReference
contains, crosses, equals, getBuffer, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from class org.deegree.commons.tom.Reference
getId, getReferencedObject, getURI, isLocal, isResolved, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

PolygonReference

public PolygonReference(GMLReferenceResolver resolver,
                        String uri,
                        String baseURL)
Creates a new PolygonReference instance.

Parameters:
resolver - used for resolving the reference, must not be null
uri - the geometry's uri, must not be null
baseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)
Method Detail

getSurfaceType

public Surface.SurfaceType getSurfaceType()
Description copied from interface: Surface
Returns the type of surface.

Specified by:
getSurfaceType in interface Polygon
Specified by:
getSurfaceType in interface Surface
Overrides:
getSurfaceType in class SurfaceReference<Polygon>
Returns:
the type of surface

getExteriorRing

public Ring getExteriorRing()
Description copied from interface: Polygon
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.

Specified by:
getExteriorRing in interface Polygon
Returns:
the exterior ring, or null if no ring is distinguished as being the exterior boundary

getInteriorRings

public List<Ring> getInteriorRings()
Description copied from interface: Polygon
Returns the interior rings (holes) of the polygon.

Specified by:
getInteriorRings in interface Polygon
Returns:
the interior rings (holes) of the polygon, list may be empty (but not null)

getPatches

public List<PolygonPatch> getPatches()
Description copied from interface: Surface
Returns the patches that constitute this surface.

Specified by:
getPatches in interface Polygon
Specified by:
getPatches in interface Surface
Overrides:
getPatches in class SurfaceReference<Polygon>
Returns:
the patches that constitute this surface


Copyright © 2011. All Rights Reserved.