GeoAccessor (SEDF) spatial join is not working ?

681
2
Jump to solution
09-17-2023 11:09 PM
Labels (3)
NiharSahoo
New Contributor III

I want make a spatial join with my two spatially enabled dataframe. But while doing a join between the two dataframes. I got below errors.

 

joined_sedf = sedf_cables.spatial.join(sedf_sub_assignment[['SHAPE']], how="inner", op="intersects")

 

NiharSahoo_1-1695017310446.png

 

Can anyone let me know why this error appear and how i will be able make a join between the two dataframes where one is polygon and another is one is a line feature.

 

 

0 Kudos
1 Solution

Accepted Solutions
NiharSahoo
New Contributor III
spatial_relationship = 'intersects'

# Perform the spatial join
sedf_cable_joined = sedf_sub_assignment.spatial.join(sedf_cables, op=spatial_relationship)

 

After using the above code join using spatially enabled dataframe is now working.

View solution in original post

0 Kudos
2 Replies
NiharSahoo
New Contributor III

yes they are.

0 Kudos
NiharSahoo
New Contributor III
spatial_relationship = 'intersects'

# Perform the spatial join
sedf_cable_joined = sedf_sub_assignment.spatial.join(sedf_cables, op=spatial_relationship)

 

After using the above code join using spatially enabled dataframe is now working.

0 Kudos