<?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: Problem in Creating Envelope Polygon using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207829#M15980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will refer you to &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Polygon/018z00000061000000/"&gt;arcpy's Polygon class&lt;/A&gt; for the required inputs.... extent .... should provide the clues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Dec 2014 18:53:34 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-12-14T18:53:34Z</dc:date>
    <item>
      <title>Problem in Creating Envelope Polygon using Python</title>
      <link>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207828#M15979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: GarthGraphicStd; font-size: 10pt; color: #231f20;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;I need a script that makes an envelope polygon feature class for the Hawaii.shp (Multi-part polygon) feature class. There is actually a tool that accomplishes this called &lt;EM&gt;&lt;STRONG&gt;Minimum Bounding Geometry&lt;/STRONG&gt;&lt;/EM&gt;. But i have to do it using python script which directly deals with the geometry properties. how can i do it, i have tried it without using any geometry property, but facing problem doing it though Geometry &lt;SPAN aria-label="Confused" class="emoticon-inline emoticon_confused" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;, Shape file is attached&lt;/SPAN&gt;.&lt;BR style="text-align: -webkit-auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;env.workspace = r"D:\Python Exercise\Exercise08-2014-12-05\Exercise08"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;inFeatures = "Hawaii.shp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;outFeatureClass = "Hawaii_Profile.shp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;arcpy.MinimumBoundingGeometry_management(inFeatures, outFeatureClass, "ENVELOPE", "NONE")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2014 18:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207828#M15979</guid>
      <dc:creator>AhsanAbbas</dc:creator>
      <dc:date>2014-12-14T18:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Creating Envelope Polygon using Python</title>
      <link>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207829#M15980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will refer you to &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Polygon/018z00000061000000/"&gt;arcpy's Polygon class&lt;/A&gt; for the required inputs.... extent .... should provide the clues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2014 18:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207829#M15980</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-12-14T18:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Creating Envelope Polygon using Python</title>
      <link>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207830#M15981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need the extent of every geometry? or the whole feature class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 15:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207830#M15981</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2014-12-17T15:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Creating Envelope Polygon using Python</title>
      <link>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207831#M15982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whole feature class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 07:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207831#M15982</guid>
      <dc:creator>AhsanAbbas</dc:creator>
      <dc:date>2014-12-18T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Creating Envelope Polygon using Python</title>
      <link>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207832#M15983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the risk of doing your homework for you (you're only hurting yourself, but I figure the assignment must be in by now), here's the answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; with arcpy.da.SearchCursor("Hawaii","SHAPE@") as cursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print row[0].extent
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = [arcpy.Polygon(arcpy.Array([arcpy.Point(row[0].extent.XMin,row[0].extent.YMin),arcpy.Point(row[0].extent.XMax, row[0].extent.YMin),arcpy.Point(row[0].extent.XMax,row[0].extent.YMax),arcpy.Point(row[0].extent.XMin,row[0].extent.YMax)]))]
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
372236.642923135 2094769.12137791 941120.12366655 2458884.21017432 NaN NaN NaN NaN
&amp;gt;&amp;gt;&amp;gt; arcpy.CopyFeatures_management(polygon,'in_memory\extent')
&amp;lt;Result 'in_memory\\extent'&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="hawaii.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/61582_hawaii.png" style="width: 620px; height: 376px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-in-creating-envelope-polygon-using-python/m-p/207832#M15983</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T10:16:24Z</dc:date>
    </item>
  </channel>
</rss>

