Package org.locationtech.jts.algorithm
Class InteriorPointPoint
java.lang.Object
org.locationtech.jts.algorithm.InteriorPointPoint
Computes a point in the interior of an point geometry.
Algorithm
Find a point which is closest to the centroid of the geometry.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
add
(Coordinate point) private void
Tests the point(s) defined by a Geometry for the best inside point.
-
Field Details
-
centroid
-
minDistance
private double minDistance -
interiorPoint
-
-
Constructor Details
-
InteriorPointPoint
-
-
Method Details
-
add
Tests the point(s) defined by a Geometry for the best inside point. If a Geometry is not of dimension 0 it is not tested.- Parameters:
geom
- the geometry to add
-
add
-
getInteriorPoint
-