On mardi 20 décembre 2016 04:34:55 CET Nikolai Bezdna wrote:
> No, the strange thing is neither gdalinfo, nor gdal_translate work on my
> .msk file.
> Gdalinfo returns "not recognized as a supported file format”.

Oh, then that's really an ArcGIS specific thing. Not even a regular TIFF

> Though this .msk works ok in ArcGIS. I can even export raster from ArcGIS
> with baked-in mask (like setting output to 16-bit and nodata value to 256
> (anything bigger than 255)). But then I don’t know how to get gdal
> translate it back to 8 bit with adding a mask band from pixels with value
> of 256. Is that possible?

Use gdal_translate -a_nodata 256 in.tif out.tif

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to