<?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: Does a GeoAccessor (SEDF) spatial join require arcpy? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1170332#M7363</link>
    <description>&lt;LI-CODE lang="python"&gt;from arcgis.features import GeoAccessor
import geopandas as gpd
import pandas as pd

gdf_pts = gpd.read_file(r'C:\temp\point.shp')
sdf_pts = pd.DataFrame.spatial.from_geodataframe(gdf_pts)

gdf_poly = gpd.read_file(r'C:\temp\polygon.shp')
sdf_poly = pd.DataFrame.spatial.from_geodataframe(gdf_poly )

sdf_pts.spatial.join(sdf_poly[['SHAPE']], how="left", op="intersects")&lt;/LI-CODE&gt;&lt;P&gt;This seemed to work fine for me in jupyter notebooks, are your points and polys in the same projection? have you tried other featureclasses, shapefiles, etc?&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 19:56:52 GMT</pubDate>
    <dc:creator>CarlSunderman</dc:creator>
    <dc:date>2022-05-03T19:56:52Z</dc:date>
    <item>
      <title>Does a GeoAccessor (SEDF) spatial join require arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1168447#M7344</link>
      <description>&lt;P&gt;I am using an conda environment with version 2.0.0 of the Python API installed, but not arcpy.&amp;nbsp; This is running on a JupyterHub deployment.&lt;/P&gt;&lt;P&gt;I am trying to do a spatial join of two SEDFs (point and polygons) by running the line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;points.spatial.join(polygons[['SHAPE']], how="left", op="intersects")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, get no positive intersections (the length of the output is the same as the points SEDF, and the index_right field is all NaN).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the exact same code on the same datasets in my ArcGIS Pro environment (arcpy is present) , using the same version of the Python API (2.0.0), I get a different result, the result I would expect (i.e. some points intersect the polygons).&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing in the API documentation saying the spatial join requires arcpy, so I am wondering if something else could be wrong with the JuypterHub environment, or is the documentation incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help verify?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1168447#M7344</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2022-04-27T17:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Does a GeoAccessor (SEDF) spatial join require arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1170332#M7363</link>
      <description>&lt;LI-CODE lang="python"&gt;from arcgis.features import GeoAccessor
import geopandas as gpd
import pandas as pd

gdf_pts = gpd.read_file(r'C:\temp\point.shp')
sdf_pts = pd.DataFrame.spatial.from_geodataframe(gdf_pts)

gdf_poly = gpd.read_file(r'C:\temp\polygon.shp')
sdf_poly = pd.DataFrame.spatial.from_geodataframe(gdf_poly )

sdf_pts.spatial.join(sdf_poly[['SHAPE']], how="left", op="intersects")&lt;/LI-CODE&gt;&lt;P&gt;This seemed to work fine for me in jupyter notebooks, are your points and polys in the same projection? have you tried other featureclasses, shapefiles, etc?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 19:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1170332#M7363</guid>
      <dc:creator>CarlSunderman</dc:creator>
      <dc:date>2022-05-03T19:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Does a GeoAccessor (SEDF) spatial join require arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1170354#M7364</link>
      <description>&lt;P&gt;yes, everything is in the same projection - however I also do not have geopandas (and hence shapely) installed in the environment.&amp;nbsp; Just the ArcGIS Python API.&amp;nbsp; So possibly either shapely OR arcpy is required for intersections to work?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 20:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1170354#M7364</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2022-05-03T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does a GeoAccessor (SEDF) spatial join require arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1332546#M9050</link>
      <description>&lt;P&gt;Hi -&lt;BR /&gt;I'm currently encountering a similar problem and was wondering if you ever came up with a solution to your issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 17:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-a-geoaccessor-sedf-spatial-join-require-arcpy/m-p/1332546#M9050</guid>
      <dc:creator>DonaldPike</dc:creator>
      <dc:date>2023-09-26T17:24:21Z</dc:date>
    </item>
  </channel>
</rss>

