When running the code from the Projections page of the geoviews user guide (http://geoviews.org/user_guide/Projections.html ) in a jupyter notebook, I get a large number of error messages:
“IllegalArgumentException: Argument must be Polygonal or LinearRing”
However, after all the error messages, the plot appears as expected.
Here’s a small code snippet producing the error (in this case only 16 error messages):
import geoviews as gv, cartopy
gv.extension('bokeh')
gv.Points(
[(-74.0, 40.7, 'NYC')],
vdims='City'
).options(
gv.opts.Points(projection=cartopy.crs.Mollweide())
)
Switching on logging shows that the exception is raised in shapely/geos.py:248
I did this on a fresh virtual env (not conda, I’m afraid), with geos and proj installed via hombrew on a Mac.
I’m suspecting some version problem, but I have no idea how and where to look for it.
Versions:
geos: 3.8.1
proj: 7.0.1
python: 3.8.3
cartopy: 0.18.0
geoviews: 1.8.1
scipy: 1.4.1
shapely: 1.7.0
Any ideas?