[GRASS-user] Re: /usr/lib/grass/scripts/r.in.wms: line 439: /usr/lib/grass/etc/r.in.wms/r.in.gdalwarp: Argument list too long

Seb wrote:

I figured one can use 'gdalwarp' to bring them to the current location:

eval $(g.region -g)
gdalwarp -s_srs 'EPSG:4326' -t_srs="$(g.proj -wf)" -te $w $s $e $n
$GISDBASE/wms_download/wms_global_mosaic_nc__0.geotiff ~/tmp/test.tif

and then one could 'r.in.gdal' them into the location for r.patch'ing,
but this doesn't seem right because 'gdalwarp' took several minutes to
run and the output file was ballooning beyond 2 Gb, when the source file
is only 4 Mb. I can't see what's wrong with this.

don't use -te, let it naturally decide how big the reprojected map will be.

Hamish