[pdal] Generic read/write based on file suffix?

Andrew Bell andrew.bell.ia at gmail.com
Tue Oct 13 05:39:28 PDT 2020


On Tue, Oct 13, 2020 at 8:23 AM Peder Axensten <Peder.Axensten at slu.se>
wrote:

> Hi!
>
> Is there a way to write pipes without specifying the reader/writer?
> That is, can I write mypipe.json in such a way so that something like the
> following would work?
> pdal pipeline mypipe.json —input=in/file.laz --output=out/file.laz
> The idea is that the suffix .laz of in/file.laz would determine the reader
> to be readers.las. And similar with the output. That way
> pdal pipeline mypipe.json —input=in/file.pcd --output=out/file.text
> would work without modifying mypipe.json.
>

Sure. Just use `pdal translate` with the `--json` option.

-- Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20201013/b5df33d8/attachment.html>


More information about the pdal mailing list