Closed rafaqz closed 1 month ago
Surely there are a bunch of other functions that should behave similarly? They should probably all throw the same error? Or in some cases warn and assume WGS84?
For example this weird resample
just gives a warning
lon = X(-179.875:1:179.875);
lat = Y(-89.875:1:89.875);
ras = Raster(rand(lon, lat));
resample(ras; crs = EPSG(4326))
┌ Warning: You have set a crs to resample to, but the object does not have crs so GDAL will assume it is already in the target crs. Use `newraster = setcrs(raster, somecrs)` to fix this.
└ @ RastersArchGDALExt C:\Users\tsh371\.julia\packages\Rasters\GI5GA\ext\RastersArchGDALExt\resample.jl:60
But reproject(ras; crs = EPSG(4326))
does not even throw a warning and just returns ras
.
Surely there are more! This is just one that came up for someone. Something consistent would be good.
This isn't so nice:
@tiemvanderdeure