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>, GMLObject, Object, TypedObjectNode, CompositeGeometry<GeometricPrimitive>, Geometry
public class DefaultCompositeGeometry
- extends AbstractDefaultGeometry
- implements CompositeGeometry<GeometricPrimitive>
Default implementation of CompositeGeometry
.
- Version:
- $Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
- Author:
- Markus Schneider , last edited by: $Author: mschneider $
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, isSFSCompliant, 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, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
DefaultCompositeGeometry
public DefaultCompositeGeometry(String id,
ICRS 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
Copyright © 2011. All Rights Reserved.