Package io.github.sebasbaumh.postgis
Class MultiCurve
- java.lang.Object
-
- io.github.sebasbaumh.postgis.Geometry
-
- io.github.sebasbaumh.postgis.MultiGeometry<Curve>
-
- io.github.sebasbaumh.postgis.MultiCurve
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<Curve>
@NonNullByDefault public class MultiCurve extends MultiGeometry<Curve>
The MULTICURVE is a collection of curves, which can include linear strings, circular strings or compound strings. It only specifies a type ofGeometry
as it could containLineString
s andCompoundCurve
s.- Author:
- Sebastian Baumhekel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE
The 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
subgeoms
-
Fields inherited from class io.github.sebasbaumh.postgis.Geometry
UNKNOWN_SRID
-
-
Constructor Summary
Constructors Constructor Description MultiCurve()
Constructs an instance.MultiCurve(java.lang.Iterable<Curve> lines)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
length()
Gets the length of this line.-
Methods inherited from class io.github.sebasbaumh.postgis.MultiGeometry
add, addAll, checkConsistency, equals, getCoordinates, getGeometries, getNumberOfCoordinates, hashCode, hasMeasure, is3d, isEmpty, iterator, setSrid, size
-
Methods inherited from class io.github.sebasbaumh.postgis.Geometry
getDimension, getSrid, getType, numPoints
-
-
-
-
Field Detail
-
TYPE
public static final int TYPE
The OGIS geometry type number for aggregate curves, which can include linear strings, circular strings or compound strings.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiCurve
public MultiCurve()
Constructs an instance.
-
MultiCurve
public MultiCurve(java.lang.Iterable<Curve> lines)
Constructs an instance.- Parameters:
lines
- lines- Throws:
java.lang.IllegalArgumentException
- if given lines are not of a curve type
-
-