Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change shapely or cartopy for EPS88 #1796

Closed
maggieavery opened this issue Sep 5, 2020 · 0 comments · Fixed by #1798
Closed

Change shapely or cartopy for EPS88 #1796

maggieavery opened this issue Sep 5, 2020 · 0 comments · Fixed by #1798
Labels

Comments

@maggieavery
Copy link

Which package do you want installed?
Shapely made need to be rebuilt? It's causing an error with cartopy

I assigned a simple cartopy mapping example:

Berkeley_latitude = 37.8715
Berkeley_longitude = -122.2730
birthquake_latitude = -42.0
birthquake_longitude = 0.0
plt.figure(figsize=(10,5))
ax = plt.axes(projection=ccrs.Robinson())
ax.stock_img()
plt.scatter([Berkeley_longitude, birthquake_longitude], [Berkeley_latitude, birthquake_latitude], transform=ccrs.PlateCarree(), color='red')
plt.plot([Berkeley_longitude, birthquake_longitude], [Berkeley_latitude, birthquake_latitude], transform=ccrs.Geodetic(), color='red')
plt.show()

And it's giving the error:
Geometry must be a Point or LineString

I believe the problem is a wrong version of shapely, "with Cartopy the binary package shoudn't be used, it should be built from source instead." (similar issue discussed here)

Which hub do you want it installed on? For example r.datahub, datahub, data100.datahub, etc.
datahub

Which class will use this package?
class: EPS 88
instructor: Margaret Avery
https://classes.berkeley.edu/content/2020-fall-eps-88-001-lec-001
Include a link to appropriate entry in https://classes.berkeley.edu/ if available. If not, please mention class name & instructor.

Which semester will this package be used for?
Fall 2020

This helps us clean up unused packages after a term ends.

Any additional information we should know about?
Thank you for your help!

yuvipanda referenced this issue in yuvipanda/datahub-old-fork Sep 5, 2020
So they link against the same version of geos.

We should probably move this to conda-forge at some point?
However, that'll probably bring in a lot of dependencies,
so don't wanna do that right now.

Fixes #1796
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant