Hi, I am using Arcgis Pro 2.4.2 and I am trying to generate the maximum rectangle within a polygon which should have an area of 60% of the original polygon.
I am totally new to Arcgis Pro and I am not sure if I can use arcpy to do it within Arcgis Pro, any suggestions or guidance here would be much appreciated.
This is an ugly problem.
If you can articulate your requirements, perhaps alternate solutions can be suggested.
I suggest you do some reading on the topic:
- The rectangle has to be orientated to North(0 degrees), or aligned to the nearest road.
- It has to be a convex one but in my opinion concave/convex doesn't matter if an algorithm is written
- The rectangle has to fill up 60% of the original polygon's area
I have attached a visual of this rectangle in polygon feature that I hope to achieve
Thank you for you reply. I have seen this post before, but I ran into issues running the example code that was provided in one of the answers.
return convertArcObjectToPythonObject(getattr(self._arc_object, attr_name))
SystemError: <built-in function getattr> returned NULL without setting an error
This error seems to be an issue with _base.py and I can't figure out what went wrong