public class LineString extends Curve
| Modifier | Constructor and Description |
|---|---|
|
LineString()
Constructor
|
|
LineString(boolean hasZ,
boolean hasM)
Constructor
|
protected |
LineString(GeometryType type,
boolean hasZ,
boolean hasM)
Constructor
|
|
LineString(LineString lineString)
Copy Constructor
|
|
LineString(List<Point> points)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Point point)
Add a point
|
void |
addPoints(List<Point> points)
Add points
|
Geometry |
copy()
Copy the geometry
|
Point |
endPoint()
Get the end Point of this Curve
|
boolean |
equals(Object obj) |
Point |
getPoint(int n)
Returns the Nth point
|
List<Point> |
getPoints()
Get the points
|
int |
hashCode() |
boolean |
isEmpty()
Is the Geometry empty
|
boolean |
isSimple()
Determine if this Geometry has no anomalous geometric points, such as
self intersection or self tangency
|
int |
numPoints()
Get the number of points
|
void |
setPoints(List<Point> points)
Set the points
|
Point |
startPoint()
Get the start Point of this Curve
|
getCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasuredpublic LineString()
public LineString(boolean hasZ,
boolean hasM)
hasZ - has zhasM - has mpublic LineString(LineString lineString)
lineString - line string to copyprotected LineString(GeometryType type, boolean hasZ, boolean hasM)
type - geometry typehasZ - has zhasM - has mpublic void addPoint(Point point)
point - pointpublic int numPoints()
public Point getPoint(int n)
n - nth point to returnpublic Point startPoint()
startPoint in class Curvepublic Point endPoint()
public boolean isSimple()
public Geometry copy()
public boolean isEmpty()
Copyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.