Class CentroidPoint


  • Deprecated. 
    use Centroid instead

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

    Algorithm

    Compute the average of all points.
    • Constructor Summary

      Constructors 
      Constructor Description
      CentroidPoint​()
      Deprecated. 
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(Coordinate pt)
      Deprecated. 
      Adds the length defined by an array of coordinates.
      void add​(Geometry geom)
      Deprecated. 
      Adds the point(s) defined by a Geometry to the centroid total.
      Coordinate getCentroid​()
      Deprecated. 
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.