[Qgis-user] Python script for QGIS

Nicolas Cadieux nicolas.cadieux at archeotec.ca
Fri Dec 27 06:26:31 PST 2019


Hi,
Yes, google “reclassify”. You can do it multiple ways.
Nicolas

> Le 27 déc. 2019 à 05:55, LE LAMER Romain <rlelamer at hotmail.fr> a écrit :
> 
> Hi,
> Is it possible via gdal_translate, or other gdal program, to binarize a tile?
> 
> I would like the colors RGB 59,89,95,255 & 60,89,96,255  change to white (color entry 0) and that the other colors 109,178,200,255; 138,193,212,255 & 161,205,220,255 change to black (color entry 1)
> 
> I don't understand how to use the -b and / or -mask arguments in this code
> l = 'gdal_translate -a_srs EPSG:4326 -a_ullr ' + ullr + f_in + f_out + '\n'
> 
> Thanks
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the Qgis-user mailing list