Package mil.nga.sf.util.centroid
Class CentroidSurface
- java.lang.Object
-
- mil.nga.sf.util.centroid.CentroidSurface
-
public class CentroidSurface extends Object
Calculate the centroid from surface based geometries. Implementation based on the JTS (Java Topology Suite) CentroidArea.- Since:
- 1.0.3
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description CentroidSurface()ConstructorCentroidSurface(Geometry geometry)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Geometry geometry)Add a surface based dimension 2 geometry to the centroid total.PointgetCentroid()Get the centroid point
-
-
-
Constructor Detail
-
CentroidSurface
public CentroidSurface()
Constructor
-
CentroidSurface
public CentroidSurface(Geometry geometry)
Constructor- Parameters:
geometry- geometry to add
-
-