public class InteriorPointLine
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Coordinate |
centroid |
private Coordinate |
interiorPoint |
private double |
minDistance |
| Constructor and Description |
|---|
InteriorPointLine(Geometry g) |
| Modifier and Type | Method and Description |
|---|---|
private void |
add(Coordinate point) |
private void |
addEndpoints(Coordinate[] pts) |
private void |
addEndpoints(Geometry geom)
Tests the endpoint vertices
defined by a linear Geometry for the best inside point.
|
private void |
addInterior(Coordinate[] pts) |
private void |
addInterior(Geometry geom)
Tests the interior vertices (if any)
defined by a linear Geometry for the best inside point.
|
Coordinate |
getInteriorPoint() |
private Coordinate centroid
private double minDistance
private Coordinate interiorPoint
public InteriorPointLine(Geometry g)
public Coordinate getInteriorPoint()
private void addInterior(Geometry geom)
geom - the geometry to addprivate void addInterior(Coordinate[] pts)
private void addEndpoints(Geometry geom)
geom - the geometry to addprivate void addEndpoints(Coordinate[] pts)
private void add(Coordinate point)