Solved

Is there a transformer to calculate the maximum enclosed rectangle? MER for label placement?

  • 4 February 2014
  • 3 replies
  • 6 views

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.
icon

Best answer by sigtill 4 February 2014, 20:53

View original

3 replies

Badge +21
What about the option Oriented Bounding Box, does it help?

 

If not you can implement the logic in Python using a PythonCaller

 

 

Badge +22

@loren I would be interested in the logic you would use to implement this.

Badge +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