Class CentroidPoint


  • Deprecated. 
    use Centroid instead

    public class CentroidPoint
    extends Object
    Computes the centroid of a point geometry.

    Algorithm

    Compute the average of all points.
    • Constructor Detail

      • CentroidPoint

        public CentroidPoint()
        Deprecated. 
    • Method Detail

      • add

        public void add(Geometry geom)
        Deprecated. 
        Adds the point(s) defined by a Geometry to the centroid total. If the geometry is not of dimension 0 it does not contribute to the centroid.
        Parameters:
        geom - the geometry to add
      • add

        public void add(Coordinate pt)
        Deprecated. 
        Adds the length defined by an array of coordinates.
        Parameters:
        pts - an array of Coordinates
      • getCentroid

        public Coordinate getCentroid()
        Deprecated.