Package org.meteoinfo.jts.algorithm
Class CentroidPoint
- java.lang.Object
-
- org.meteoinfo.jts.algorithm.CentroidPoint
-
Deprecated.use Centroid instead
public class CentroidPoint extends java.lang.ObjectComputes 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 voidadd(Coordinate pt)Deprecated.Adds the length defined by an array of coordinates.voidadd(Geometry geom)Deprecated.Adds the point(s) defined by a Geometry to the centroid total.CoordinategetCentroid()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 ofCoordinates
-
getCentroid
public Coordinate getCentroid()
Deprecated.
-
-