Package org.locationtech.jts.algorithm
Class InteriorPointPoint
- java.lang.Object
-
- org.locationtech.jts.algorithm.InteriorPointPoint
-
public class InteriorPointPoint extends java.lang.Object
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
-
-
Constructor Summary
Constructors Constructor Description InteriorPointPoint(Geometry g)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinate
getInteriorPoint()
static Coordinate
getInteriorPoint(Geometry geom)
Computes an interior point for the puntal components of a Geometry.
-
-
-
Constructor Detail
-
InteriorPointPoint
public InteriorPointPoint(Geometry g)
-
-
Method Detail
-
getInteriorPoint
public static Coordinate getInteriorPoint(Geometry geom)
Computes an interior point for the puntal components of a Geometry.- Parameters:
geom
- the geometry to compute- Returns:
- the computed interior point,
or
null
if the geometry has no puntal components
-
getInteriorPoint
public Coordinate getInteriorPoint()
-
-