com.vividsolutions.jts.algorithm
Class InteriorPointLine
java.lang.Object
com.vividsolutions.jts.algorithm.InteriorPointLine
public class InteriorPointLine
extends java.lang.Object
Computes a point in the interior of an linear geometry.
Algorithm
- Find an interior vertex which is closest to
the centroid of the linestring.
- If there is no interior vertex, find the endpoint which is
closest to the centroid.
InteriorPointLine
public InteriorPointLine(Geometry g)
getInteriorPoint
public Coordinate getInteriorPoint()