[pdal] tweaking parameters in filters.smrf

Karl North karln at surdex.com
Wed Jun 12 11:41:02 PDT 2019


Moving along here, and have encountered a new question…

I’m getting some promising results from filters.cluster but would certainly like to be able to apply this filter ( and others ) multiple times with different settings while using writers.las after each filter so that I can review the progress of the overall pipeline processing after each step completes.

Is there a way to get my pipeline to write a LAS after each of the steps/filters?  I’d like to save interim results for review, but cannot find a good example in the docs or in the list archive.



From: Howard Butler <howard at hobu.co>
Sent: Wednesday, June 12, 2019 9:41 AM
To: Karl North <karln at surdex.com>
Cc: Bradley Chambers <brad.chambers at gmail.com>; pdal at lists.osgeo.org
Subject: Re: [pdal] tweaking parameters in filters.smrf




On Jun 12, 2019, at 9:36 AM, Karl North <karln at surdex.com<mailto:karln at surdex.com>> wrote:

Brad:

Thanks for the suggestions.

I’ve done some reading and begun playing around with the cluster filter.  One problem is that I’m new enough to PDAL that I cannot find a way to add/define a dimension and store the cluster ID into either LAS or LAZ format on output.  I think it should be possible to just hijack an existing field in the point data records for current testing purposes.  Does this sound possible?  I’m floundering a bit trying to find an example of something similar.  Can you point me in the right direction?

Use the filters.ferry to copy ClusterID => PointSourceId downstream of your filters.cluster invocation.

https://pdal.io/stages/filters.ferry.html<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpdal.io%2Fstages%2Ffilters.ferry.html&data=02%7C01%7C%7C5dc2119c10ca44f84e9008d6ef43fd22%7Cbf4323beeac04c8eb466c7924493cbee%7C0%7C0%7C636959472628150563&sdata=hKaN0thXKKf7fE%2F5nqkAZcSq8YMCR26WM7xkkz5IINI%3D&reserved=0>



I can get a BPF output, but currently have no way to review the result.  I’m now downloading 64-bit QT Reader, after finding a thread by HoBu saying that this viewer would work for a quick review.

I don't know if that is still viable.

You can also write to LAS with extra bytes

--writers.las.extra_dims=ClusterID

but you'll need something that can view extra LAS dimensions.


Howard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20190612/d43fa30f/attachment-0001.html>


More information about the pdal mailing list