Package com.kheops.jmap.spatial
Class Centroid
java.lang.Object
com.kheops.jmap.spatial.Centroid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the computed centroid.static Point
getCentroid
(Geometry geom) Computes the centroid point of a geometry.
-
Constructor Details
-
Centroid
Creates a new instance for computing the centroid of a geometry
-
-
Method Details
-
getCentroid
Computes the centroid point of a geometry.- Parameters:
geom
- the geometry to use- Returns:
- the centroid point, or null if the geometry is empty
-
getCentroid
Gets the computed centroid.- Returns:
- the computed centroid, or null if the input is empty
-