deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.geometry.standard.multi
Class DefaultMultiSurface

java.lang.Object
  extended by org.deegree.geometry.standard.AbstractDefaultGeometry
      extended by org.deegree.geometry.standard.multi.DefaultMultiGeometry<Surface>
          extended by org.deegree.geometry.standard.multi.DefaultMultiSurface
All Implemented Interfaces:
Iterable<Surface>, Collection<Surface>, List<Surface>, Geometry, MultiGeometry<Surface>, MultiSurface, GMLObject

public class DefaultMultiSurface
extends DefaultMultiGeometry<Surface>
implements MultiSurface

Default implementation of MultiSurface.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.multi.MultiGeometry
MultiGeometry.MultiGeometryType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Field Summary
 
Fields inherited from class org.deegree.geometry.standard.multi.DefaultMultiGeometry
members
 
Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry
crs, id, jtsFactory, jtsGeometry, pm
 
Constructor Summary
DefaultMultiSurface(String id, CRS crs, PrecisionModel pm, List<Surface> members)
          Creates a new DefaultMultiSurface from the given parameters.
 
Method Summary
protected  com.vividsolutions.jts.geom.MultiPolygon buildJTSGeometry()
           
 double getArea()
          The are of all contained Surfaces measured in units of the used CoordinateSystem.
 MultiGeometry.MultiGeometryType getMultiGeometryType()
           
 
Methods inherited from class org.deegree.geometry.standard.multi.DefaultMultiGeometry
add, add, addAll, addAll, clear, contains, containsAll, get, getCoordinateDimension, getEnvelope, getGeometryType, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.geometry.multi.MultiGeometry
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, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from interface org.deegree.gml.GMLObject
getGMLProperties
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

DefaultMultiSurface

public DefaultMultiSurface(String id,
                           CRS crs,
                           PrecisionModel pm,
                           List<Surface> members)
Creates a new DefaultMultiSurface from the given parameters.

Parameters:
id - identifier, may be null
crs - coordinate reference system, may be null
pm - precision model, may be null
members -
Method Detail

getArea

public double getArea()
Description copied from interface: MultiSurface
The are of all contained Surfaces measured in units of the used CoordinateSystem.

Specified by:
getArea in interface MultiSurface
Returns:
area

getMultiGeometryType

public MultiGeometry.MultiGeometryType getMultiGeometryType()
Specified by:
getMultiGeometryType in interface MultiGeometry<Surface>
Overrides:
getMultiGeometryType in class DefaultMultiGeometry<Surface>
Returns:
the type of MultiGeometry, see MultiGeometry.MultiGeometryType

buildJTSGeometry

protected com.vividsolutions.jts.geom.MultiPolygon buildJTSGeometry()
Overrides:
buildJTSGeometry in class DefaultMultiGeometry<Surface>

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>