org.deegree.geometry.standard.multi
Class DefaultMultiGeometry<T extends Geometry>
java.lang.Object
org.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.multi.DefaultMultiGeometry<T>
- Type Parameters:
T - type of contained geometry objects
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, TypedObjectNode, Geometry, MultiGeometry<T>, GMLObject
- Direct Known Subclasses:
- DefaultMultiCurve, DefaultMultiLineString, DefaultMultiPoint, DefaultMultiPolygon, DefaultMultiSolid, DefaultMultiSurface
public class DefaultMultiGeometry<T extends Geometry>
- extends AbstractDefaultGeometry
- implements MultiGeometry<T>
Default implementation of MultiGeometry.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
|
Field Summary |
protected java.util.List<T> |
members
|
| 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.Geometry |
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
| Methods inherited from interface java.util.List |
equals, hashCode |
members
protected java.util.List<T extends Geometry> members
DefaultMultiGeometry
public DefaultMultiGeometry(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<T> members)
- Creates a new
DefaultMultiGeometry from the given parameters.
- Parameters:
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullmembers -
getCoordinateDimension
public int getCoordinateDimension()
- Description copied from interface:
Geometry
- Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in.
- Specified by:
getCoordinateDimension in interface Geometry
- Returns:
- the coordinate dimension
getGeometryType
public Geometry.GeometryType getGeometryType()
- Description copied from interface:
MultiGeometry
- Must always return
Geometry.GeometryType#MULTI_GEOMETRY.
- Specified by:
getGeometryType in interface Geometry- Specified by:
getGeometryType in interface MultiGeometry<T extends Geometry>
- Returns:
Geometry.GeometryType#MULTI_GEOMETRY.
buildJTSGeometry
protected com.vividsolutions.jts.geom.GeometryCollection buildJTSGeometry()
- Overrides:
buildJTSGeometry in class AbstractDefaultGeometry
add
public void add(int index,
T element)
- Specified by:
add in interface java.util.List<T extends Geometry>
add
public boolean add(T e)
- Specified by:
add in interface java.util.Collection<T extends Geometry>- Specified by:
add in interface java.util.List<T extends Geometry>
addAll
public boolean addAll(java.util.Collection<? extends T> c)
- Specified by:
addAll in interface java.util.Collection<T extends Geometry>- Specified by:
addAll in interface java.util.List<T extends Geometry>
addAll
public boolean addAll(int index,
java.util.Collection<? extends T> c)
- Specified by:
addAll in interface java.util.List<T extends Geometry>
clear
public void clear()
- Specified by:
clear in interface java.util.Collection<T extends Geometry>- Specified by:
clear in interface java.util.List<T extends Geometry>
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains in interface java.util.Collection<T extends Geometry>- Specified by:
contains in interface java.util.List<T extends Geometry>
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll in interface java.util.Collection<T extends Geometry>- Specified by:
containsAll in interface java.util.List<T extends Geometry>
get
public T get(int index)
- Specified by:
get in interface java.util.List<T extends Geometry>
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf in interface java.util.List<T extends Geometry>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Collection<T extends Geometry>- Specified by:
isEmpty in interface java.util.List<T extends Geometry>
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator in interface java.lang.Iterable<T extends Geometry>- Specified by:
iterator in interface java.util.Collection<T extends Geometry>- Specified by:
iterator in interface java.util.List<T extends Geometry>
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf in interface java.util.List<T extends Geometry>
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIterator in interface java.util.List<T extends Geometry>
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIterator in interface java.util.List<T extends Geometry>
remove
public T remove(int index)
- Specified by:
remove in interface java.util.List<T extends Geometry>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Collection<T extends Geometry>- Specified by:
remove in interface java.util.List<T extends Geometry>
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll in interface java.util.Collection<T extends Geometry>- Specified by:
removeAll in interface java.util.List<T extends Geometry>
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll in interface java.util.Collection<T extends Geometry>- Specified by:
retainAll in interface java.util.List<T extends Geometry>
set
public T set(int index,
T element)
- Specified by:
set in interface java.util.List<T extends Geometry>
size
public int size()
- Specified by:
size in interface java.util.Collection<T extends Geometry>- Specified by:
size in interface java.util.List<T extends Geometry>
subList
public java.util.List<T> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface java.util.List<T extends Geometry>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray in interface java.util.Collection<T extends Geometry>- Specified by:
toArray in interface java.util.List<T extends Geometry>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface java.util.Collection<T extends Geometry>- Specified by:
toArray in interface java.util.List<T extends Geometry>
getEnvelope
public Envelope getEnvelope()
- Description copied from interface:
Geometry
- Returns the minimal bounding box of the geometry.
- Specified by:
getEnvelope in interface Geometry- Overrides:
getEnvelope in class AbstractDefaultGeometry
- Returns:
- the minimal bounding box of the geometry
getMultiGeometryType
public MultiGeometry.MultiGeometryType getMultiGeometryType()
- Specified by:
getMultiGeometryType in interface MultiGeometry<T extends Geometry>
- Returns:
- the type of MultiGeometry, see
MultiGeometry.MultiGeometryType
Copyright © 2011. All Rights Reserved.