Package mil.nga.sf
Class MultiCurve<T extends Curve>
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.GeometryCollection<T>
-
- mil.nga.sf.MultiCurve<T>
-
- Type Parameters:
T
- curve type
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MultiLineString
public abstract class MultiCurve<T extends Curve> extends GeometryCollection<T>
A restricted form of GeometryCollection where each Geometry in the collection must be of type Curve.- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultiCurve(GeometryType type, boolean hasZ, boolean hasM)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCurve(T curve)
Add a curvevoid
addCurves(List<T> curves)
Add curvesT
getCurve(int n)
Returns the Nth curveList<T>
getCurves()
Get the curvesboolean
isClosed()
Determine if this Multi Curve is closed for each Curve (start point = end point)int
numCurves()
Get the number of curvesvoid
setCurves(List<T> curves)
Set the curves-
Methods inherited from class mil.nga.sf.GeometryCollection
addGeometries, addGeometry, copy, equals, getAsGeometryCollection, getAsMultiCurve, getAsMultiLineString, getAsMultiPoint, getAsMultiPolygon, getAsMultiSurface, getCollectionType, getGeometries, getGeometry, hashCode, isEmpty, isMultiCurve, isMultiLineString, isMultiPoint, isMultiPolygon, isMultiSurface, isSimple, numGeometries, setGeometries
-
Methods inherited from class mil.nga.sf.Geometry
expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
MultiCurve
protected MultiCurve(GeometryType type, boolean hasZ, boolean hasM)
Constructor- Parameters:
type
- geometry typehasZ
- has zhasM
- has m
-
-
Method Detail
-
addCurve
public void addCurve(T curve)
Add a curve- Parameters:
curve
- curve
-
numCurves
public int numCurves()
Get the number of curves- Returns:
- number of curves
-
getCurve
public T getCurve(int n)
Returns the Nth curve- Parameters:
n
- nth line curve to return- Returns:
- curve
-
isClosed
public boolean isClosed()
Determine if this Multi Curve is closed for each Curve (start point = end point)- Returns:
- true if closed
-
-