Package mil.nga.sf.util.centroid
Class CentroidCurve
- java.lang.Object
-
- mil.nga.sf.util.centroid.CentroidCurve
-
public class CentroidCurve extends Object
Calculate the centroid from curve based geometries. Implementation based on the JTS (Java Topology Suite) CentroidLine.- Since:
- 1.0.3
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description CentroidCurve()
ConstructorCentroidCurve(Geometry geometry)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Geometry geometry)
Add a curve based dimension 1 geometry to the centroid total.Point
getCentroid()
Get the centroid point
-
-
-
Constructor Detail
-
CentroidCurve
public CentroidCurve()
Constructor
-
CentroidCurve
public CentroidCurve(Geometry geometry)
Constructor- Parameters:
geometry
- geometry to add
-
-