Class CentroidPoint


  • public class CentroidPoint
    extends Object
    Calculate the centroid from point based geometries. Implementation based on the JTS (Java Topology Suite) CentroidPoint.
    Since:
    1.0.3
    Author:
    osbornb
    • Constructor Detail

      • CentroidPoint

        public CentroidPoint()
        Constructor
      • CentroidPoint

        public CentroidPoint​(Geometry geometry)
        Constructor
        Parameters:
        geometry - geometry to add
    • Method Detail

      • add

        public void add​(Geometry geometry)
        Add a point based dimension 0 geometry to the centroid total
        Parameters:
        geometry - geometry
      • getCentroid

        public Point getCentroid()
        Get the centroid point
        Returns:
        centroid point