org.deegree.geometry.standard.multi
Class DefaultMultiPolygon

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

public class DefaultMultiPolygon
extends DefaultMultiGeometry<Polygon>
implements MultiPolygon

Default implementation of MultiPolygon.

Version:
$Revision: 31649 $, $Date: 2011-08-25 01:03:49 +0200 (Thu, 25 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

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, env, id, jtsFactory, jtsGeometry, pm
 
Constructor Summary
DefaultMultiPolygon(String id, ICRS crs, PrecisionModel pm, List<Polygon> members)
          Creates a new DefaultMultiPolygon 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 CRS.
 MultiGeometry.MultiGeometryType getMultiGeometryType()
           
 boolean isSFSCompliant()
          Returns whether this geometry complies with the Simple Feature Specification (SFS).
 
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.commons.tom.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

DefaultMultiPolygon

public DefaultMultiPolygon(String id,
                           ICRS crs,
                           PrecisionModel pm,
                           List<Polygon> members)
Creates a new DefaultMultiPolygon 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 CRS.

Specified by:
getArea in interface MultiSurface<Polygon>
Returns:
area

getMultiGeometryType

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

isSFSCompliant

public boolean isSFSCompliant()
Description copied from interface: Geometry
Returns whether this geometry complies with the Simple Feature Specification (SFS).

Specified by:
isSFSCompliant in interface Geometry
Overrides:
isSFSCompliant in class DefaultMultiGeometry<Polygon>
Returns:
true, if this geometry complies with the SFS, false otherwise

buildJTSGeometry

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


Copyright © 2011. All Rights Reserved.