org.deegree.geometry.standard.composite
Class DefaultCompositeGeometry
java.lang.Object
org.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.composite.DefaultCompositeGeometry
- All Implemented Interfaces:
- Iterable<GeometricPrimitive>, Collection<GeometricPrimitive>, List<GeometricPrimitive>, CompositeGeometry<GeometricPrimitive>, Geometry, GMLObject
public class DefaultCompositeGeometry
- extends AbstractDefaultGeometry
- implements CompositeGeometry<GeometricPrimitive>
Default implementation of CompositeGeometry
.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches |
Methods inherited from interface org.deegree.geometry.Geometry |
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
DefaultCompositeGeometry
public DefaultCompositeGeometry(String id,
CRS crs,
PrecisionModel pm,
List<GeometricPrimitive> memberPrimitives)
- Creates a new
DefaultCompositeGeometry
from the given parameters.
- Parameters:
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullmemberPrimitives
-
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
add
public boolean add(GeometricPrimitive e)
- Specified by:
add
in interface Collection<GeometricPrimitive>
- Specified by:
add
in interface List<GeometricPrimitive>
add
public void add(int index,
GeometricPrimitive element)
- Specified by:
add
in interface List<GeometricPrimitive>
addAll
public boolean addAll(Collection<? extends GeometricPrimitive> c)
- Specified by:
addAll
in interface Collection<GeometricPrimitive>
- Specified by:
addAll
in interface List<GeometricPrimitive>
addAll
public boolean addAll(int index,
Collection<? extends GeometricPrimitive> c)
- Specified by:
addAll
in interface List<GeometricPrimitive>
clear
public void clear()
- Specified by:
clear
in interface Collection<GeometricPrimitive>
- Specified by:
clear
in interface List<GeometricPrimitive>
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection<GeometricPrimitive>
- Specified by:
contains
in interface List<GeometricPrimitive>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interface Collection<GeometricPrimitive>
- Specified by:
containsAll
in interface List<GeometricPrimitive>
get
public GeometricPrimitive get(int index)
- Specified by:
get
in interface List<GeometricPrimitive>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List<GeometricPrimitive>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<GeometricPrimitive>
- Specified by:
isEmpty
in interface List<GeometricPrimitive>
iterator
public Iterator<GeometricPrimitive> iterator()
- Specified by:
iterator
in interface Iterable<GeometricPrimitive>
- Specified by:
iterator
in interface Collection<GeometricPrimitive>
- Specified by:
iterator
in interface List<GeometricPrimitive>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interface List<GeometricPrimitive>
listIterator
public ListIterator<GeometricPrimitive> listIterator()
- Specified by:
listIterator
in interface List<GeometricPrimitive>
listIterator
public ListIterator<GeometricPrimitive> listIterator(int index)
- Specified by:
listIterator
in interface List<GeometricPrimitive>
remove
public GeometricPrimitive remove(int index)
- Specified by:
remove
in interface List<GeometricPrimitive>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<GeometricPrimitive>
- Specified by:
remove
in interface List<GeometricPrimitive>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interface Collection<GeometricPrimitive>
- Specified by:
removeAll
in interface List<GeometricPrimitive>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interface Collection<GeometricPrimitive>
- Specified by:
retainAll
in interface List<GeometricPrimitive>
set
public GeometricPrimitive set(int index,
GeometricPrimitive element)
- Specified by:
set
in interface List<GeometricPrimitive>
size
public int size()
- Specified by:
size
in interface Collection<GeometricPrimitive>
- Specified by:
size
in interface List<GeometricPrimitive>
subList
public List<GeometricPrimitive> subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface List<GeometricPrimitive>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<GeometricPrimitive>
- Specified by:
toArray
in interface List<GeometricPrimitive>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interface Collection<GeometricPrimitive>
- Specified by:
toArray
in interface List<GeometricPrimitive>
getGeometryType
public Geometry.GeometryType getGeometryType()
- Description copied from interface:
CompositeGeometry
- Returns
Geometry.GeometryType#COMPOSITE_GEOMETRY
.
- Specified by:
getGeometryType
in interface CompositeGeometry<GeometricPrimitive>
- Specified by:
getGeometryType
in interface Geometry
- Returns:
Geometry.GeometryType#COMPOSITE_GEOMETRY
buildJTSGeometry
protected com.vividsolutions.jts.geom.GeometryCollection buildJTSGeometry()
- Overrides:
buildJTSGeometry
in class AbstractDefaultGeometry
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>