Package org.locationtech.jts.algorithm
Class InteriorPointLine
java.lang.Object
org.locationtech.jts.algorithm.InteriorPointLine
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.
- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Coordinate
getInteriorPoint
(Geometry geom) Computes an interior point for the linear components of a Geometry.
-
Constructor Details
-
InteriorPointLine
-
-
Method Details
-
getInteriorPoint
Computes an interior point for the linear components of a Geometry.- Parameters:
geom
- the geometry to compute- Returns:
- the computed interior point,
or
null
if the geometry has no linear components
-
getInteriorPoint
-