Closed ldesousa closed 2 years ago
This is something that geopandas needs to address. If you use CRS.from_authority and pass in the auth_name of ESRI and the auth_code 54052, it should work.
Closing as this is a geopandas issue. Please report it here: https://github.com/geopandas/geopandas/
Code Sample, a copy-pastable example if possible
Problem description
My system is Ubuntu 22.04. The use case is to read into a data frame a set of points from around the globe and plot it to map. The points are in a PostGIS database. Proj fails with an exception when reading the points to a GeoPandas data frame. It claims the CRS does not exist, but it does.
Expected Output
A GeoPandas data frame.
Environment Information
Installation method
pip
Full log
This is the full environment:
The log from the interactive command line with the exception:
First check, the CRS definition in PostGIS:
Then check the same in the Proj database:
Looks like PyProj (or GeoPandas) is inadvertently changing the CRS authority, but this might not explain the exception. The
srid
field in PostGIS andcode
in the Proj database are both unique (not enforced, but the codes do not repeat). The programme should be able to fetch the correct CRS definition with the code alone.Thank you for reading.