<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 24, 2016 at 11:56 PM, Adam Steer <span dir="ltr"><<a href="mailto:Adam.Steer@anu.edu.au" target="_blank">Adam.Steer@anu.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi PDAL Ninjas<br>
<br>
I’m wondering how we can replicate LAStool’s multi-tile clipping fiunction, eg: lasclip -i folder/*.las -poly polygon.shp -o newfile.las<br>
<br>
I’ve got a pretty clunky pipeline that works, based on the github pipeline examples:<br>
<br>
{<br>
"pipeline": [<br>
{ "filename": "Merimbula2013-C3-AHD_7585912_<wbr>55_0002_0002.las",<br>
"tag": "A"<br>
},<br>
{ "filename": "Merimbula2013-C3-AHD_7585914_<wbr>55_0002_0002.las",<br>
"tag": "B"<br>
},<br>
{ "filename": "Merimbula2013-C3-AHD_7605914_<wbr>55_0002_0002.las",<br>
"tag": "C"<br>
},<br>
{<br>
"inputs": ["A", "B", "C"],<br>
"type": "filters.crop",<br>
"polygon": "POLYGON((759094.480855234 5913008.2715937095,758464.<wbr>6999094139 5912716.199270982,757743.<wbr>6463627518 5912898.7444$<br>
"outside": false<br>
},<br>
"./merimbulatown.las"<br>
]<br>
}<br>
<br>
<br>
…but would prefer to not have to list all my tiles. The obvious:<br></blockquote><div><br></div><div>Unfortunately, you can't wildcard inputs to a reader at this time. However, you also don't need the tags in your case. All files listed before filters get routed to the filter automatically:</div><div><br></div><div>{<br> "pipeline": [<br> "Merimbula2013-C3-AHD_7585912_<wbr>55_0002_0002.las",<br> "Merimbula2013-C3-AHD_7585914_<wbr>55_0002_0002.las",<br> "Merimbula2013-C3-AHD_7605914_<wbr>55_0002_0002.las",<br> {<br> "type": "filters.crop",<br> "polygon": "POLYGON((759094.480855234 5913008.2715937095,758464.<wbr>6999094139 5912716.199270982,757743.<wbr>6463627518 5912898.7444))<br> },<br> "./merimbulatown.las"<br> ]<br>}<br></div><div><br></div><div>should work. If you want the output from the three input files to be separate, you can specify the output file as:</div><div><br></div><div>"./merimbulatown#.las"</div><div><br></div><div>Which should yield merimbulatown1.las, merimbulatown2.las and merimbulatown3.las which correspond to the three input files.</div><div><br></div><div>-- <br></div></div><div class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div></div>