[pdal] execute a pipeline from python
Dan Lipsa
dan.lipsa at kitware.com
Wed Jan 31 11:54:19 PST 2018
Hi Howard,
Thanks for your answer.
I was thinking more along the lines of what the command line tool does:
just set on option "stream" to the pipeline.
Is this choosing a default chunk (buffer) size?
For instance the following pipeline takes several point cloud "bricks"
and generates the dsm for the whole surface covered.
{
"pipeline": [
"a.bpf",
"b.bpf",
{
"resolution": 0.25,
"filename":"test.tif",
"output_type": "max",
"window_size": "20",
"bounds": "([740698.8745, 741144.3546], [4404897.242, 4405465.48])"
}
]
}
On Wed, Jan 31, 2018 at 2:43 PM, Howard Butler <howard at hobu.co> wrote:
>
>
> 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
>
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20180131/bad1b357/attachment.html>
More information about the pdal
mailing list