Is it possible to get polygon breadth in Shapely, similar to how it provides polygon length? http://toblerity.org/shapely/shapely.geometry.html

I am also ok with a solution that uses fiona or any non-arcgis open source python solution.

  • One quick-n-dirty estimate of "breadth" would be to divide the polygon area by its length. This returns some kind of measurement of the average width (per unit length). – Jon Sep 13 '18 at 21:48

The typical length of a Polygon is the perimeter of the outer ring. If you require something else, I see in Shapely 1.6 there is a new method, minimum_rotated_rectangle. This produces the smallest rotated rectangle that encloses the Polygon. By calculating the distance between consecutive points, you should be able to determine the width (smallest distance) and length (largest distance) of your MBR. Shapely 1.6 pdf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.