getCenter static method
Computes the center point of the Maximum Inscribed Circle of a polygonal geometry, up to a given tolerance distance.
@param polygonal a polygonal geometry @param tolerance the distance tolerance for computing the center point @return the center point of the maximum inscribed circle
Implementation
static Point getCenter(Geometry polygonal, double tolerance) {
MaximumInscribedCircle mic = new MaximumInscribedCircle(polygonal, tolerance);
return mic.getCenterPoint();
}