org.deegree.geometry.standard.multi
Class DefaultMultiLineString
java.lang.Object
org.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.multi.DefaultMultiGeometry<LineString>
org.deegree.geometry.standard.multi.DefaultMultiLineString
- All Implemented Interfaces:
- Iterable<LineString>, Collection<LineString>, List<LineString>, GMLObject, Object, TypedObjectNode, Geometry, MultiCurve<LineString>, MultiGeometry<LineString>, MultiLineString
public class DefaultMultiLineString
- extends DefaultMultiGeometry<LineString>
- implements MultiLineString
Default implementation of MultiLineString
.
- Version:
- $Revision: 31649 $, $Date: 2011-08-25 01:03:49 +0200 (Thu, 25 Aug 2011) $
- Author:
- Markus Schneider , last edited by: $Author: mschneider $
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 |
DefaultMultiLineString
public DefaultMultiLineString(String id,
ICRS crs,
PrecisionModel pm,
List<LineString> members)
- Creates a new
DefaultMultiLineString
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<LineString>
- Returns:
- accumulated length
getMultiGeometryType
public MultiGeometry.MultiGeometryType getMultiGeometryType()
- Specified by:
getMultiGeometryType
in interface MultiGeometry<LineString>
- Overrides:
getMultiGeometryType
in class DefaultMultiGeometry<LineString>
- Returns:
- the type of MultiGeometry, see
MultiGeometry.MultiGeometryType
isSFSCompliant
public boolean isSFSCompliant()
- Description copied from interface:
Geometry
- Returns whether this geometry complies with the Simple Feature Specification (SFS).
- Specified by:
isSFSCompliant
in interface Geometry
- Overrides:
isSFSCompliant
in class DefaultMultiGeometry<LineString>
- Returns:
true
, if this geometry complies with the SFS, false
otherwise
buildJTSGeometry
protected com.vividsolutions.jts.geom.MultiLineString buildJTSGeometry()
- Overrides:
buildJTSGeometry
in class DefaultMultiGeometry<LineString>
Copyright © 2011. All Rights Reserved.