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 void
addLineString(LineString lineString)
Add a line stringvoid
addLineStrings(List<LineString> lineStrings)
Add line stringsGeometry
copy()
Copy the geometryPoint
endPoint()
Get the end Point of this Curveboolean
equals(Object obj)
LineString
getLineString(int n)
Returns the Nth line stringList<LineString>
getLineStrings()
Get the line stringsint
hashCode()
boolean
isEmpty()
Is the Geometry emptyboolean
isSimple()
Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangencyint
numLineStrings()
Get the number of line stringsvoid
setLineStrings(List<LineString> lineStrings)
Set the line stringsPoint
startPoint()
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:
startPoint
in 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
-
-