robustly retrieving the epsg from a crs requires an implementation of pyproj's [to_epsg](https://github.com/pyproj4/pyproj/blob/1452ba404be58c14a6b64d4551c320022f5aafcf/pyproj/_crs.pyx#L2746C1-L2747C5)