getCentroidStatic static method
Computes the centroid point of a geometry.
@param geom the geometry to use @return the centroid point, or null if the geometry is empty
Implementation
static Coordinate? getCentroidStatic(Geometry geom) {
Centroid cent = new Centroid(geom);
return cent.getCentroid();
}