<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">* The 'density' option was added in PDAL 2.6 <a href="https://github.com/PDAL/PDAL/pull/4244">https://github.com/PDAL/PDAL/pull/4244</a><div>* For now, it only outputs GeoJSON, so my previous example wasn't quite right. The following 'pdal translate' would also work with 2.6:</div><div><br></div><div><blockquote type="cite">pdal translate myfile.las counts.tif --writers.gdal.resolution=10 --writers.gdal.binmode=true --writers.gdal.output_type="count" --filter hexbin --filters.hexbin.edge_length=10 --filters.hexbin.density=myfile.geojson --filters.hexbin.threshold=1</blockquote></div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Jan 7, 2024, at 10:33 AM, Ulises Ibarra via pdal <pdal@lists.osgeo.org> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div>Hi Howard:</div><div>I run some like this, and look like it works:</div><div>[<br> {<br> "type":"readers.las",<br> "filename":"cloud6cb301139efa9d25_GGM2010_scale_offset_translated.las"<br> },<br> {<br> "type":"writers.gdal", <br> "filename":"cloud6cb301139efa9d25_GGM2010_scale_offset_translated_densidad1m2.tif",<br> "dimension":"Z",<br> "data_type":"Float32",<br> "binmode":true,<br> "output_type":"count",<br> "resolution":1<br> }<br> ]</div><div><br></div><div>what do you think?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom, 7 ene 2024 a las 9:34, Ulises Ibarra (<<a href="mailto:ulisesmartinibarra@gmail.com">ulisesmartinibarra@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Howard, thanks for replying.<br>When applying the pipeline that you show me, the result is on the one hand:<br>1.- (pdal_2.6) C:\clouds\quarry>pdal pipeline pipeline_densidad_hexagonos.json<br>PDAL: filters.hexbin: Unexpected argument 'density'<br><br>I did something that is probably not right:<br>"pipeline": [<br> {<br> "type":"readers.las",<br> "filename":"odm_georeferenced_model.laz"<br> },<br> {<br> "type":"filters.hexbin.density",<br> "edge_length":10,<br> "filename":"hexagons-are-awesome.shp"<br> }<br> ]<br><br>And the result was:<br>"PDAL: Couldn't create filter stage of type 'filters.hexbin.density'.<br>You probably have a version of PDAL that didn't come with a plugin<br>you're trying to load. Please see the FAQ at <a href="https://pdal.io/faq.html" target="_blank">https://pdal.io/faq.html</a>"<br><br>On the other hand, using the same example pipeline that you kindly showed me:<br>2.- The resulting TIF raster has 3 bands and apparently shows elevation, not density. Probably because the pipeline includes this: "dimension":"Z".<br><br>What could I do about it?<br><br>Cordially<br><br>Ulises Ibarra</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 5 ene 2024 a las 15:55, Howard Butler (<<a href="mailto:howard@hobu.co" target="_blank">howard@hobu.co</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Jan 4, 2024, at 4:50 PM, Ulises Ibarra via pdal <<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a>> wrote:<br>
<br>
If you don't need the hexagons, use writers.gdal.binmode=true and then capture the 'count' band from that raster. It should run quickly and you can control the pixel size. <br>
<br>
The following pipeline does both:<br>
<br>
> "pipeline":[<br>
> {<br>
> "type":"readers.las",<br>
> "filename":"myfile.laz"<br>
> },<br>
> {<br>
> "type":"filters.hexbin",<br>
> "edge_length":10,<br>
> "density":"hexagons-are-awesome.shp"<br>
> },<br>
> {<br>
> "type":"writers.gdal", <br>
> "filename":"output.tif",<br>
> "dimension":"Z",<br>
> "data_type":"Float32",<br>
> "binmode":true,<br>
> "output_type":"count",<br>
> "resolution": 1<br>
> }<br>
> ]<br>
> }<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>pdal mailing list<br>pdal@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/pdal<br></div></blockquote></div><br></div></body></html>