<?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: Extent check using Python Script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337867#M26506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your definition of "extent".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mean the encompassing rectangle around the entire feature class, you can &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Describe/000v00000026000000/"&gt;Describe &lt;/A&gt;the &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Dataset_properties/000v0000002m000000/"&gt;Dataset &lt;/A&gt;to get the extent (see the example &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Dataset_properties/000v0000002m000000/"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want the overlapping features, use &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Intersect/00080000000p000000/"&gt;Intersect&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 17:53:52 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2014-08-28T17:53:52Z</dc:date>
    <item>
      <title>Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337862#M26501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two feature class... I ve to check whether Feature class 1 falls within the extent of the Feature Class2...&lt;/P&gt;&lt;P&gt;Is there any tool or procedure to check it using python script... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 06:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337862#M26501</guid>
      <dc:creator>MANESK</dc:creator>
      <dc:date>2014-08-28T06:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337863#M26502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no tool to check the whole feature classes at once, but you could determine the&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000003q000000"&gt; Minimum Bounding Geometry&lt;/A&gt; for each file, then get their extents and compare.&amp;nbsp; you will have to decide which type of geometry is best suited for your purposes (maybe a convex hull).&amp;nbsp; This is one quick way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 06:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337863#M26502</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-28T06:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337864#M26503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan.. I ve to report whether FC 1 falls within FC 2..&amp;nbsp; FC2 has a larger spatial extent.... The job is to check N no of FCs falls within the extent...We just want to automate the process... Kindly suggest..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 06:47:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337864#M26503</guid>
      <dc:creator>MANESK</dc:creator>
      <dc:date>2014-08-28T06:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337865#M26504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rest would have to be scripted, which I presume, you were hoping for a ready made one and not advise on procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 08:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337865#M26504</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-28T08:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337866#M26505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you write a script that adds both fc to a map document, you can use the arcpy.mapping module, you can return an layers extent with the layer.getExtent method.&amp;nbsp; You might have to get a bit creative to determine a method for determining if one contains the other, but it should be possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 13:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337866#M26505</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-08-28T13:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337867#M26506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your definition of "extent".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mean the encompassing rectangle around the entire feature class, you can &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Describe/000v00000026000000/"&gt;Describe &lt;/A&gt;the &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Dataset_properties/000v0000002m000000/"&gt;Dataset &lt;/A&gt;to get the extent (see the example &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Dataset_properties/000v0000002m000000/"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want the overlapping features, use &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Intersect/00080000000p000000/"&gt;Intersect&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 17:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337867#M26506</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-08-28T17:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337868#M26507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To follow-up on what &lt;A href="https://community.esri.com/migrated-users/19932"&gt;Darren Wiens&lt;/A&gt;​ suggests, the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/extent.htm"&gt;Extent &lt;/A&gt;object (obtained through the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-functions/describe.htm"&gt;Describe &lt;/A&gt;object) got support for &lt;STRONG&gt;JSON&lt;/STRONG&gt; and &lt;STRONG&gt;polygon&lt;/STRONG&gt; properties at ArcGIS 10.3 (&lt;A href="https://desktop.arcgis.com/en/desktop/latest/main/get-started/whats-new-in-arcgis.htm"&gt;What's new in ArcGIS 10.3&lt;/A&gt;).&amp;nbsp; Having the Extent object support polygon properties greatly eases working with them in situations like this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of comments/thoughts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Extent objects work with Minimum Bounding Rectangles (MBRs), a.k.a. "bounding box."&amp;nbsp; In comparing MBRs of two datasets, it is completely possible that one dataset or MBR of a dataset will fall within the MBR of another dataset while none of the features from either dataset intersect.&lt;/LI&gt;&lt;LI&gt;With the Esri Extent object, and particularly with SDE datasets, I haven't tested whether the Extent object pulls information from existing statistics on a dataset or whether the extent is newly computed when the object is created.&amp;nbsp; If the former, it could be possible the MBR returned isn't accurate if the statistics are stale on a dataset.&amp;nbsp; I can't say one way or another.&amp;nbsp; If it is important enough, I suggest you verify the behavior before relying on it.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337868#M26507</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-07-06T17:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337869#M26508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just to be careful, the Extent object usually defines the box/rectangle with axes parallel to the X and Y axes (talking 2D Euclidean space here).&amp;nbsp; Minimum Bounding Rectangles (MBR) should be viewed in this context since the mathematically more interesting ones are the Minimum Area Bounding Rectangle (MABR) or perhaps the Minimum Perimeter Bounding Rectangle (MPBR).&amp;nbsp; There is no guarantee, that&amp;nbsp; MBR will equal MABR or MPBR.&amp;nbsp; So the often missing 2nd word can be important as Darren is alluding to&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 21:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337869#M26508</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-07-06T21:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337870#M26509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting point.&amp;nbsp; Not surprisingly, the documentation for the Extent object isn't very specific.&amp;nbsp; Does the Extent object always return the minimum &lt;SPAN style="text-decoration: underline;"&gt;axis-aligned&lt;/SPAN&gt; bounding rectangle or does/can it return a different minimum bounding rectangle in certain situations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 22:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337870#M26509</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-07-06T22:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extent check using Python Script</title>
      <link>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337871#M26510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't remember, I use my &lt;A href="http://www.arcgis.com/home/item.html?id=564e2949763943e3b9fb4240bab0ca2f"&gt;Bounding Containers&lt;/A&gt; for version 10.2.x, it works in 10.3 but I haven't posted the NumPy-ed version on ArcScript 2.0 Beta yet...sometime soon if it gets upgraded from Beta before the UC.&amp;nbsp; It does Extent rectangles (your MBR), MABR, Minimum area Circle, convex hull of course and I have code not included for MPBR (not hard to alter MABR) and W.H. and I worked on MABE (min area bounding ellipse) but not posted.&amp;nbsp; Will tidy it up with variants of Concave Hulls/Alpha Shapes plus some other esoteric containers of which there are many.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 23:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extent-check-using-python-script/m-p/337871#M26510</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-07-06T23:55:20Z</dc:date>
    </item>
  </channel>
</rss>

