-
Notifications
You must be signed in to change notification settings - Fork 365
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
Support for EPSG:3857 #924
Comments
I thought that was what (see: https://github.com/SciTools/cartopy/blob/master/lib/cartopy/crs.py#L1008) |
Then it's a matter of documentation |
How should I as a user have found this? |
That's a good question. It is not well documented... Probably worth opening a ticket for this to be documented better. Another option is to use the import cartopy.crs as ccrs
import matplotlib.pyplot as plt
proj = ccrs.epsg(3857)
ax = plt.axes(projection=proj)
ax.coastlines()
plt.show() |
Stumbled across this while troubleshooting plotting polygons from a shape file. It appears to me that cartopy.crs.Mercator.GOOGLE and cartopy.crs.epsg(3857) are not the same thing, despite a lot of places on the web stating that the "google projection", "mercator web projection" and EPSG 3857 are one and the same. On my system:
results in
More significantly, this shape file shows up in slightly different locations depending on which projection I use in this code:
|
Is there any workaround to not having an internet connection to use cartopy.crs.epsg()? Like with the features (coastlines and such) one can download them manually... Ta. |
With #1808, an internet connection is no longer needed. |
http://wiki.openstreetmap.org/wiki/EPSG:3857
This would be really usefull.
The text was updated successfully, but these errors were encountered: