Skip to main content
6 events
when toggle format what by license comment
Aug 31, 2018 at 19:36 comment added DanM Ah, yes, command works then. Doesn't do what I expected it to, though... still getting everything transparent.
Aug 31, 2018 at 18:23 comment added mikewatt Does it work if you keep the arg together with quotes? i.e. -dstnodata "0 0 0 255"
Aug 31, 2018 at 17:01 comment added DanM It's confusing... the docs for -dstnodata show it as -dstnodata value [value...], and states "different values can be supplied for each band". That sounds to me like I would write -dstnodata 0 0 0 255, for example, if I wanted the rgb bands to be set at 0 and the alpha band at 255, i.e. solid black. But when I do that I get "Error4: 0: No such file or directory", (the "0" is replaced by whatever I put in for the second number), so it appears to be only looking at the first value as an argument to that flag.
Aug 31, 2018 at 16:54 comment added mikewatt That's correct. Looks like you could also specify a value per band, although I've never tried it
Aug 31, 2018 at 16:53 comment added DanM If I set -dstnodata 1, say, is that going to set the value of the outside-the-cutline pixels to 1 on all bands? The documentation isn't very clear on this, at least not to me...
Aug 31, 2018 at 16:48 history answered mikewatt CC BY-SA 4.0