<?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: Get smallest extent from a list of rasters - different approach in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109675#M8474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your contribution,&lt;/P&gt;&lt;P&gt;I got an extent "between" the non-overlapping rasters, but it should be none, i think.&lt;/P&gt;&lt;P&gt;The Problem araised with a tool that shoud calculate a hexagonal fishnet, where the extent is provided by the user, with an extent parameter in a script tool. Now my question was how to calculate the extent, if the parameter value is MINOF and was glad to see your solution. If i use a tool, like Copy_management and an MINOF in environments extent, the tool creates no output, because the two of three extents do not overlab. But this isn't possible to get with the approach above?&lt;/P&gt;&lt;P&gt;I attached a new sketch to show what i got.&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Jan 2016 14:43:55 GMT</pubDate>
    <dc:creator>Andreas</dc:creator>
    <dc:date>2016-01-24T14:43:55Z</dc:date>
    <item>
      <title>Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109671#M8470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Original thread located here: &lt;A href="https://community.esri.com/thread/76256"&gt;Get smallest extent from a list of rasters&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had issues with that method, if some extents do not overlap, arcgis extent is "empty" while the above minof is (always?) still a rectangle!&lt;BR /&gt; In the docs it is said thats minof is the intersection of inputs. But that seems not to be a Intersect_analyst-equivalent. I tried with three extent objects, two do not overlap and one overlaps all other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Xander Bakker (branched to new thread)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 11:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109671#M8470</guid>
      <dc:creator>Andreas</dc:creator>
      <dc:date>2016-01-22T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109672#M8471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you elaborate on what the desired output should be based on the three rasters you mentioned? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 12:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109672#M8471</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-01-22T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109673#M8472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From environment settings &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/environments/output-extent.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/environments/output-extent.htm"&gt;Output Extent (Environment setting)—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With intersection of inputs...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&lt;SPAN class="uicontrol"&gt;Intersection of Inputs&lt;/SPAN&gt;—The extent where all input features or rasters overlap (intersect one another). Note that it is possible that none of the features overlap and that a null extent (zero width and height) may result. In such cases, no features will be processed.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 13:45:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109673#M8472</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-22T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109674#M8473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, and that's what the script from the original post did. That's why I would like to hear what the desired output should be, to see if something can be created to match that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 15:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109674#M8473</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-01-22T15:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109675#M8474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your contribution,&lt;/P&gt;&lt;P&gt;I got an extent "between" the non-overlapping rasters, but it should be none, i think.&lt;/P&gt;&lt;P&gt;The Problem araised with a tool that shoud calculate a hexagonal fishnet, where the extent is provided by the user, with an extent parameter in a script tool. Now my question was how to calculate the extent, if the parameter value is MINOF and was glad to see your solution. If i use a tool, like Copy_management and an MINOF in environments extent, the tool creates no output, because the two of three extents do not overlab. But this isn't possible to get with the approach above?&lt;/P&gt;&lt;P&gt;I attached a new sketch to show what i got.&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jan 2016 14:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109675#M8474</guid>
      <dc:creator>Andreas</dc:creator>
      <dc:date>2016-01-24T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109676#M8475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure&lt;/P&gt;&lt;P&gt;yellow blue intersect produces max-X and max-Y for MIN-OF&lt;/P&gt;&lt;P&gt;purplish blue intersect produces min-X and min-Y for MIN-OF&lt;/P&gt;&lt;P&gt;IF min-of is your left-over bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am wondering if the order affects the results.&amp;nbsp; overlay blue last...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;order as yellow, purple then blue&lt;/P&gt;&lt;P&gt;compare to&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;blue, then yellow, purple&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 00:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109676#M8475</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-25T00:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109677#M8476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luc Pinner said that max(minx), max(miny), min(maxy), min(maxy) would be the MINOF-extent,&lt;/P&gt;&lt;P&gt;but if you read arcgis-docs it says it would be the "intersection of inputs" where all inputs overlap.&lt;/P&gt;&lt;P&gt;So, if they don't overlap, the extent should be None. But with the calculation above i always get an extent, it can't be "none". I'm looking for a prcedure that gives me the same result as If i use the minof extent in the tool environment (processing extent). But i don't know how to do it.&lt;/P&gt;&lt;P&gt;In the environment settings you can't set an order and if you calculate a min or a max order doesn't matter either. Do you mean arcgis may use an ordered set of extents? Too bad we can't see an output of the processing extent...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 11:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109677#M8476</guid>
      <dc:creator>Andreas</dc:creator>
      <dc:date>2016-01-25T11:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109678#M8477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I was suggesting is that you try it yourself during the selection process... it may be easier to control the order through scripting... buy you can compare using the procedure I described instead of using all three at once, do the process incrementally and in different orders.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 11:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109678#M8477</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-25T11:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109679#M8478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the calculation was done by collecting all the minx, miny, maxx and maxy and use the resulting mins and maxs as points to construct the extent, the result will be as you showed in your image. This is however, as you concluded yourself, not the correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's take a look at the code below that shows what happens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; ext1 = arcpy.Extent(1, 0, 9, 5)
&amp;nbsp;&amp;nbsp;&amp;nbsp; ext2 = arcpy.Extent(0, 1, 10, 10)
&amp;nbsp;&amp;nbsp;&amp;nbsp; ext3 = arcpy.Extent(0, 6, 6, 12)

