使用GDAL将GeoTIFF中的0值设置为nodata?


Answers:



4

与gdal:

  1. gdalbuildvrt -of GTIFF -srcnodata 0 input.tif myVrt.vrt
  2. gdal_translate -of GTIFF -scale -a_nodata 0 myVrt.vrt output.tif

除此之外,您还可以在qgis中使用栅格计算器插件或草。和arcpy SetNull方法。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.