[pdal] filtering pipeline result

Andrew Bell andrew.bell.ia at gmail.com
Mon Oct 2 05:48:00 PDT 2017


This is a python question unless you're trying to add a new dimension to
the PDAL pipeline for processing later.  If this is the case, here's an
example from the tests that adds an AddedIntensity and AddedPointSourceId
dimension.

import numpy
def myfunc(ins,outs):
    outs['AddedIntensity'] = np.zeros(ins['X'].size, dtype=numpy.double)
    outs['AddedPointSourceId'] = np.zeros(ins['X'].size, dtype=numpy.double)
    return True


On Mon, Oct 2, 2017 at 6:50 AM, Giuseppe Falcone <falcone.giuseppe at gmail.com
> wrote:

> Hi to all,
>
> I have a pipe that elaborate a las file. on the pipe.arrays[0] command I
> have, as result, a ndarray.
> I want to split this array in twa subarray: the first with element that
> have ReturnNumber dimension = 1 and the second with all others elements.
>
> There is an efficient way to do this?
> Thanks.
>
> Giuseppe
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>



-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20171002/a0bd54f5/attachment.html>


More information about the pdal mailing list