Re: [gdal-dev] gdal_translate -scale

2020-12-14 Thread Rahkonen Jukka (MML)
Hi, Please remember to use reply-to-all for sending a copy to the list as well. -Jukka- -Alkuperäinen viesti- Lähettäjä: jesus.mo...@solute.es Lähetetty: maanantai 14. joulukuuta 2020 14.27 Vastaanottaja: Rahkonen Jukka (MML) Aihe: RE: [gdal-dev] gdal_translate -scale Hi, Thank you

Re: [gdal-dev] gdal_translate -scale

2020-12-14 Thread jratike80
Hi, If your output is 8 bit you can just use -scale without min/max values. From https://gdal.org/programs/gdal_translate.html: "Rescale the input pixels values from the range src_min to src_max to the range dst_min to dst_max. If omitted the output range is 0 to 255. If omitted the input range i

[gdal-dev] gdal_translate -scale

2020-12-14 Thread jesus.moran
Hello GDAL team and thank you for welcome me. I have an issue with the gdal_translate command. I would like to use the “STATISTICS_MIN” and “STATISTICS_MAX” metadata key values in the -scale parameter of the program, so I don’t need to specify it manually every time I want to scale the output.

Re: [gdal-dev] How to kill gdal2tiles?

2020-12-14 Thread Rahkonen Jukka (MML)
Hi Sean, Thanks for the hint about multiprocessing. I was testing a command from gis.stackexchange with copy-pasting it and there is indeed a parameter “--processes=6”. It seems to me that there in no clean way to kill gdal2tiles on Windows when it is executing via multiprocess path. Ctrl-C ki