<?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 Filter down a featureset created from local data? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/filter-down-a-featureset-created-from-local-data/m-p/1623589#M11449</link>
    <description>&lt;P&gt;I have data stored locally in a geodatabase. I'd like to use the arcgis module to get this data as a featureset, filtered to where it intersects a hosted layer.&lt;/P&gt;&lt;P&gt;I only seem to be able to get my local data as a feature set, but only feature layers have a query() method. How can I do this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jun 2025 21:22:29 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2025-06-13T21:22:29Z</dc:date>
    <item>
      <title>Filter down a featureset created from local data?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/filter-down-a-featureset-created-from-local-data/m-p/1623589#M11449</link>
      <description>&lt;P&gt;I have data stored locally in a geodatabase. I'd like to use the arcgis module to get this data as a featureset, filtered to where it intersects a hosted layer.&lt;/P&gt;&lt;P&gt;I only seem to be able to get my local data as a feature set, but only feature layers have a query() method. How can I do this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 21:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/filter-down-a-featureset-created-from-local-data/m-p/1623589#M11449</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-06-13T21:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter down a featureset created from local data?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/filter-down-a-featureset-created-from-local-data/m-p/1623792#M11451</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458875"&gt;@AlfredBaldenweck&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;One option is to use the GeoAccessor class where you have from_featureclass() (from disk/local) and from_layer() (FeatureLayer) options. You now have both as a spatially enabled dataframe (SEDF) and can use the GeoAccessor overlay() method with an &lt;SPAN&gt;intersection option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once you have the returned SEDF from the overlay you can use the to_featureset() to have a FeatureSet object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if that gets you on the right path or if there are any follow questions. The documentation is not the greatest of help for these types of workflows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All the best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Glen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 08:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/filter-down-a-featureset-created-from-local-data/m-p/1623792#M11451</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-06-16T08:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter down a featureset created from local data?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/filter-down-a-featureset-created-from-local-data/m-p/1623824#M11452</link>
      <description>&lt;P&gt;That looks like it would work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just don't know why you can't filter a featureset object you already have, though...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 13:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/filter-down-a-featureset-created-from-local-data/m-p/1623824#M11452</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-06-16T13:13:08Z</dc:date>
    </item>
  </channel>
</rss>

