-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple saves in pipeline #2311
Comments
PDAL has never fully executed pipelines with multiple endpoints. Take a look at #1537 and #1386. That said, you can have a pipeline with multiple writers, they just can't be separate endpoints. For example, you can have something like:
You can also chain writers to get two types of output:
What you can't do is split the pipeline and get proper execution of all branches. As you found, this doesn't work:
I've opened #2313 to address this situation. |
@abellgithub I have a pipeline that's very similar to the example you gave:
Is there a way to specify filenames to both writers as options to the pipeline? Something like:
FWIW I've tried exactly this but it gives me an |
@jessenestler Please see "option substitution" here: http://pdal.io/apps/pipeline.html#substitutions |
Perfect, exactly what I needed, thank you. |
https://pdal.io/en/latest/apps/pipeline.html#substitutions Updated link for those searching for this - I had trouble finding it as I was looking in the other "Pipeline" page :P |
grumble I see we need to fix the link redirects. I opened a ticket at #4491 to deal with it. |
If I take the simple split (via tags) and merge (via inputs) flow below, with 3 QC outputs, I only get the last writer to output
Please can PDAL be updated to include multiple saves
{
"pipeline":[
{
"type":"readers.las",
"filename":"filename.las",
"tag":"E000_Readers_End"
},
{
"inputs":["E000_Readers_End"],
"type":"filters.range",
"limits":"Z![130:140]",
"tag":"S010_ClassifyZ_01of02"
},
{
"inputs":["S010_ClassifyZ_01of02"],
"type":"writers.las",
"filename":"Filename_QC_01of02.las"
}
{
"inputs":["E000_Readers_End"],
"type":"filters.range",
"limits":"Z[130:140]"
},
{
"type":"filters.assign",
"assignment":"Classification[:]=3",
"tag":"S010_ClassifyZ_02of02"
},
{
"inputs":["S010_ClassifyZ_02of02"],
"type":"writers.las",
"filename":"Filename_QC_02of02.las"
}
{
"type":"filters.merge",
"tag":"E010",
"inputs":["S010_ClassifyZ_01of02","S010_ClassifyZ_02of02"]
},
{
"inputs":["E010"],
"type":"writers.las",
"filename":"Filename_Merge.las"
}
]
}
The text was updated successfully, but these errors were encountered: