<?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 Intersect with a specific feature and one unknown from gdb in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606551#M47415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to find matching data from geodatabase. Thought at first, that arcpy.da.Walk is best way to get result, but maybe executing the tool Intersect is better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to set a feature and say, intersect with everything you find from gdb?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just a python beginner and want to shortly get results &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 07:49:13 GMT</pubDate>
    <dc:creator>DirkBrunken</dc:creator>
    <dc:date>2014-03-17T07:49:13Z</dc:date>
    <item>
      <title>Intersect with a specific feature and one unknown from gdb</title>
      <link>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606551#M47415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to find matching data from geodatabase. Thought at first, that arcpy.da.Walk is best way to get result, but maybe executing the tool Intersect is better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to set a feature and say, intersect with everything you find from gdb?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just a python beginner and want to shortly get results &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 07:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606551#M47415</guid>
      <dc:creator>DirkBrunken</dc:creator>
      <dc:date>2014-03-17T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect with a specific feature and one unknown from gdb</title>
      <link>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606552#M47416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dirk,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this have to be accomplished using python?&amp;nbsp; It may be easiest to use &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00660000007q000000"&gt;Search&lt;/A&gt;&lt;SPAN&gt; in ArcMap.&amp;nbsp; You can add data to ArcMap that you would like to find which data intersects with it and specify an extent option:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32229[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 11:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606552#M47416</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-03-17T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect with a specific feature and one unknown from gdb</title>
      <link>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606553#M47417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your answer. That option is indeed really helpful. It's maybe indeed more effort to build a script that automatically finds overlapping features/feature_classes. But in the other hand, i still want to know how that task could be solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greets, Dirk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 13:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606553#M47417</guid>
      <dc:creator>DirkBrunken</dc:creator>
      <dc:date>2014-03-17T13:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect with a specific feature and one unknown from gdb</title>
      <link>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606554#M47418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;and more specific asked..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how could i find data from a geodatabase that intersects with a single feature (e.g. a pointfeature). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because, when i search for extent, its not that it is directly shown what really intersects or is ranked by percentage of intersection (what also would be nice to see and get)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 14:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606554#M47418</guid>
      <dc:creator>DirkBrunken</dc:creator>
      <dc:date>2014-03-17T14:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect with a specific feature and one unknown from gdb</title>
      <link>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606555#M47419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is some code that you can work with.&amp;nbsp; What the code does is iterate through a feature class and searches all features in every feature class within the geodatabase to see if any features intersect (see the disjoint method &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018z00000061000000" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; If features do, it adds the feature class name to a list.&amp;nbsp; I would recommend creating a single polygon from the input feature class's extent.&amp;nbsp; The code will then just have to iterate through one input feature rather than many.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env env.workspace = r"C:\temp\python\test.gdb"&amp;nbsp; list = []&amp;nbsp; dataset = "Polygon" spatial_ref = arcpy.Describe(dataset).spatialReference&amp;nbsp; with arcpy.da.SearchCursor(dataset, ["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; for fc in arcpy.ListFeatureClasses("*"): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc, ["SHAPE@"], "", spatial_ref) as cursor2: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row2 in cursor2: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not row[0].disjoint(row2[0]): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list.append(fc)&amp;nbsp; del cursor, cursor2&amp;nbsp; #remove duplicates from list list = dict.fromkeys(list) list = list.keys()&amp;nbsp; print list&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 14:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/intersect-with-a-specific-feature-and-one-unknown/m-p/606555#M47419</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-03-17T14:56:28Z</dc:date>
    </item>
  </channel>
</rss>

