0

I am using GDAL tool to merge many geotiffs and get the following result:enter image description here

how to fill the no data and change the no data value to 1?

1
  • 3
    From the docs gdal.org/gdal_merge.html (I assume you're using merge although not stated in your question) you should be able to use -init 1 -n 1 -a_nodata 1 to set various fill/nodata options. Commented Aug 8, 2017 at 3:27

1 Answer 1

1

I solved my problem, i convert this geotiff to ascii file first and change the values, then convert ascii file back to geotiff.

1
  • 1
    gdal_translate is able to set a NODATA value without the need to convert to another format. It is also accessible within the QGIS Raster menu.
    – AndreJ
    Commented Aug 9, 2017 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.