I am using geopandas for finding intersections between points and polygons. When I use the following:
intersection_mb = buffers_df.intersection(rest_VIC)
I get this output with a warning basically saying there are no intersections:
0 None
112780 None
112781 None
112782 None
112784 None
...
201314 None
201323 None
201403 None
201404 None
201444 None
Length: 3960, dtype: geometry
Warning message:
C:\Users\Name\Anaconda3\lib\site-packages\geopandas\base.py:31: UserWarning: The indices of the two GeoSeries are different.
warn("The indices of the two GeoSeries are different.")
I looked for any suggestions and found that I could solve by setting crs for both geoseries for which the intersection is to be performed on, but it did not work.
rest_VIC = rest_VIC.set_crs(epsg=4326, allow_override=True)
buffers_df = buffers_df.set_crs(epsg=4326, allow_override=True)
Any suggestions will be helpful. Thanks.