[pdal] Clipping from multiple LAS tiles
Andrew Bell
andrew.bell.ia at gmail.com
Tue Oct 25 06:47:05 PDT 2016
On Mon, Oct 24, 2016 at 11:56 PM, Adam Steer <Adam.Steer at anu.edu.au> wrote:
> Hi PDAL Ninjas
>
> I’m wondering how we can replicate LAStool’s multi-tile clipping
> fiunction, eg: lasclip -i folder/*.las -poly polygon.shp -o newfile.las
>
> I’ve got a pretty clunky pipeline that works, based on the github pipeline
> examples:
>
> {
> "pipeline": [
> { "filename": "Merimbula2013-C3-AHD_7585912_55_0002_0002.las",
> "tag": "A"
> },
> { "filename": "Merimbula2013-C3-AHD_7585914_55_0002_0002.las",
> "tag": "B"
> },
> { "filename": "Merimbula2013-C3-AHD_7605914_55_0002_0002.las",
> "tag": "C"
> },
> {
> "inputs": ["A", "B", "C"],
> "type": "filters.crop",
> "polygon": "POLYGON((759094.480855234
> 5913008.2715937095,758464.6999094139 5912716.199270982,757743.6463627518
> 5912898.7444$
> "outside": false
> },
> "./merimbulatown.las"
> ]
> }
>
>
> …but would prefer to not have to list all my tiles. The obvious:
>
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:
{
"pipeline": [
"Merimbula2013-C3-AHD_7585912_55_0002_0002.las",
"Merimbula2013-C3-AHD_7585914_55_0002_0002.las",
"Merimbula2013-C3-AHD_7605914_55_0002_0002.las",
{
"type": "filters.crop",
"polygon": "POLYGON((759094.480855234
5913008.2715937095,758464.6999094139
5912716.199270982,757743.6463627518 5912898.7444))
},
"./merimbulatown.las"
]
}
should work. If you want the output from the three input files to be
separate, you can specify the output file as:
"./merimbulatown#.las"
Which should yield merimbulatown1.las, merimbulatown2.las and
merimbulatown3.las which correspond to the three input files.
--
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20161025/0519f592/attachment.html>
More information about the pdal
mailing list