<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">When you .execute() a pipeline in Python, you get back the data in the pipeline.arrays variable. In a stream scenario, that behavior would be disrupted, or we would need to have it return an iterator or something. <div class=""><br class=""></div><div class="">If you want to just execute a pipeline in stream mode without caring for the numpy arrays of the data, is the a reason to not simply use subprocess and invoke the shell?</div><div class=""><br class=""></div><div class="">Howard<br class=""><div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 31, 2018, at 1:54 PM, Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com" class="">dan.lipsa@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Howard,<div class="">Thanks for your answer.</div><div class=""><br class=""></div><div class="">I was thinking more along the lines of what the command line tool does: just set on option "stream" to the pipeline.</div><div class="">Is this choosing a default chunk (buffer) size?</div><div class=""><br class=""></div><div class="">For instance the following pipeline takes several point cloud "bricks"</div><div class="">and generates the dsm for the whole surface covered.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">{</div><div class="">  "pipeline": [</div><div class="">    "a.bpf",</div><div class="">    "b.bpf",</div><div class="">    {</div><div class="">      "resolution": 0.25,</div><div class="">      "filename":"test.tif",</div><div class="">      "output_type": "max",</div><div class="">      "window_size": "20",</div><div class="">      "bounds": "([740698.8745, 741144.3546], [4404897.242, 4405465.48])"</div><div class="">    }</div><div class="">  ]</div><div class="">}</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jan 31, 2018 at 2:43 PM, Howard Butler <span dir="ltr" class=""><<a href="mailto:howard@hobu.co" target="_blank" class="">howard@hobu.co</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br class="">
<br class="">
On 1/31/18 1:37 PM, Dan Lipsa wrote:<br class="">
> Hi all,<br class="">
> I can enable streaming in a pipeline using<br class="">
><br class="">
> ./pdal pipeline --stream dsm.json<br class="">
><br class="">
> Can I do the same thing in python?<br class="">
> What is the option that I need to set?<br class="">
><br class="">
> pipeline = pdal.Pipeline(json)<br class="">
> pipeline.validate()  # check if our JSON and options were good<br class="">
> count = pipeline.execute()<br class="">
><br class="">
<br class="">
</span>Dan,<br class="">
<br class="">
No, that bit of Python API isn't done yet. There's a bit of a question<br class="">
of what we should do there too? Presumably the API would have the user<br class="">
set a chunk size and then return an iterator. The API to follow would be<br class="">
the PipelineKernel.cpp implementation, but apply it to the Python/Cython<br class="">
extension stuff.<br class="">
<br class="">
I'd be happy to merge a patch that did this.<br class="">
<span class="HOEnZb"><font color="#888888" class=""><br class="">
Howard<br class="">
<br class="">
</font></span><br class="">______________________________<wbr class="">_________________<br class="">
pdal mailing list<br class="">
<a href="mailto:pdal@lists.osgeo.org" class="">pdal@lists.osgeo.org</a><br class="">
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/<wbr class="">mailman/listinfo/pdal</a><br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></body></html>