Package io.github.sebasbaumh.postgis
Class MultiCurve
- All Implemented Interfaces:
Serializable,Iterable<Curve>
The MULTICURVE is a collection of curves, which can include linear strings, circular strings or compound strings. It
only specifies a type of
Geometry as it could contain LineStrings and CompoundCurves.- Author:
- Sebastian Baumhekel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe OGIS geometry type number for aggregate curves, which can include linear strings, circular strings or compound strings.Fields inherited from class io.github.sebasbaumh.postgis.MultiGeometry
subgeomsFields inherited from class io.github.sebasbaumh.postgis.Geometry
UNKNOWN_SRID -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance.MultiCurve(Iterable<Curve> lines) Constructs an instance. -
Method Summary
Methods inherited from class io.github.sebasbaumh.postgis.MultiGeometry
add, addAll, checkConsistency, equals, getCoordinates, getGeometries, getNumberOfCoordinates, hashCode, hasMeasure, is3d, isEmpty, iterator, setSrid, size, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
TYPE
public static final int TYPEThe OGIS geometry type number for aggregate curves, which can include linear strings, circular strings or compound strings.- See Also:
-
-
Constructor Details
-
MultiCurve
public MultiCurve()Constructs an instance. -
MultiCurve
Constructs an instance.- Parameters:
lines- lines- Throws:
IllegalArgumentException- if given lines are not of a curve type
-
-
Method Details
-
length
public double length()Gets the length of this line.- Returns:
- length
-