Package org.geolatte.geom
Class MultiLineString<P extends Position>
- java.lang.Object
-
- org.geolatte.geom.Geometry<P>
-
- org.geolatte.geom.AbstractGeometryCollection<P,LineString<P>>
-
- org.geolatte.geom.MultiLineString<P>
-
- All Implemented Interfaces:
Serializable,Iterable<LineString<P>>,Complex<P,LineString<P>>,Linear
public class MultiLineString<P extends Position> extends AbstractGeometryCollection<P,LineString<P>> implements Linear
AGeometryCollectionofLineStrings.- Author:
- Karel Maesen, Geovise BVBA creation-date: 4/8/11
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.geolatte.geom.AbstractGeometryCollection
geometries
-
-
Constructor Summary
Constructors Constructor Description MultiLineString(CoordinateReferenceSystem<P> crs)MultiLineString(LineString<P>... lineStrings)Constructs aMultiLineStringfrom the specifiedLineStrings
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Q extends Position>
MultiLineString<Q>as(Class<Q> castToType)Class<? extends Geometry>getComponentType()Returns theClassof which all constituentGeometrys are instances.intgetDimension()Returns the topological dimension of this instance.PgetEndPosition()Returns the end position of the linearGeometryGeometryTypegetGeometryType()Returns the type of thisGeometry.PgetStartPosition()Returns the start position of the linearGeometry-
Methods inherited from class org.geolatte.geom.AbstractGeometryCollection
accept, components, getGeometryN, getNumGeometries, iterator
-
Methods inherited from class org.geolatte.geom.Geometry
checkCast, equals, forceToCrs, getCoordinateDimension, getCoordinateReferenceSystem, getCrs, getEnvelope, getNumPositions, getPositionClass, getPositionN, getPositions, getSRID, hashCode, isEmpty, nestPositionSequences, toString, writeReplace
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MultiLineString
public MultiLineString(LineString<P>... lineStrings)
Constructs aMultiLineStringfrom the specifiedLineStrings- Parameters:
lineStrings- the elementLineStrings for the constructedMultiLineString
-
MultiLineString
public MultiLineString(CoordinateReferenceSystem<P> crs)
-
-
Method Detail
-
getStartPosition
public P getStartPosition()
Description copied from interface:LinearReturns the start position of the linearGeometry- Specified by:
getStartPositionin interfaceLinear<P extends Position>- Returns:
- the start position of the linear
Geometry
-
getEndPosition
public P getEndPosition()
Description copied from interface:LinearReturns the end position of the linearGeometry- Specified by:
getEndPositionin interfaceLinear<P extends Position>- Returns:
- the end position of the linear
Geometry
-
getDimension
public int getDimension()
Description copied from class:GeometryReturns the topological dimension of this instance. In non-homogenous collections, this will return the largest topological dimension of the containedGeometries.- Overrides:
getDimensionin classAbstractGeometryCollection<P extends Position,LineString<P extends Position>>- Returns:
- the topological dimension of this instance
-
getGeometryType
public GeometryType getGeometryType()
Description copied from class:GeometryReturns the type of thisGeometry.- Overrides:
getGeometryTypein classAbstractGeometryCollection<P extends Position,LineString<P extends Position>>- Returns:
- the
GeometryTypeof this instance.
-
getComponentType
public Class<? extends Geometry> getComponentType()
Description copied from interface:ComplexReturns theClassof which all constituentGeometrys are instances.- Specified by:
getComponentTypein interfaceComplex<P extends Position,LineString<P extends Position>>- Overrides:
getComponentTypein classAbstractGeometryCollection<P extends Position,LineString<P extends Position>>- Returns:
- the
Classof which all constituentGeometrys are instances.
-
-