[gdal-dev] gdal_merge

Gong, Shawn shawn.gong at mdacorporation.com
Tue Aug 13 09:02:17 PDT 2019


I used both -a_nodata -32767 and -ot Float32, and neither worked.
-32767 has been converted to 0, and I want to keep the -32767.

Thanks,
Shawn

________________________________________
From: gdal-dev [gdal-dev-bounces at lists.osgeo.org] on behalf of jratike80 [jukka.rahkonen at maanmittauslaitos.fi]
Sent: August-13-19 4:51 AM
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] gdal_merge

Hi,

If you read https://urldefense.proofpoint.com/v2/url?u=https-3A__gdal.org_programs_gdal-5Fmerge.html&d=DwIGaQ&c=qv9gmtOiXdJCj9gMlMKtaw&r=ROy3ulwX11d_sGWoPYB0I5rYOqZ87kk4KkIgG2QtlQI&m=DMhZ13IRdOz_dv3IjqnyD9344s5TP4uazdGeD20Othc&s=51QGJVd-d83FFaODCpFQo-bmIk65VhvoYl8qQx7j_VY&e=  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: https://urldefense.proofpoint.com/v2/url?u=http-3A__osgeo-2Dorg.1560.x6.nabble.com_GDAL-2DDev-2Df3742093.html&d=DwIGaQ&c=qv9gmtOiXdJCj9gMlMKtaw&r=ROy3ulwX11d_sGWoPYB0I5rYOqZ87kk4KkIgG2QtlQI&m=DMhZ13IRdOz_dv3IjqnyD9344s5TP4uazdGeD20Othc&s=Cs6LL6Z5K3zftznoX7kV2oE1i4HZDwZ-8b3O-Gc40tU&e=
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_gdal-2Ddev&d=DwIGaQ&c=qv9gmtOiXdJCj9gMlMKtaw&r=ROy3ulwX11d_sGWoPYB0I5rYOqZ87kk4KkIgG2QtlQI&m=DMhZ13IRdOz_dv3IjqnyD9344s5TP4uazdGeD20Othc&s=-JP3OAQ9usLjYGbLQhH3nmGePhwbf_56EimLM91Mz0g&e=


More information about the gdal-dev mailing list