org.deegree.geometry.refs
Class SurfaceReference<T extends Surface>
java.lang.Object
org.deegree.commons.tom.Reference<T>
org.deegree.commons.tom.gml.GMLReference<T>
org.deegree.geometry.refs.GeometryReference<T>
org.deegree.geometry.refs.GeometricPrimitiveReference<T>
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 $
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
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)
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.