| Package | Description |
|---|---|
| mil.nga.sf | |
| mil.nga.sf.util | |
| mil.nga.sf.util.centroid | |
| mil.nga.sf.util.sweep |
| Modifier and Type | Method and Description |
|---|---|
Point |
LineString.endPoint()
Get the end Point of this Curve
|
abstract Point |
Curve.endPoint()
Get the end Point of this Curve
|
Point |
CompoundCurve.endPoint()
Get the end Point of this Curve
|
Point |
Geometry.getCentroid()
Get the mathematical centroid point of a 2 dimensional representation of
the Geometry (balancing point of a 2d cutout of the geometry).
|
Point |
LineString.getPoint(int n)
Returns the Nth point
|
Point |
MultiPoint.getPoint(int n)
Returns the Nth point
|
Point |
LineString.startPoint()
Get the start Point of this Curve
|
abstract Point |
Curve.startPoint()
Get the start Point of this Curve
|
Point |
CompoundCurve.startPoint()
Get the start Point of this Curve
|
| Modifier and Type | Method and Description |
|---|---|
List<Point> |
LineString.getPoints()
Get the points
|
List<Point> |
MultiPoint.getPoints()
Get the points
|
| Modifier and Type | Method and Description |
|---|---|
void |
LineString.addPoint(Point point)
Add a point
|
void |
MultiPoint.addPoint(Point point)
Add a point
|
| Modifier and Type | Method and Description |
|---|---|
void |
LineString.addPoints(List<Point> points)
Add points
|
void |
MultiPoint.addPoints(List<Point> points)
Add points
|
void |
Line.setPoints(List<Point> points)
Set the points
|
void |
LinearRing.setPoints(List<Point> points)
Set the points
|
void |
LineString.setPoints(List<Point> points)
Set the points
|
void |
MultiPoint.setPoints(List<Point> points)
Set the points
|
| Constructor and Description |
|---|
MultiPoint(Point point)
Constructor
|
Point(Point point)
Copy Constructor
|
| Constructor and Description |
|---|
CircularString(List<Point> points)
Constructor
|
Line(List<Point> points)
Constructor
|
LinearRing(List<Point> points)
Constructor
|
LineString(List<Point> points)
Constructor
|
MultiPoint(List<Point> points)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Point |
GeometryUtils.getCentroid(Geometry geometry)
Get the centroid point of a 2 dimensional representation of the Geometry
(balancing point of a 2d cutout of the geometry).
|
| Modifier and Type | Method and Description |
|---|---|
static List<Point> |
GeometryUtils.simplifyPoints(List<Point> points,
double tolerance)
Simplify the ordered points (representing a line, polygon, etc) using the
Douglas Peucker algorithm to create a similar curve with fewer points.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
GeometryUtils.distance(Point point1,
Point point2)
Get the Pythagorean theorem distance between two points
|
static double |
GeometryUtils.perpendicularDistance(Point point,
Point lineStart,
Point lineEnd)
Calculate the perpendicular distance between the point and the line
represented by the start and end points.
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
LineString ring)
Check if the point is in the polygon ring
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
LineString ring,
double epsilon)
Check if the point is in the polygon ring
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
List<Point> points)
Check if the point is in the polygon points
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
List<Point> points,
double epsilon)
Check if the point is in the polygon points
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
Polygon polygon)
Check if the point is in the polygon
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
Polygon polygon,
double epsilon)
Check if the point is in the polygon
|
static boolean |
GeometryUtils.pointOnLine(Point point,
LineString line)
Check if the point is on the line
|
static boolean |
GeometryUtils.pointOnLine(Point point,
LineString line,
double epsilon)
Check if the point is on the line
|
static boolean |
GeometryUtils.pointOnLine(Point point,
List<Point> points)
Check if the point is on the line represented by the points
|
static boolean |
GeometryUtils.pointOnLine(Point point,
List<Point> points,
double epsilon)
Check if the point is on the line represented by the points
|
static boolean |
GeometryUtils.pointOnPath(Point point,
Point point1,
Point point2)
Check if the point is on the path between point 1 and point 2
|
static boolean |
GeometryUtils.pointOnPath(Point point,
Point point1,
Point point2,
double epsilon)
Check if the point is on the path between point 1 and point 2
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
LineString ring)
Check if the point is on the polygon ring edge
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
LineString ring,
double epsilon)
Check if the point is on the polygon ring edge
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
List<Point> points)
Check if the point is on the polygon ring edge points
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
List<Point> points,
double epsilon)
Check if the point is on the polygon ring edge points
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
Polygon polygon)
Check if the point is on the polygon edge
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
Polygon polygon,
double epsilon)
Check if the point is on the polygon edge
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
GeometryUtils.closedPolygon(List<Point> points)
Check if the polygon ring points are explicitly closed, where the first
and last point are the same
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
List<Point> points)
Check if the point is in the polygon points
|
static boolean |
GeometryUtils.pointInPolygon(Point point,
List<Point> points,
double epsilon)
Check if the point is in the polygon points
|
static boolean |
GeometryUtils.pointOnLine(Point point,
List<Point> points)
Check if the point is on the line represented by the points
|
static boolean |
GeometryUtils.pointOnLine(Point point,
List<Point> points,
double epsilon)
Check if the point is on the line represented by the points
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
List<Point> points)
Check if the point is on the polygon ring edge points
|
static boolean |
GeometryUtils.pointOnPolygonEdge(Point point,
List<Point> points,
double epsilon)
Check if the point is on the polygon ring edge points
|
static List<Point> |
GeometryUtils.simplifyPoints(List<Point> points,
double tolerance)
Simplify the ordered points (representing a line, polygon, etc) using the
Douglas Peucker algorithm to create a similar curve with fewer points.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
CentroidSurface.getCentroid()
Get the centroid point
|
Point |
CentroidPoint.getCentroid()
Get the centroid point
|
Point |
CentroidCurve.getCentroid()
Get the centroid point
|
| Modifier and Type | Method and Description |
|---|---|
Point |
Segment.getLeftPoint()
Get the left point
|
Point |
Event.getPoint()
Get the polygon point
|
Point |
Segment.getRightPoint()
Get the right point
|
| Modifier and Type | Method and Description |
|---|---|
static int |
SweepLine.xyOrder(Point point1,
Point point2)
XY order of two points
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ShamosHoey.simplePolygonPoints(List<Point> points)
Determine if the polygon points are simple
|
static boolean |
ShamosHoey.simplePolygonRingPoints(List<List<Point>> pointRings)
Determine if the polygon point rings are simple
|
| Constructor and Description |
|---|
Event(int edge,
int ring,
Point point,
EventType type)
Constructor
|
Segment(int edge,
int ring,
Point leftPoint,
Point rightPoint)
Constructor
|
Copyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.