org.deegree.model.spatialschema
Class MultiGeometryImpl
java.lang.Object
org.deegree.model.spatialschema.GeometryImpl
org.deegree.model.spatialschema.AggregateImpl
org.deegree.model.spatialschema.MultiGeometryImpl
- All Implemented Interfaces:
- java.io.Serializable, Aggregate, Geometry, MultiGeometry
public class MultiGeometryImpl
- extends AggregateImpl
- implements MultiGeometry, java.io.Serializable
Default implementation of MultiGeometry.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
- See Also:
- Serialized Form
|
Method Summary |
protected void |
calculateParam()
Calculates the value of the following member variables:
dimension
GeometryImpl.envelope
GeometryImpl.centroid
|
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry,
which must be the same as the coordinate dimension of the coordinate reference system for this Geometry. |
int |
getDimension()
Returns the dimension of the aggregation, i.e. the maximum dimension of all member geometries. |
| Methods inherited from class org.deegree.model.spatialschema.AggregateImpl |
add, equals, getAll, getIterator, getObjectAt, getSize, insertObjectAt, intersects, isEmpty, isMember, merge, removeAll, removeObject, removeObjectAt, setCoordinateSystem, setObjectAt, toString, translate |
| Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
clone, contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isValid, isWithinDistance, setEmpty, setTolerance, setValid, union |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.spatialschema.Aggregate |
add, getAll, getIterator, getObjectAt, getSize, insertObjectAt, isMember, merge, removeAll, removeObject, removeObjectAt, setObjectAt |
| Methods inherited from interface org.deegree.model.spatialschema.Geometry |
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, intersects, isEmpty, isWithinDistance, setTolerance, translate, union |
MultiGeometryImpl
protected MultiGeometryImpl(CoordinateSystem crs)
- Creates an empty
MultiGeometryImpl instance with a given CoordinateSystem.
- Parameters:
crs - coordinate system
MultiGeometryImpl
protected MultiGeometryImpl(Geometry[] members,
CoordinateSystem crs)
- Creates a
MultiGeometryImpl with a given CoordinateSystem that contains the provided
Geometry objects.
- Parameters:
members - geometries contained in the MultiGeometrycrs - coordinate system
getCoordinateDimension
public int getCoordinateDimension()
- The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry,
which must be the same as the coordinate dimension of the coordinate reference system for this Geometry.
- Specified by:
getCoordinateDimension in interface Geometry
- Returns:
- the actual dimension
getDimension
public int getDimension()
- Returns the dimension of the aggregation, i.e. the maximum dimension of all member geometries.
- Specified by:
getDimension in interface Geometry
- Returns:
- the maximum dimension of all member geometries
calculateParam
protected void calculateParam()
- Calculates the value of the following member variables:
- Specified by:
calculateParam in class GeometryImpl
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org