Package mil.nga.sf.util.centroid
Class CentroidPoint
- java.lang.Object
-
- mil.nga.sf.util.centroid.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 Summary
Constructors Constructor Description CentroidPoint()
ConstructorCentroidPoint(Geometry geometry)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Geometry geometry)
Add a point based dimension 0 geometry to the centroid totalPoint
getCentroid()
Get the centroid point
-
-
-
Constructor Detail
-
CentroidPoint
public CentroidPoint()
Constructor
-
CentroidPoint
public CentroidPoint(Geometry geometry)
Constructor- Parameters:
geometry
- geometry to add
-
-