org.deegree.geometry.refs
Class SurfaceReference<T extends Surface>

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<T>
Type Parameters:
T -
All Implemented Interfaces:
GMLObject, Object, TypedObjectNode, Geometry, GeometricPrimitive, Surface
Direct Known Subclasses:
PolygonReference

public class SurfaceReference<T extends Surface>
extends GeometricPrimitiveReference<T>
implements Surface

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
SurfaceReference(GMLReferenceResolver resolver, String uri, String baseURL)
          Creates a new SurfaceReference instance.
 
Method Summary
 Measure getArea(Unit requestedBaseUnit)
           
 Point getCentroid()
          Returns the centroid of the geometry.
 Points getExteriorRingCoordinates()
          Convenience method for accessing the control points of the exterior ring of a simple polygon surface.
 List<Points> getInteriorRingsCoordinates()
          Convenience method for accessing the control points of the interior rings of a simple polygon surface.
 List<? extends SurfacePatch> getPatches()
          Returns the patches that constitute this surface.
 Measure getPerimeter(Unit requestedUnit)
           
 Surface.SurfaceType getSurfaceType()
          Returns the type of surface.
 
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
getPrimitiveType
 
Methods inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
getGeometryType
 
Methods inherited from interface org.deegree.geometry.Geometry
contains, crosses, equals, getBuffer, 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

SurfaceReference

public SurfaceReference(GMLReferenceResolver resolver,
                        String uri,
                        String baseURL)
Creates a new SurfaceReference 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

getArea

public Measure getArea(Unit requestedBaseUnit)
Specified by:
getArea in interface Surface
Returns:
area of the surface

getSurfaceType

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

Specified by:
getSurfaceType in interface Surface
Returns:
the type of surface

getCentroid

public Point getCentroid()
Description copied from interface: Geometry
Returns the centroid of the geometry.

Specified by:
getCentroid in interface Geometry
Overrides:
getCentroid in class GeometryReference<T extends Surface>
Returns:
a Point that is the centroid of this geometry

getExteriorRingCoordinates

public Points getExteriorRingCoordinates()
Description copied from interface: Surface
Convenience method for accessing the control points of the exterior ring of a simple polygon surface.

NOTE: This method is only safe to use when the surface consists of a single planar patch that has a linear interpolated exterior ring.

Specified by:
getExteriorRingCoordinates in interface Surface
Returns:
the control points

getInteriorRingsCoordinates

public List<Points> getInteriorRingsCoordinates()
Description copied from interface: Surface
Convenience method for accessing the control points of the interior rings of a simple polygon surface.

NOTE: This method is only safe to use when the surface consists of a single planar patch that has linear interpolated interior rings.

Specified by:
getInteriorRingsCoordinates in interface Surface
Returns:
the control points

getPatches

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

Specified by:
getPatches in interface Surface
Returns:
the patches that constitute this surface

getPerimeter

public Measure getPerimeter(Unit requestedUnit)
Specified by:
getPerimeter in interface Surface
Returns:
perimeter of the surface


Copyright © 2011. All Rights Reserved.