Class InteriorPointPoint

Hierarchy: Object , InteriorPointPoint
public class InteriorPointPoint
Computes a point in the interior of an point geometry.

Algorithm

Find a point which is closest to the centroid of the geometry.

Other

  • version: 1.7
public InteriorPointPoint(Geometry g)
public static Coordinate getInteriorPoint(Geometry geom)
Computes an interior point for the puntal components of a Geometry.
Parameters:
geom - geom the geometry to compute
Returns:
the computed interior point, or null if the geometry has no puntal components
public Coordinate getInteriorPoint()