Package mil.nga.sf
Class CompoundCurve
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.Curve
-
- mil.nga.sf.CompoundCurve
-
- All Implemented Interfaces:
Serializable
public class CompoundCurve extends Curve
Compound Curve, Curve sub type- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompoundCurve()ConstructorCompoundCurve(boolean hasZ, boolean hasM)ConstructorCompoundCurve(List<LineString> lineStrings)ConstructorCompoundCurve(CompoundCurve compoundCurve)Copy ConstructorCompoundCurve(LineString lineString)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLineString(LineString lineString)Add a line stringvoidaddLineStrings(List<LineString> lineStrings)Add line stringsGeometrycopy()Copy the geometryPointendPoint()Get the end Point of this Curvebooleanequals(Object obj)LineStringgetLineString(int n)Returns the Nth line stringList<LineString>getLineStrings()Get the line stringsinthashCode()booleanisEmpty()Is the Geometry emptybooleanisSimple()Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangencyintnumLineStrings()Get the number of line stringsvoidsetLineStrings(List<LineString> lineStrings)Set the line stringsPointstartPoint()Get the start Point of this Curve-
Methods inherited from class mil.nga.sf.Geometry
expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
CompoundCurve
public CompoundCurve()
Constructor
-
CompoundCurve
public CompoundCurve(boolean hasZ, boolean hasM)Constructor- Parameters:
hasZ- has zhasM- has m
-
CompoundCurve
public CompoundCurve(List<LineString> lineStrings)
Constructor- Parameters:
lineStrings- list of line strings
-
CompoundCurve
public CompoundCurve(LineString lineString)
Constructor- Parameters:
lineString- line string
-
CompoundCurve
public CompoundCurve(CompoundCurve compoundCurve)
Copy Constructor- Parameters:
compoundCurve- compound Curve to copy
-
-
Method Detail
-
getLineStrings
public List<LineString> getLineStrings()
Get the line strings- Returns:
- line strings
-
setLineStrings
public void setLineStrings(List<LineString> lineStrings)
Set the line strings- Parameters:
lineStrings- line strings
-
addLineString
public void addLineString(LineString lineString)
Add a line string- Parameters:
lineString- line string
-
addLineStrings
public void addLineStrings(List<LineString> lineStrings)
Add line strings- Parameters:
lineStrings- line strings
-
numLineStrings
public int numLineStrings()
Get the number of line strings- Returns:
- number of line strings
-
getLineString
public LineString getLineString(int n)
Returns the Nth line string- Parameters:
n- nth line string to return- Returns:
- line string
-
startPoint
public Point startPoint()
Get the start Point of this Curve- Specified by:
startPointin classCurve- Returns:
- start point
-
endPoint
public Point endPoint()
Get the end Point of this Curve
-
isSimple
public boolean isSimple()
Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangency
-
copy
public Geometry copy()
Copy the geometry
-
isEmpty
public boolean isEmpty()
Is the Geometry empty
-
-