[gdal-dev] GDAL doesn't read GeoTiff .msk mask file
Even Rouault
even.rouault at spatialys.com
Tue Dec 20 00:53:13 PST 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161220/a2fd8f11/attachment-0001.html>
More information about the gdal-dev
mailing list