[GRASS-dev] limits of r.patch

Markus Neteler neteler at osgeo.org
Mon Jul 16 05:45:04 PDT 2012


On Mon, Jul 16, 2012 at 2:42 PM, Margherita Di Leo
<dileomargherita at gmail.com> wrote:
> Markus,
>
> On Mon, Jul 16, 2012 at 11:37 AM, Markus Neteler <neteler at osgeo.org> wrote:
>>
>> On Mon, Jul 16, 2012 at 11:32 AM, Margherita Di Leo
>> <dileomargherita at gmail.com> wrote:
>> ...
>> > My aim was to retrieve the names of tiles in the LIST variable instead
>> > of
>> > storing them in the CSV file produced by:
>> > ogr2ogr -f CSV list.csv index_dem.shp -spat -11.0001389 33.9998611
>> > 43.0001389 72.0001389
>> > How should I do it?
>>
>> I don't know if it works your way but you need a space separated list
>> of names in the end...
>
>
> It doens't work indeed :) So I created a file with a space separated list of
> names and then (with a little suggestion from Luca) :
> LIST=""
> for i in `cat /home/leomarg/Desktop/aster/elenco_aster_europa_riga`;do
> LIST="$LIST $i"; done

If you have a "listfile.txt" (whatever name) with
file1
file2
...

just do a one-line :-)

LIST="`cat listfile.txt | tr '\n' ' '"

> Eventually I ran:
>
> gdalwarp $CACHE $BIGTIFF -srcnodata -9999 -dstnodata -9999 -r bilinear -tr
> $RES $RES $LIST mosaik_$RES.tif
>
> But I got ERROR:
>
> [....]
> ERROR 1: Integer overflow : nDstXSize=49460, nDstYSize=70144
> Processing input file ASTGTM_N55E011_dem_lzw.tif.

Your GDAL installation is lacking bigtiff support.

Markus


More information about the grass-dev mailing list