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
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
This is because in that case, my_dem.crs.to_epsg() returns None. The CRS of that DEM was set with a proj4 string and never with an EPSG code, so gdal probably does not find it.
You can reproduce the error by reprojecting the xdem sample DEM in a different projection e.g.,:
When running the command
my_dem.to_vref('WGS84')
, it fails with the following error:This is because in that case,
my_dem.crs.to_epsg()
returns None. The CRS of that DEM was set with a proj4 string and never with an EPSG code, so gdal probably does not find it.You can reproduce the error by reprojecting the xdem sample DEM in a different projection e.g.,:
The text was updated successfully, but these errors were encountered: