Best answer by sigtill
View originalIs there a transformer to calculate the maximum enclosed rectangle? MER for label placement?
I'm not looking for bounding box. Rather the largest, axis-aligned rectangle that fits within the polygon. Does this transformer exist? If not, I can provide logic to implement. Please let me know.
What about the option Oriented Bounding Box, does it help?
If not you can implement the logic in Python using a PythonCaller
+3
Oriented bounding box is not a MER of an object.
Striclty speaking a MER would be the largest rectangle that one can possibly fit inside a object, iirespective of orienation.
This is what you ask, but are satisfied with a OBBR?. I assume to orient labels to objects.
There are different ways of finding a MER, involving quite some math. Easiest is brute force tchnique, requiring lots of calculationsteps.
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.