SciTools / cartopy

Cartopy - a cartographic python library with matplotlib support
https://scitools.org.uk/cartopy/docs/latest
BSD 3-Clause "New" or "Revised" License
1.44k stars 369 forks source link

Show a tiff data with Cartopy #2078

Open wgy1027 opened 2 years ago

wgy1027 commented 2 years ago

Description

I want to show my tiff data with Cartopy. But, (1) when I use cartopy.crs.epsg function, it returns an error called xml.etree.ElementTree.ParseError.

cartopy.crs.epsg(5544)
*** xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0

(2) when I pass the projection in proj4 with cartopy.crs.CRS, Cartopy says

'cartopy._crs.CRS' object has no attribute 'globe'

(3) So, I find that many people use the "cartopy.crs.from_proj", but

module 'cartopy.crs' has no attribute 'from_proj'

Can the designers of Cartopy do better? This problem wastes my whole morning

greglucas commented 2 years ago

Were you able to find a solution and can post it here for others? Perhaps you can help us by improving the documentation or adding an example to the gallery of what you were looking for: https://scitools.org.uk/cartopy/docs/latest/gallery/index.html