cartopy icon indicating copy to clipboard operation
cartopy copied to clipboard

Add support for non-projection EPSG codes

Open jbmuir opened this issue 1 year ago • 1 comments

Description

It would be helpful for high precision work to be able to non-projection based coordinate systems (in my case, GDA94/GDA2020) which crs.epsg does not currently support as per https://scitools.org.uk/cartopy/docs/latest/reference/generated/cartopy.crs.epsg.html

e.g. having the following work.

import cartopy.crs as ccrs

src_coords_system = ccrs.epsg(7844) # GDA2020

jbmuir avatar Feb 15 '24 22:02 jbmuir

Seems like a reasonable request. I think it would mean creating a new class that subclasses CRS instead of Projection and then piping that through the function to return the proper class: https://github.com/SciTools/cartopy/blob/main/lib/cartopy/_epsg.py

greglucas avatar Feb 21 '24 03:02 greglucas