You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a user of my Python-based software that wants to compare a CRS loaded from a PROJ.4 string to a CRS created from a geotiff created with that same CRS in WKT2. We use pyproj and rasterio to convert a pyproj CRS object to WKT2_2018, give it to rasterio (and therefore GDAL), and save it as a geotiff. The user then loads this geotiff with rasterio and converts the rasterio CRS to a pyproj CRS. When comparing the CRSes they are not considered equal but as far as we can tell the only difference is the coordinate operation. CC @snowman2@simonrp84
Above is a comparison of the WKT2_2019 (note the difference in year from the WKT2 used in creating the geotiff) directly in PROJ. These strings were generated by my user from the pyproj CRS objects with crs.to_wkt(). As far as I can tell everything is the same except for "degree" versus "Degree" and "D_unknown" versus "unknown". pj1 is the original CRS loaded from a PROJ.4 string. pj2 is the CRS loaded from the geotiff.
Example of problem
Problem description
I have a user of my Python-based software that wants to compare a CRS loaded from a PROJ.4 string to a CRS created from a geotiff created with that same CRS in WKT2. We use pyproj and rasterio to convert a pyproj CRS object to WKT2_2018, give it to rasterio (and therefore GDAL), and save it as a geotiff. The user then loads this geotiff with rasterio and converts the rasterio CRS to a pyproj CRS. When comparing the CRSes they are not considered equal but as far as we can tell the only difference is the coordinate operation. CC @snowman2 @simonrp84
Above is a comparison of the WKT2_2019 (note the difference in year from the WKT2 used in creating the geotiff) directly in PROJ. These strings were generated by my user from the pyproj CRS objects with
crs.to_wkt()
. As far as I can tell everything is the same except for "degree" versus "Degree" and "D_unknown" versus "unknown".pj1
is the original CRS loaded from a PROJ.4 string.pj2
is the CRS loaded from the geotiff.This may be similar to #3725.
Expected Output
Get
0
(not equal), expect1
(equal).Environment Information
proj
): 9.2.1 and 9.0.0Installation method
conda-forge
Edit: Sorry, I'm not good enough with the PROJ API to do the various WKT conversions to test the equivalent operations I did in Python.
The text was updated successfully, but these errors were encountered: