Package mil.nga.sf
Class LinearRing
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.Curve
-
- mil.nga.sf.LineString
-
- mil.nga.sf.LinearRing
-
- All Implemented Interfaces:
Serializable
public class LinearRing extends LineString
A LineString that is both closed and simple.- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinearRing()
ConstructorLinearRing(boolean hasZ, boolean hasM)
ConstructorLinearRing(List<Point> points)
ConstructorLinearRing(LinearRing linearRing)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
copy()
Copy the geometryvoid
setPoints(List<Point> points)
Set the points-
Methods inherited from class mil.nga.sf.LineString
addPoint, addPoints, endPoint, equals, getPoint, getPoints, hashCode, isEmpty, isSimple, numPoints, startPoint
-
Methods inherited from class mil.nga.sf.Geometry
expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
LinearRing
public LinearRing()
Constructor
-
LinearRing
public LinearRing(boolean hasZ, boolean hasM)
Constructor- Parameters:
hasZ
- has zhasM
- has m
-
LinearRing
public LinearRing(LinearRing linearRing)
Copy Constructor- Parameters:
linearRing
- linear ring to copy
-
-
Method Detail
-
setPoints
public void setPoints(List<Point> points)
Set the points- Overrides:
setPoints
in classLineString
- Parameters:
points
- points
-
copy
public Geometry copy()
Copy the geometry- Overrides:
copy
in classLineString
- Returns:
- geometry copy
-
-