5

I'm looking for a library (or at least a code snippet) to calculate the minimum bounding box "by width" in javascript or python. Below is an illustration from the ArcGIS documentation of that functionality. Ideally the function would give me also the angle, width and height of the bounding box. Any pointers?

enter image description here

Image courtesy of the ArcGIS documentation

Your Answer

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

Browse other questions tagged or ask your own question.