<?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: Select points within polygons i can't for the life of me get it to work in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1413358#M9914</link>
    <description>&lt;P&gt;thanks i tried that but thats where i was getting the &lt;SPAN&gt;geometry&amp;nbsp;issues&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 06:48:47 GMT</pubDate>
    <dc:creator>StuartMoore</dc:creator>
    <dc:date>2024-04-22T06:48:47Z</dc:date>
    <item>
      <title>Select points within polygons i can't for the life of me get it to work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1407877#M9857</link>
      <description>&lt;P&gt;help, i have two datasets a FGDB with a polygon feature class containing over 350k polygons and a csv file with an xy point of a little over 275k records.&lt;/P&gt;&lt;P&gt;using Arcgis api for python (on a computer that doesn't have any ESRI software like Pro or Desktop) i've successfully read the polygons into a spatial dataframe and read the csv file also into a spatial dataframe&lt;/P&gt;&lt;P&gt;but when i try and identify which points intersect the polygons i get this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartMoore_0-1712739796897.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100555i4D5370602B6CD1F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartMoore_0-1712739796897.jpeg" alt="StuartMoore_0-1712739796897.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i have tried a few other ways but non seem to work, even the documentation doesn't seem to help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 09:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1407877#M9857</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2024-04-10T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select points within polygons i can't for the life of me get it to work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1407899#M9858</link>
      <description>&lt;P&gt;Most likely that the points and polygons are in different coordinate systems and the extents don't overlap (last error message) . If this is the case, the csv needs to be converted with a know coordinate system to something that the coordinate systems are know and/or the same&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 10:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1407899#M9858</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-04-10T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select points within polygons i can't for the life of me get it to work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1407914#M9859</link>
      <description>&lt;P&gt;Hi Dan, thanks for that, i checked and both have the same &lt;SPAN&gt;coordinate&amp;nbsp;&lt;/SPAN&gt;system with then wkid of 27700.&lt;/P&gt;&lt;P&gt;from manually doing the intersection in Pro on another computer around 260k of the points fall within polygons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did also try this method i found on another post and this looks more promising but flags some geometry issues which i need to work out how to fix...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartMoore_0-1712750400174.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100573i677063D9AF1133CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartMoore_0-1712750400174.jpeg" alt="StuartMoore_0-1712750400174.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 12:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1407914#M9859</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2024-04-10T12:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select points within polygons i can't for the life of me get it to work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1409378#M9880</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/159798"&gt;@StuartMoore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use spatial join.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Load point and polygon spatial dataframes
points_gdf = gpd.read_file('path_to_points.shp')
polygons_gdf = gpd.read_file('path_to_polygons.shp')

# Perform spatial join
intersection = gpd.sjoin(points_gdf, polygons_gdf, how="inner", op='intersects')

# intersection dataframe will contain points that intersect with polygons
print(intersection)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 14 Apr 2024 06:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1409378#M9880</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-04-14T06:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select points within polygons i can't for the life of me get it to work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1413358#M9914</link>
      <description>&lt;P&gt;thanks i tried that but thats where i was getting the &lt;SPAN&gt;geometry&amp;nbsp;issues&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 06:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/select-points-within-polygons-i-can-t-for-the-life/m-p/1413358#M9914</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2024-04-22T06:48:47Z</dc:date>
    </item>
  </channel>
</rss>

