|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.composite.DefaultCompositeSurface
public class DefaultCompositeSurface
Default implementation of CompositeSurface
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Surface |
---|
Surface.SurfaceType |
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive |
---|
GeometricPrimitive.PrimitiveType |
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
---|
Geometry.GeometryType |
Field Summary |
---|
Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
crs, env, id, jtsFactory, jtsGeometry, pm |
Constructor Summary | |
---|---|
DefaultCompositeSurface(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<Surface> memberSurfaces)
Creates a new DefaultCompositeSurface from the given parameters. |
Method Summary | ||
---|---|---|
void |
add(int index,
Surface element)
|
|
boolean |
add(Surface e)
|
|
boolean |
addAll(java.util.Collection<? extends Surface> c)
|
|
boolean |
addAll(int index,
java.util.Collection<? extends Surface> c)
|
|
protected com.vividsolutions.jts.geom.MultiPolygon |
buildJTSGeometry()
|
|
void |
clear()
|
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection<?> c)
|
|
Surface |
get(int index)
|
|
Measure |
getArea(Unit requestedBaseUnit)
|
|
Point |
getCentroid()
Returns the centroid of the geometry. |
|
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
|
Points |
getExteriorRingCoordinates()
Convenience method for accessing the control points of the exterior ring of a simple polygon surface. |
|
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY . |
|
java.util.List<Points> |
getInteriorRingsCoordinates()
Convenience method for accessing the control points of the interior rings of a simple polygon surface. |
|
java.util.List<SurfacePatch> |
getPatches()
Returns the patches that constitute this surface. |
|
Measure |
getPerimeter(Unit requestedUnit)
|
|
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Surface . |
|
Surface.SurfaceType |
getSurfaceType()
Must always return Surface.SurfaceType#CompositeSurface . |
|
int |
indexOf(java.lang.Object o)
|
|
boolean |
isEmpty()
|
|
java.util.Iterator<Surface> |
iterator()
|
|
int |
lastIndexOf(java.lang.Object o)
|
|
java.util.ListIterator<Surface> |
listIterator()
|
|
java.util.ListIterator<Surface> |
listIterator(int index)
|
|
Surface |
remove(int index)
|
|
boolean |
remove(java.lang.Object o)
|
|
boolean |
removeAll(java.util.Collection<?> c)
|
|
boolean |
retainAll(java.util.Collection<?> c)
|
|
Surface |
set(int index,
Surface element)
|
|
int |
size()
|
|
java.util.List<Surface> |
subList(int fromIndex,
int toIndex)
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] a)
|
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, 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 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, getConvexHull, 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 |
---|
equals, hashCode |
Constructor Detail |
---|
public DefaultCompositeSurface(java.lang.String id, CRS crs, PrecisionModel pm, java.util.List<Surface> memberSurfaces)
DefaultCompositeSurface
from the given parameters.
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullmemberSurfaces
- surfaces that constitute the composited surface, the surfaces must join in pairs on common boundary
curves and must, when considered asMethod Detail |
---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Surface
GeometricPrimitive.PrimitiveType.Surface
.
getPrimitiveType
in interface GeometricPrimitive
getPrimitiveType
in interface Surface
GeometricPrimitive.PrimitiveType.Surface
public Surface.SurfaceType getSurfaceType()
CompositeSurface
Surface.SurfaceType#CompositeSurface
.
getSurfaceType
in interface CompositeSurface
getSurfaceType
in interface Surface
Surface.SurfaceType#CompositeSurface
public Measure getArea(Unit requestedBaseUnit)
getArea
in interface Surface
public Measure getPerimeter(Unit requestedUnit)
getPerimeter
in interface Surface
public Point getCentroid()
Geometry
getCentroid
in interface Geometry
getCentroid
in class AbstractDefaultGeometry
Point
that is the centroid of this geometrypublic java.util.List<SurfacePatch> getPatches()
Surface
getPatches
in interface Surface
protected com.vividsolutions.jts.geom.MultiPolygon buildJTSGeometry()
buildJTSGeometry
in class AbstractDefaultGeometry
public void add(int index, Surface element)
add
in interface java.util.List<Surface>
public boolean add(Surface e)
add
in interface java.util.Collection<Surface>
add
in interface java.util.List<Surface>
public boolean addAll(java.util.Collection<? extends Surface> c)
addAll
in interface java.util.Collection<Surface>
addAll
in interface java.util.List<Surface>
public boolean addAll(int index, java.util.Collection<? extends Surface> c)
addAll
in interface java.util.List<Surface>
public void clear()
clear
in interface java.util.Collection<Surface>
clear
in interface java.util.List<Surface>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<Surface>
contains
in interface java.util.List<Surface>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<Surface>
containsAll
in interface java.util.List<Surface>
public Surface get(int index)
get
in interface java.util.List<Surface>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<Surface>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<Surface>
isEmpty
in interface java.util.List<Surface>
public java.util.Iterator<Surface> iterator()
iterator
in interface java.lang.Iterable<Surface>
iterator
in interface java.util.Collection<Surface>
iterator
in interface java.util.List<Surface>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<Surface>
public java.util.ListIterator<Surface> listIterator()
listIterator
in interface java.util.List<Surface>
public java.util.ListIterator<Surface> listIterator(int index)
listIterator
in interface java.util.List<Surface>
public Surface remove(int index)
remove
in interface java.util.List<Surface>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<Surface>
remove
in interface java.util.List<Surface>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<Surface>
removeAll
in interface java.util.List<Surface>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<Surface>
retainAll
in interface java.util.List<Surface>
public Surface set(int index, Surface element)
set
in interface java.util.List<Surface>
public int size()
size
in interface java.util.Collection<Surface>
size
in interface java.util.List<Surface>
public java.util.List<Surface> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<Surface>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<Surface>
toArray
in interface java.util.List<Surface>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<Surface>
toArray
in interface java.util.List<Surface>
public Points getExteriorRingCoordinates()
Surface
NOTE: This method is only safe to use when the surface consists of a single planar patch that has a linear interpolated exterior ring.
getExteriorRingCoordinates
in interface Surface
public java.util.List<Points> getInteriorRingsCoordinates()
Surface
NOTE: This method is only safe to use when the surface consists of a single planar patch that has linear interpolated interior rings.
getInteriorRingsCoordinates
in interface Surface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |