[gdal-dev] gdal_merge
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Tue Aug 13 01:51:24 PDT 2019
Hi,
If you read https://gdal.org/programs/gdal_merge.html carefully you'll
notice that -n is used for telling what nodata value is used in the source
files and it is only needed if GDAL can't recognize it automatically. Try
-a_nodata -32767 instead "Assign a specified nodata value to output bands."
-Jukka Rahkonen-
Gong, Shawn-2 wrote
> Hi list,
>
> I use gdal_merge to mosaic a set of DTED 1 and 2 chips.
> DTED contains -32767 as nodata. But after merging, -32767 are reset as 0.
> I tried to use "-n -32767" but getting the same result.
>
> Is there a way to keep the -32767 values?
>
> Thanks,
> Shawn
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list