Re: [Qgis-user] Python script for QGIS

2019-12-28 Thread LE LAMER Romain
Hi, Thanks for the code but it doesn’t work :/ ERROR 5: map_11_0_309.tiff: GDALDataset::GetRasterBand(2) - Illegal band # it is quite complex to understand and the help of gdal is not very provided… this is what gdalinfo returns to me For .tiff : gdalinfo map_11_0_309.tiff Driver: GTiff/GeoTIFF

Re: [Qgis-user] Python script for QGIS

2019-12-27 Thread LE LAMER Romain
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

[Qgis-user] Python script for QGIS

2019-12-23 Thread LE LAMER Romain
Hi, I would need help ... I know how to do all the steps on the QGIS interface except one, the binarization of the png with the Raster calculator according to the RGB colors I have 524 288 png tiles to convert to kml, and even if I wanted to, it's an impossible task by hand ... so I would

Re: [Qgis-user] Georeference png files

2019-12-22 Thread LE LAMER Romain
Hi Nick, Thanks for this method. I didn't manage to do it in the QGIS python console but I installed gdal on the mac and it does the job perfectly. I have more than to make a script to convert the whole and I could exploit that on QGIS. > Le 22 déc. 2019 à 21:06, Nick Hopton a écrit : > > It

Re: [Qgis-user] Georeference png files

2019-12-22 Thread LE LAMER Romain
@Nicolas : I tried to save it in .geoTiff format (right click, export, save as) I end up with a white or black tile …  If you want to try, here is the png and the coordinates (if you get there, I would like to know the method) [cid:FA974430-F7BF-4AD9-BC9D-316070788235] N = 71,71875 W = -180 S

[Qgis-user] Georeference png files

2019-12-22 Thread LE LAMER Romain
Hi, I have a complete map in tiles of 256 x 256 px in png format not georeferenced. (if I open them in QGIS they are superimposed on each other) 1024 tiles in Longitude and 512 tiles in Latitude = 524288 tiles. Each tile is named as follows: map_Z_X_Y.png Z => zoom (11). X => from 0 to 1023. Y =>

Re: [Qgis-user] "Activate" ASTER Global Digital Elevation Model V002

2019-12-22 Thread LE LAMER Romain
60, go with SRTM data. ALOS AW3D30 is far superior to ASTER also and covers about the same ground. Nicolas Le 2 déc. 2019 à 11:31, LE LAMER Romain mailto:rlela...@hotmail.fr>> a écrit :  Hi, I need ASTGTM v2 except now we are in v3. (Minimum water body detection size v2 => 1 km

[Qgis-user] "Activate" ASTER Global Digital Elevation Model V002

2019-12-02 Thread LE LAMER Romain
Hi, I need ASTGTM v2 except now we are in v3. (Minimum water body detection size v2 => 1 km², v3 => 0.2 km²) In the doc, I understand that it is possible to display the v3 in v2 via the num file, indicating a number in the range 60 - 110. (any of them ?) I'm using QGIS 3.10 on macOS and I don't