annotate gdalwarp.txt @ 10:1944acce0e6f

Add --output= option.
author David Barts <n5jrn@me.com>
date Thu, 26 Aug 2021 08:37:46 -0700
parents 45be2d1d3213
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
1 Gdalwarp is something of a pain. I got decent results with:
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
2
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
3 gdalwarp -r lanczos -srcnodata None -dstnodata None -multi -tr 1 1 WA_Hamilton_20200305_TM_geo.tiff WA_Twin_Sisters_Mountain_20200323_TM_geo.tiff both.tiff
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
4
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
5 Note that this changed the resolution (roughly doubled it, in fact).
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
6 There does not seem to be a good, easy way to tell it to preserve
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
7 resolution. You must play with -tr. Anything higher than 1x1 is nasty
45be2d1d3213 Remove trailing whitespace, add warp notes.
David Barts <n5jrn@me.com>
parents:
diff changeset
8 and coarse. Anything less gobbles disk space exponentially.
10
1944acce0e6f Add --output= option.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
9
1944acce0e6f Add --output= option.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
10 Another alternative: just drop gdalwarp and for each raster layer, set
1944acce0e6f Add --output= option.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
11 Properties... Additional no data value to 0. Import via the following
1944acce0e6f Add --output= option.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
12 procedure:
1944acce0e6f Add --output= option.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
13
1944acce0e6f Add --output= option.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
14 http://www.qgistutorials.com/en/docs/raster_mosaicing_and_clipping.html
1944acce0e6f Add --output= option.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
15 http://www.qgistutorials.com/en/docs/3/raster_mosaicing_and_clipping.html