Closed mazingaro closed 5 days ago
Eeeh, I understood after that this option is possible just when reprojecting.
@mazingaro Anything which should be better documented in the manual page?
@mazingaro Anything which should be better documented in the manual page?
Not really, I should take a deep breath or two before reading and do it slower :P
But generally, It would make sense to propose an enhancement to resample the imported rasters also without re-projection. @neteler is it a selfish request or you find it useful for the users?
Do you mean a standalone reproduction tool, like gdal warp, or on the fly reprojection, like QGIS?
Do you mean a standalone reproduction tool, like gdal warp, or on the fly reprojection, like QGIS?
I mean something as a flag withing the function, that allows you to resample it also if EPSG matches the project. In the background there is probably gdalwarp
, so this could mean just using gdalwarp
within the same projection.
Tested in GRASS 8.4 and grass script in python.
When importing a 16cm ortophoto and setting
resolution="region"
,r.import
doesn't resample the raster to the region's (1m). Also after settingresolution="value"
andresolution_value=1
, it doesn't work. The metadata is also a bit misleading, but it clearly shows that there are no resampling processes (no option for that withr.in.gdal
if I understand well: so wrapping it with offering resampling seems odd).One of the python codes
The metadata says it was imported with
r.in.gdal
(I understand thatr.import
is basically a wrapper aroundr.in.gdal
), but the parameters for resampling can't be seen, as there are no such options inr.in.gdal
. You can see as well the resolution of the imported raster.