<?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>idea arcpy.da.SearchCursor filter by location in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idi-p/1214929</link>
    <description>&lt;P&gt;"arcpy.da.Search" cursor does not accept "arcpy.Polygon" to be used for spatial filtering of features in large feature class.&lt;/P&gt;&lt;P&gt;For spatial filters, currently, you have to use "arcpy.management.SelectLayerByLocation", but for large datasets it creates large overheads, because:&lt;BR /&gt;- it creates temparay tables in database session&lt;BR /&gt;- it creates temporary indexes in database session&lt;BR /&gt;- it downloads matched features shape and oid fields from database&lt;BR /&gt;- it does not accept attribute filter, so it also downloads a lot of redundant data&lt;BR /&gt;- it uploads matched oid fields to database session&lt;/P&gt;&lt;P&gt;After all, you we can use "arcpy.da.Search", which appends filter with matching oids in database session.&lt;/P&gt;&lt;P&gt;This approach leads to many database operations. My idea is - just allow to pass "overlap_type", "select_features", "search_distance", "invert_spatial_relationship" parameters to "arcpy.da.Search" cursor and let database do filtering in one pass with attribute and spatial filters.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 05:54:55 GMT</pubDate>
    <dc:creator>rkraujutis_hb</dc:creator>
    <dc:date>2022-09-22T05:54:55Z</dc:date>
    <item>
      <title>arcpy.da.SearchCursor filter by location</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idi-p/1214929</link>
      <description>&lt;P&gt;"arcpy.da.Search" cursor does not accept "arcpy.Polygon" to be used for spatial filtering of features in large feature class.&lt;/P&gt;&lt;P&gt;For spatial filters, currently, you have to use "arcpy.management.SelectLayerByLocation", but for large datasets it creates large overheads, because:&lt;BR /&gt;- it creates temparay tables in database session&lt;BR /&gt;- it creates temporary indexes in database session&lt;BR /&gt;- it downloads matched features shape and oid fields from database&lt;BR /&gt;- it does not accept attribute filter, so it also downloads a lot of redundant data&lt;BR /&gt;- it uploads matched oid fields to database session&lt;/P&gt;&lt;P&gt;After all, you we can use "arcpy.da.Search", which appends filter with matching oids in database session.&lt;/P&gt;&lt;P&gt;This approach leads to many database operations. My idea is - just allow to pass "overlap_type", "select_features", "search_distance", "invert_spatial_relationship" parameters to "arcpy.da.Search" cursor and let database do filtering in one pass with attribute and spatial filters.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 05:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idi-p/1214929</guid>
      <dc:creator>rkraujutis_hb</dc:creator>
      <dc:date>2022-09-22T05:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.da.SearchCursor filter by location - Status changed to: Under Consideration</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1220802#M21624</link>
      <description />
      <pubDate>Tue, 11 Oct 2022 17:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1220802#M21624</guid>
      <dc:creator>DannyMcVey</dc:creator>
      <dc:date>2022-10-11T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.da.SearchCursor filter by location</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1221045#M21633</link>
      <description>&lt;P&gt;I've always thought it was cumbersome to be forced to call the select layer by location tool when you wanted to do a spatial query. In ArcObjects you can feed in a QueryFilter or a SpatialFIlter into a search method which is a slicker approach.&lt;/P&gt;&lt;P&gt;I think this idea would be an important improvement to arcpy. I often generate say a polygon and wish to know which geometries it is intersecting without the need for creating an selection across a layer. Such a cursor would close the gap between ArcObjects rich capabilities and arcpy.&lt;/P&gt;&lt;P&gt;I can appreciate if ESRI are reticent to fiddling around with the existing cursor so to add another option to the table directly relevant to this idea I would be happy if ESRI made a new cursor that was just for spatial querying, so SearchCursor is for querying data by attributes and a "SpatialSearchCursor" would be the new cursor as suggested by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/444172"&gt;@rkraujutis_hb&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 11:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1221045#M21633</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-10-12T11:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.da.SearchCursor filter by location - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1297333#M25337</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We're working on this!&amp;nbsp; This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en/other-resources/product-life-cycle" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;product&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;life cycle information&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to get an idea of when to expect the next release.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 20:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1297333#M25337</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2023-06-08T20:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.da.SearchCursor filter by location - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1355682#M27358</link>
      <description>&lt;P&gt;This idea has been implemented in ArcGIS Pro 3.2. The &lt;FONT face="courier new,courier"&gt;arcpy.da.SearchCursor&lt;/FONT&gt; now has a&amp;nbsp;&lt;FONT face="courier new,courier"&gt;spatial_filter&lt;/FONT&gt; parameter which accepts ArcPy Geometry objects. The spatial search can be further controlled with the&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;spatial_relationship&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;search_order&lt;/FONT&gt; parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please see the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;What's New documentation&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;for more new features in Pro 3.2. Additionally, we have also posted a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-ideas-blog/your-ideas-in-arcgis-pro-3-2/ba-p/1346155" target="_blank" rel="noopener"&gt;Your Ideas in ArcGIS Pro 3.2 blog and video&lt;/A&gt;&lt;SPAN&gt;, take a look if interested!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 14:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1355682#M27358</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2023-12-01T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.da.SearchCursor filter by location</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1554875#M32651</link>
      <description>&lt;P&gt;Wow, thanks for this. Just found it and used it in a script that was using select by location. Cut my run times by half and get exactly the same thing.&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 22:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-searchcursor-filter-by-location/idc-p/1554875#M32651</guid>
      <dc:creator>adunckel_nrcs</dc:creator>
      <dc:date>2024-11-01T22:23:07Z</dc:date>
    </item>
  </channel>
</rss>

