I had the same problems working with geodata. Again, the import order was relevant. In this case, I had to import the geodata after Basemap. My import list is as follows:
from mpl_toolkits.basemap import Basemap import geopandas as gp from shapely.geometry import Point, Polygon, MultiPoint, MultiPolygon from shapely.prepared import prep
Please note that if you are using a Jupyter laptop, your connection to Kernel will crash and no error information will be provided. After using the python shell, the following error was given:
Assertion failed: (0), function query, file AbstractSTRtree.cpp, line 285. Abort trap: 6
source share