<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create the maximum rectangle in a polygon using python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005108#M59138</link>
    <description>&lt;P&gt;Have a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/spatial-data-science-questions/how-to-find-the-maximum-rectangle-contained-within-a-polygon/td-p/408977" target="_blank"&gt;https://community.esri.com/t5/spatial-data-science-questions/how-to-find-the-maximum-rectangle-contained-within-a-polygon/td-p/408977&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 03:00:45 GMT</pubDate>
    <dc:creator>ManishPatel</dc:creator>
    <dc:date>2020-11-27T03:00:45Z</dc:date>
    <item>
      <title>How to create the maximum rectangle in a polygon using python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005105#M59136</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 02:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005105#M59136</guid>
      <dc:creator>wlew</dc:creator>
      <dc:date>2020-11-27T02:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the maximum rectangle in a polygon using python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005107#M59137</link>
      <description>&lt;P&gt;This is an ugly problem.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;does the rectangle have to be axis aligned? (ie. parallel to the x/y axes)&lt;/LI&gt;&lt;LI&gt;are the polygons convex or concave&lt;/LI&gt;&lt;LI&gt;the 60% factor ... how fast is that requirement? do you mean 60% or more? 60% or less?&lt;/LI&gt;&lt;LI&gt;what is the actual rectangle area you are interested in? is there a minimum or maximum size?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you can articulate your requirements, perhaps alternate solutions can be suggested.&lt;/P&gt;&lt;P&gt;I suggest you do some reading on the topic:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cgm.cs.mcgill.ca/~athens/cs507/Projects/2003/DanielSud/" target="_self"&gt;Project with visuals&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sciencedirect.com/science/article/pii/S1570866712000160" target="_blank"&gt;Largest inscribed rectangles in convex polygons - ScienceDirect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://arxiv.org/abs/1905.13246" target="_blank"&gt;[1905.13246] Largest Inscribed Rectangles in Geometric Convex Sets (arxiv.org)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.researchgate.net/publication/2522287_Computing_the_Largest_Inscribed_Isothetic_Rectangle" target="_blank"&gt;(PDF) Computing the Largest Inscribed Isothetic Rectangle (researchgate.net)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 02:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005107#M59137</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-27T02:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the maximum rectangle in a polygon using python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005108#M59138</link>
      <description>&lt;P&gt;Have a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/spatial-data-science-questions/how-to-find-the-maximum-rectangle-contained-within-a-polygon/td-p/408977" target="_blank"&gt;https://community.esri.com/t5/spatial-data-science-questions/how-to-find-the-maximum-rectangle-contained-within-a-polygon/td-p/408977&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 03:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005108#M59138</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2020-11-27T03:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the maximum rectangle in a polygon using python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005114#M59140</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;- The rectangle has to be orientated to North(0 degrees), or aligned to the nearest road.&lt;/P&gt;&lt;P&gt;- It has to be a convex one but in my opinion concave/convex doesn't matter if an algorithm is written&lt;/P&gt;&lt;P&gt;- The rectangle has to fill up 60% of the original polygon's area&lt;/P&gt;&lt;P&gt;I have attached a visual of this rectangle in polygon feature that I hope to achieve&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 04:33:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005114#M59140</guid>
      <dc:creator>wlew</dc:creator>
      <dc:date>2020-11-27T04:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the maximum rectangle in a polygon using python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005115#M59141</link>
      <description>&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;return convertArcObjectToPythonObject(getattr(self._arc_object, attr_name))&lt;BR /&gt;SystemError: &amp;lt;built-in function getattr&amp;gt; returned NULL without setting an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error seems to be an issue with _base.py and I can't figure out what went wrong&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 04:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-create-the-maximum-rectangle-in-a-polygon/m-p/1005115#M59141</guid>
      <dc:creator>wlew</dc:creator>
      <dc:date>2020-11-27T04:41:36Z</dc:date>
    </item>
  </channel>
</rss>

