Re: [gdal-dev] About gdal RasterizeLayer

2021-05-04 Thread jratike80
Hi, I tried if someone who don't know Python could do about the same with gdal_rasterize https://gdal.org/programs/gdal_rasterize.html and I had some success. gdal_rasterize -dialect sqlite -sql "select st_buffer(geometry,0.01) from states" -burn 100 -of GTIFF -ot byte -tr 0.1 0.1 -add

Re: [gdal-dev] About gdal RasterizeLayer

2021-05-04 Thread Frank Warmerdam
Miguel, I can't seem to find this in the docs, but I think what you want is "MERGE_ALG" set to ADD instead of the default REPLACE. https://github.com/OSGeo/gdal/blob/master/gdal/alg/gdalrasterize.cpp#L1165 This doesn't address the buffering (I guess you might still want to buffer the whole

[gdal-dev] About gdal RasterizeLayer

2021-05-04 Thread Miguel A. Manso
Dear all I have a multiline layer type (tracking) and I want to make a heat map (densities) on a buffer of them, so that in those places where several buffers overlap the density is added as many times as lines overlap. Now I'm doing it with a python script that reads from a shp the lines,