<div dir="ltr">I think of create a discrete raster from points burning the number of points of each cell into the band value. In the manual at <a href="http://www.gdal.org/gdal_rasterize.html">http://www.gdal.org/gdal_rasterize.html</a> I figure out, that the -add switch could be the solution. But no value has to be set unlike -burn or -a switches.<br><br><div><div><div><div><div><div>What is the syntax for the -add switch.</div><div><br></div><div>Burn works:</div><div>gdal_rasterize.exe -burn 1 -tr 20 20 -l points c:/Temp/points.shp c:/Temp/out.tif<br></div><div><br></div><div>Add doesn't<br></div><div>gdal_rasterize.exe -add -tr 20 20 -l points c:/Temp/points.shp c:/Temp/out.tif<br></div><div><br></div><div>ERROR 6: One and only one of -3d, -burn or -a is required.</div><div>(-add not mentioned)<br></div><div><br></div><div>I don't think, I fully understand the manual:</div><div>
<dt><br></dt>
<dd><p class="gmail-startdd">Instead of burning a new value, this adds the new value to the existing raster. Suitable for heatmaps for instance.</p></dd>Installed gdal through QGIS incl. gdal_dev, both tried.</div><div><br></div><div>Can you give me a hint to use -add properly?</div><div><br></div><div>Alternatives tried:<br></div><div>- We have used kernel density in QGIS w. GRASS, but we think it interpolates / searches too far. <br></div><div>- Points in polygon, but is too heavy for the area (Greenland EEZ).</div><div><br></div><div>Next step is to do raster density of lines, eventually through gdal_rasterize or other non-interpolating / non-searching algorithm.  <br></div><div><br></div><div>Karl<br></div><div><div><div><br>-- <br><div class="gmail_signature">Karl Brix Zinglersen<br></div>
</div></div></div></div></div></div></div></div></div>