Thursday, 15 December 2016

python - How to calculate the Oriented Bounding Box (OBB) of a polygon or point set?


I'd like to calculate the "Oriented Bounding Box" (OBB) which is the enclosing rectangle aligned to the longest extent of a point set (which is not necessarily aligned with the axes of the co-ordinate system).


The solution could be similar to Finding minimum-area-rectangle for given points? but I'm looking for a robust solution in PostGIS SQL (and PL/Python if necessary).


image




No comments:

Post a Comment