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'm using your excellent CRS compatibility guide to convert pyproj.CRS objects into rasterio.crs.CRS objects in order to properly encode the CRS of some images which happen to be DEMs - I therefore want the vertical component of the CRS to be correct.
Specifically, I need to write a GeoTIFF with CRS EPSG:4979, and another one with CRS EPSG:4326+5773 (thanks @snowman2 for the great info you gave me in #630 about CompoundCRS by the way!).
I have rasterio 1.1.8 (rasterio.__gdal_version__ 2.4.4) and pyproj 2.6.1.post1 both installed from their respective PyPI wheels.
If I remove the WktVersion.WKT1_GDAL from the above snippet, the conversion to a rasterio.crs.CRS works in both cases - or at least the code doesn't crash.
Can I safely remove WktVersion.WKT1_GDAL and still expect my conversion to be correct? Do you know why the conversion for EPSG:4979 fails in the first case? Is it because it's a 3D CRS?
Thanks!
The text was updated successfully, but these errors were encountered:
Do you know why the conversion for EPSG:4979 fails in the first case? Is it because it's a 3D CRS?
When using the projinfo command I see this output:
$ projinfo EPSG:4979 -o WKT1:GDAL
WKT1:GDAL string:
Error when exporting to WKT1:GDAL: WKT1 does not support Geographic 3D CRS.
Can I safely remove WktVersion.WKT1_GDAL and still expect my conversion to be correct?
The only way to for it to be safe would be to use GDAL 3+ with PROJ 6+. Otherwise, you will need to proceed with caution and I would recommend doing more validation to be sure everything worked as expected.
Hi,
I'm using your excellent CRS compatibility guide to convert
pyproj.CRS
objects intorasterio.crs.CRS
objects in order to properly encode the CRS of some images which happen to be DEMs - I therefore want the vertical component of the CRS to be correct.Specifically, I need to write a GeoTIFF with CRS
EPSG:4979
, and another one with CRSEPSG:4326+5773
(thanks @snowman2 for the great info you gave me in #630 aboutCompoundCRS
by the way!).I have
rasterio 1.1.8
(rasterio.__gdal_version__ 2.4.4
) andpyproj 2.6.1.post1
both installed from their respective PyPI wheels.The following snippet:
works for
EPSG:4326+5773
, but fails forEPSG:4979
with the following traceback:If I remove the
WktVersion.WKT1_GDAL
from the above snippet, the conversion to arasterio.crs.CRS
works in both cases - or at least the code doesn't crash.Can I safely remove
WktVersion.WKT1_GDAL
and still expect my conversion to be correct? Do you know why the conversion forEPSG:4979
fails in the first case? Is it because it's a 3D CRS?Thanks!
The text was updated successfully, but these errors were encountered: