getRadiusLine static method

LineString getRadiusLine(
  1. Geometry polygonal,
  2. double tolerance
)

Computes a radius line 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 a line from the center to a point on the circle

Implementation

static LineString getRadiusLine(Geometry polygonal, double tolerance) {
  MaximumInscribedCircle mic = new MaximumInscribedCircle(polygonal, tolerance);
  return mic.getRadiusLineString();
}