<?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: Field calculates point intersecting polygon in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/field-calculates-point-intersecting-polygon/m-p/1644328#M11592</link>
    <description>&lt;P&gt;You can join points and polygons to get attribute data based on location. See&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.join" target="_self"&gt;arcgis.features.GeoAccessor.join&lt;/A&gt;. Also, here is an example where points are joined to polygons from the Python API documentation:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/guide/spatially-enabled-dataframe-advanced-topics/#example-merging-state-statistics-information-with-cities" target="_self"&gt;Example: Merging State Statistics Information with Cities&lt;/A&gt;. This should be applicable to your situation.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 16:21:41 GMT</pubDate>
    <dc:creator>f92k</dc:creator>
    <dc:date>2025-08-21T16:21:41Z</dc:date>
    <item>
      <title>Field calculates point intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/field-calculates-point-intersecting-polygon/m-p/1643870#M11587</link>
      <description>&lt;P&gt;Is there a simple day to grab attribute data from a polygon fc that intersects with a point fc.&amp;nbsp; I need to update points based on what polygon layer name they intersect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I am doing a spatial query and then attempting to field calculate but I feel like there is an easier way.&lt;/P&gt;&lt;P&gt;I need to do this in an AGO notebook but here is my arcade expression&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;var inter_trust = count(Intersects($feature, trust))

if (inter_trust &amp;gt; 0) 
{
return "Trust";
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Aug 2025 18:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/field-calculates-point-intersecting-polygon/m-p/1643870#M11587</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2025-08-20T18:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculates point intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/field-calculates-point-intersecting-polygon/m-p/1644284#M11591</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;, here is an example on how to do an intersect using the ArcGIS API for Python:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.geometry import filters

# Connect to AGOL
gis = GIS('home')

# Reference services
ptFeatureLayer = gis.content.get('cd10146a4a91477b928f0921957b9698')
polygonFeatureLayer = gis.content.get('c44daed09ff14f80b000b541653aa1fc')

# Get point layer
ptFeatures = ptFeatureLayer.layers[0]

# Get polygon layer
polygonFeatures = polygonFeatureLayer.layers[0]
polygonFeatureQuery = ptFeatures.query(where='1=1')

# Perform intersect
for polygon in polygonFeatureQuery:
    queryResult = ptFeatures.query(where='1=1', out_fields="division", geometry_filter=filters.intersects(polygon.geometry))
    division = queryResult.features[0].attributes['division']
    print(division)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Aug 2025 14:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/field-calculates-point-intersecting-polygon/m-p/1644284#M11591</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2025-08-21T14:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculates point intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/field-calculates-point-intersecting-polygon/m-p/1644328#M11592</link>
      <description>&lt;P&gt;You can join points and polygons to get attribute data based on location. See&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.join" target="_self"&gt;arcgis.features.GeoAccessor.join&lt;/A&gt;. Also, here is an example where points are joined to polygons from the Python API documentation:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/guide/spatially-enabled-dataframe-advanced-topics/#example-merging-state-statistics-information-with-cities" target="_self"&gt;Example: Merging State Statistics Information with Cities&lt;/A&gt;. This should be applicable to your situation.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 16:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/field-calculates-point-intersecting-polygon/m-p/1644328#M11592</guid>
      <dc:creator>f92k</dc:creator>
      <dc:date>2025-08-21T16:21:41Z</dc:date>
    </item>
  </channel>
</rss>