&amp;nbsp;&amp;nbsp;&amp;nbsp; print "getIntersectingExtent", getIntersectingExtent([ext1, ext2, ext3])
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "getMinsMaxsExtentsAsExtent", getMinsMaxsExtentsAsExtent([ext1, ext2, ext3])

def getIntersectingExtent(lst):
&amp;nbsp;&amp;nbsp;&amp;nbsp; ext = lst[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp; for e in lst[1:]:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ext.overlaps(e) or ext.contains(e) or ext.within(e) or ext.equals(e):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ext = getOverlapExents(ext, e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return None
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break
&amp;nbsp;&amp;nbsp;&amp;nbsp; return ext

def getOverlapExents(ext1, ext2):
&amp;nbsp;&amp;nbsp;&amp;nbsp; return getMinsMaxsExtentsAsExtent([ext1, ext2])

def getMinsMaxsExtentsAsExtent(lst):
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmin = max([e.XMin for e in lst])
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmax = min([e.XMax for e in lst])
&amp;nbsp;&amp;nbsp;&amp;nbsp; ymin = max([e.YMin for e in lst])
&amp;nbsp;&amp;nbsp;&amp;nbsp; ymax = min([e.YMax for e in lst])
&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.Extent(xmin, ymin, xmax, ymax)

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of the code is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;getIntersectingExtent None
getMinsMaxsExtentsAsExtent 1 5 6 6 NaN NaN NaN NaN&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both use the same procedure where the min and max of the extents is determined. However, the first result will test is there is overlap and then determine the minimums and maximums. The second will simply determine the minimums and maximums of the extents and when provided to the arcpy.Extent() method this will correct for minimums being larger than maximums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109679#M8478</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T06:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109680#M8479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just noticed that you cannot simply use the arcpy.Extent().overlaps to check for intersection. You need to evaluate &lt;EM&gt;contains&lt;/EM&gt;, &lt;EM&gt;within &lt;/EM&gt;and &lt;EM&gt;equals&lt;/EM&gt; too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def extentIntersects(ext1, ext2):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ext1.overlaps(ext2) or ext1.contains(ext2) or ext1.within(ext2) or ext1.equals(ext2):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return False&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:35:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109680#M8479</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T06:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109681#M8480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... or one can use the polygon property of the extent and use the intersect method of the polygon like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
ext1 = arcpy.Extent(1, 1, 4, 4)
ext2 = arcpy.Extent(2, 2, 5, 5)
print ext1.polygon.intersect(ext2.polygon, 4).extent&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which returns:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;2,00000190734863 2,00000190734863 4,00000190734863 4,00000190734863 NaN NaN NaN NaN&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;1,#QNAN 1,#QNAN 1,#QNAN 1,#QNAN NaN NaN NaN NaN&lt;/PRE&gt;&lt;P&gt;... when there is no intersecting polygon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109681#M8480</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T06:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109682#M8481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander... and to add... make sure there is a defined coordinate system or the extent values will be returned in single precision rather than double as evidenced by your examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 01:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109682#M8481</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-08T01:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109683#M8482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks really good, thought about something like this, but had no success. Do you think it is "enough", testing the overlaps in a single for-loop? If I understand the code right, you take the first extent and compare to it to the remaining. For example if the first extent in list overlaps all others, but the second does not overlaps the third. Could we somehow "sort" the polygons or should we use a nested for-loop to check every combination. I tend to look inside an open source product to find a similar operation...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 08:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109683#M8482</guid>
      <dc:creator>Andreas</dc:creator>
      <dc:date>2016-02-08T08:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109684#M8483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried out a few example extents: It works, order seems not to be important.&lt;/P&gt;&lt;P&gt;So, thank you very, very much for contributing your code!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 10:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109684#M8483</guid>
      <dc:creator>Andreas</dc:creator>
      <dc:date>2016-02-08T10:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109685#M8484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To explain a bit what the loop pretends to do:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It takes the first element of the list of extents and uses it as the initial extent&lt;/LI&gt;&lt;LI&gt;Then it starts to loop through the other extents (element 2 until n)&lt;/LI&gt;&lt;LI&gt;if there is overlap between the initial extent and the other extent, it determines the intersecting extent&lt;/LI&gt;&lt;LI&gt;then it continues with the next extent and checks overlap with the intersecting extent&lt;/LI&gt;&lt;LI&gt;and so on.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need to validate overlaps (intersects) between all extents. If in some situation there is no intersect, it will abort the loop and return None (which you should check for).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 11:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109685#M8484</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-02-08T11:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109686#M8485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So true, that's why you store the return of getOverlapExtents in ext, oversawed this... clever!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 11:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109686#M8485</guid>
      <dc:creator>Andreas</dc:creator>
      <dc:date>2016-02-08T11:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109687#M8486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you mark the post that answered your question as the correct answer? This way other members will be able to find the answer to similar question more easy. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 11:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109687#M8486</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-02-08T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109688#M8487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should then mark Xander's correct ... assumed answered ... is usually used by moderators, not by people who post questions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109688#M8487</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-08T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109689#M8488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried before, the only option I had was "richtige Antwort" (correct answer) and then it gets "assumed answered"...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109689#M8488</guid>
      <dc:creator>Andreas</dc:creator>
      <dc:date>2016-02-08T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get smallest extent from a list of rasters - different approach</title>
      <link>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109690#M8489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you fixed it... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-smallest-extent-from-a-list-of-rasters/m-p/109690#M8489</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-08T13:34:55Z</dc:date>
    </item>
  </channel>
</rss>

