[pdal] Possible bug related to forked pipelines
Andrew Bell
andrew.bell.ia at gmail.com
Mon Nov 14 06:40:18 PST 2016
The particular report is a bug in parsing the pipeline. However, handling
a pipeline that forks is tricky. I think we take a hands-off approach,
which means that unless you're careful, you may not get the behavior you
expect. I'll fix the bug, test and report back.
On Mon, Nov 14, 2016 at 6:33 AM, Kristian Evers <kreve at sdfe.dk> wrote:
> Hi.
>
>
>
> I have a few use cases where it would be beneficial to create a forked
> pipeline, i.e. one that generates
>
> several outputs from the same input-file, but I am having some trouble
> achieving that.
>
> If I understand the documentation correctly it should be possible by using
> the tags and inputs keywords
>
> in a pipeline. Something like this:
>
>
>
> {
>
> "pipeline":[
>
> {
>
> "type": "readers.las",
>
> "filename": "input.las",
>
> "tag": "A"
>
> },
>
> {
>
> "inputs": "A",
>
> "type": "writers.gdal",
>
> "resolution": 0.4,
>
> "radius": 0.7,
>
> "filename": "Z.tif",
>
> "dimension": "Z",
>
> "output_type": "mean
>
> },
>
> {
>
> "inputs": "A",
>
> "type": "writers.gdal",
>
> "resolution": 0.4,
>
> "radius": 0.7,
>
> "filename": "intensity.tif",
>
> "dimension": "Intensity",
>
> "output_type": "mean"
>
> ]
>
> }
>
>
>
> That is, use the new gdal writer (which is awesome, btw) to grid two or
> more dimensions of a las-file.
>
> When I run this particular pipeline I get the following error:
>
>
>
> “PDAL: writers.gdal: specified dimension 'Intensity' does not exist.”
>
>
>
> which suggests that the last writer (intensity.tif) is trying to grid a
> dimension from the first writer
>
> (Z.tif) instead of input.las. This is a bit confusing since I specifically
> instruct PDAL to read
>
> from tag A defined in the first stage of the pipeline. Is this a bug or
> just me trying to do something
>
> I was never meant to do?
>
> I am working on a Windows 7 computer and PDAL was compiled with VS2015
> from a fairly
>
> new revision (2f57c0cf1703af51498f9dae71c9a70128c4c93a).
>
>
>
>
>
> Regards,
>
> Kristian
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://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/20161114/83f16659/attachment-0001.html>
More information about the pdal
mailing list