org.deegree.gml.geometry.refs
Class SurfaceReference<T extends Surface>
java.lang.Object
org.deegree.gml.GMLReference<T>
org.deegree.gml.geometry.refs.GeometryReference<T>
org.deegree.gml.geometry.refs.GeometricPrimitiveReference<T>
org.deegree.gml.geometry.refs.SurfaceReference<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Geometry, GeometricPrimitive, Surface, GMLObject
- Direct Known Subclasses:
- PolygonReference
public class SurfaceReference<T extends Surface>
- extends GeometricPrimitiveReference<T>
- implements Surface
The
class TODO add class documentation here.
- Version:
- $Revision: $, $Date: $
- Author:
- Markus Schneider, last edited by: $Author: schneider $
Methods inherited from class org.deegree.gml.geometry.refs.GeometryReference |
contains, crosses, equals, getBuffer, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, 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, 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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>