[pdal] execute a pipeline from python

Howard Butler howard at hobu.co
Wed Jan 31 11:43:43 PST 2018



On 1/31/18 1:37 PM, Dan Lipsa wrote:
> Hi all,
> I can enable streaming in a pipeline using
>
> ./pdal pipeline --stream dsm.json
>
> Can I do the same thing in python?
> What is the option that I need to set?
>
> pipeline = pdal.Pipeline(json)
> pipeline.validate()  # check if our JSON and options were good
> count = pipeline.execute()
>

Dan,

No, that bit of Python API isn't done yet. There's a bit of a question
of what we should do there too? Presumably the API would have the user
set a chunk size and then return an iterator. The API to follow would be
the PipelineKernel.cpp implementation, but apply it to the Python/Cython
extension stuff.

I'd be happy to merge a patch that did this.

Howard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 548 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20180131/b6701a27/attachment.sig>


More information about the pdal mailing list