Class InteriorPointPoint

java.lang.Object
org.locationtech.jts.algorithm.InteriorPointPoint

public class InteriorPointPoint extends 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
  • Field Details

    • centroid

      private Coordinate centroid
    • minDistance

      private double minDistance
    • interiorPoint

      private Coordinate interiorPoint
  • Constructor Details

    • InteriorPointPoint

      public InteriorPointPoint(Geometry g)
  • Method Details

    • add

      private void add(Geometry geom)
      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

      private void add(Coordinate point)
    • getInteriorPoint

      public Coordinate getInteriorPoint()