Package mil.nga.sf
Class Curve
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.Curve
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CompoundCurve,LineString
public abstract class Curve extends Geometry
The base type for all 1-dimensional geometry types. A 1-dimensional geometry is a geometry that has a length, but no area. A curve is considered simple if it does not intersect itself (except at the start and end point). A curve is considered closed its start and end point are coincident. A simple, closed curve is called a ring.- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCurve(GeometryType type, boolean hasZ, boolean hasM)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PointendPoint()Get the end Point of this CurvebooleanisClosed()Determine if this Curve is closed (start point = end point)booleanisRing()Determine if this Curve is a ring (closed and simple)abstract PointstartPoint()Get the start Point of this Curve-
Methods inherited from class mil.nga.sf.Geometry
copy, equals, expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hashCode, hasM, hasZ, is3D, isEmpty, isMeasured, isSimple, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
Curve
protected Curve(GeometryType type, boolean hasZ, boolean hasM)
Constructor- Parameters:
type- geometry typehasZ- has zhasM- has m
-
-
Method Detail
-
startPoint
public abstract Point startPoint()
Get the start Point of this Curve- Returns:
- start point
-
endPoint
public abstract Point endPoint()
Get the end Point of this Curve- Returns:
- end point
-
isClosed
public boolean isClosed()
Determine if this Curve is closed (start point = end point)- Returns:
- true if closed
-
isRing
public boolean isRing()
Determine if this Curve is a ring (closed and simple)- Returns:
- true if a ring
-
-