org.deegree.geometry.standard.multi
Class DefaultMultiCurve
java.lang.Object
org.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.multi.DefaultMultiGeometry<Curve>
org.deegree.geometry.standard.multi.DefaultMultiCurve
- All Implemented Interfaces:
- Iterable<Curve>, Collection<Curve>, List<Curve>, Geometry, MultiCurve, MultiGeometry<Curve>, GMLObject
public class DefaultMultiCurve
- extends DefaultMultiGeometry<Curve>
- implements MultiCurve
Default implementation of MultiCurve
.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
Methods inherited from class org.deegree.geometry.standard.multi.DefaultMultiGeometry |
add, add, addAll, addAll, clear, contains, containsAll, get, getCoordinateDimension, getEnvelope, getGeometryType, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
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 interface org.deegree.geometry.Geometry |
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
DefaultMultiCurve
public DefaultMultiCurve(String id,
CRS crs,
PrecisionModel pm,
List<Curve> members)
- Creates a new
DefaultMultiCurve
from the given parameters.
- Parameters:
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullmembers
-
getLength
public double getLength()
- Description copied from interface:
MultiCurve
- The length of a
MultiLineString
is calculated as the sum of the length of all contained
Curve
s.
- Specified by:
getLength
in interface MultiCurve
- Returns:
- accumulated length
getMultiGeometryType
public MultiGeometry.MultiGeometryType getMultiGeometryType()
- Specified by:
getMultiGeometryType
in interface MultiGeometry<Curve>
- Overrides:
getMultiGeometryType
in class DefaultMultiGeometry<Curve>
- Returns:
- the type of MultiGeometry, see
MultiGeometry.MultiGeometryType
buildJTSGeometry
protected com.vividsolutions.jts.geom.MultiLineString buildJTSGeometry()
- Overrides:
buildJTSGeometry
in class DefaultMultiGeometry<Curve>
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>