Package com.kheops.jmap.spatial
Class Centroid
java.lang.Object
com.kheops.jmap.spatial.Centroid
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the computed centroid.static PointgetCentroid(Geometry geom) Computes the centroid point of a geometry.
- 
Constructor Details- 
CentroidCreates a new instance for computing the centroid of a geometry
 
- 
- 
Method Details- 
getCentroidComputes the centroid point of a geometry.- Parameters:
- geom- the geometry to use
- Returns:
- the centroid point, or null if the geometry is empty
 
- 
getCentroidGets the computed centroid.- Returns:
- the computed centroid, or null if the input is empty
 
 
-