Class 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
    • Field Detail

      • minDistance

        private double minDistance
    • Constructor Detail

      • InteriorPointPoint

        public InteriorPointPoint​(Geometry g)
    • Method Detail

      • 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
      • getInteriorPoint

        public Coordinate getInteriorPoint()