Skip to content Skip to sidebar Skip to footer

Geometry Must Be A Point Or LineString Error Using Cartopy

I'm trying to run a simple Cartopy example: import cartopy.crs as ccrs import matplotlib.pyplot as plt ax = plt.axes(projection=ccrs.PlateCarree()) ax.coastlines() p

Solution 1:

The problem is a wrong version of shapely, with Cartopy the binary package shoudn't be used, it should be built from source instead. This is explained here and here.

So I did:

pip uninstall shapely
pip install shapely --no-binary shapely

Post a Comment for "Geometry Must Be A Point Or LineString Error Using Cartopy"