[GIS] How to find the minimum perimeter oriented bounding box

cextentsgeosrectangle

I would like to know an algorithm to calculate the minimum perimeter oriented bounding box of a point set or polygon. I know that if I use the rotating calipers, I am able to get the minimum area oriented bounding box. However, I would like the bounding box considering the perimeter, or the width.

An example of this is given in ArcGIS.

I would like to compute the rectangle by width.

Best Answer

Here is Python Code to determine the MBR by minimum Area. It seems easy to change the criteria to minimum Width or Perimeter. https://github.com/dbworth/minimum-area-bounding-rectangle/blob/master/python/min_bounding_rect.py

Related Question