GeoTIFF: Unterschied zwischen den Versionen

Aus Geometa Lab OST
Zur Navigation springen Zur Suche springen
K (make each HowTo/Tip a subsection)
Zeile 4: Zeile 4:
== Tipps ==
== Tipps ==


* Howto convert Tiff to GeoTIFF: See [[GDAL]].
=== How to convert Tiff to GeoTIFF ===


* How can one remove the nodata values from a GeoTIFF? I find many instructions on how to add the values, but none on how to remove them. => There isn't a direct way of accomplishing this. You could extract a work.vrt file, then manually edit it and remove the line(s) with the NoDataValue tags. Then convert back to geotiff:
See [[GDAL]].
 
=== How to remove the nodata values from a GeoTIFF? ===
 
I find many instructions on how to add the values, but none on how to remove them. => There isn't a direct way of accomplishing this. You could extract a work.vrt file, then manually edit it and remove the line(s) with the NoDataValue tags. Then convert back to geotiff:


   % gdal_translate -of VRT your.tif work.vrt
   % gdal_translate -of VRT your.tif work.vrt
   % gdal_translate work.vrt fixed_your.tif
   % gdal_translate work.vrt fixed_your.tif

Version vom 6. Februar 2018, 10:46 Uhr

See also:

Tipps

How to convert Tiff to GeoTIFF

See GDAL.

How to remove the nodata values from a GeoTIFF?

I find many instructions on how to add the values, but none on how to remove them. => There isn't a direct way of accomplishing this. You could extract a work.vrt file, then manually edit it and remove the line(s) with the NoDataValue tags. Then convert back to geotiff:

 % gdal_translate -of VRT your.tif work.vrt
 % gdal_translate work.vrt fixed_your.tif