[pdal] translating coordinated

Howard Butler howard at hobu.co
Mon Sep 24 11:53:33 PDT 2018



On 9/24/18 1:24 PM, Matt Beckley wrote:
> However, when I try to do this with PDAL, it doesn't seem to work.  I've
> tried variants on a pipeline of:
>
> {
>             "type" : "writers.las",
>             "offset_x":"357200",
>             "offset_y":"4742000",
>             "offset_z":"2150",
>     "scale_x":"0.001",
>     "scale_y":"0.001",
>     "scale_z":"0.001"
> }
>
> But the coordinates are never properly translated.  I've tried playing with
> the scale, but nothing works.  There doesn't seem to be a way to add a
> fixed offset to the coordinates?
Are you using 'pdal translate' or 'pdal pipeline' here? 'pdal translate'
is going to ignore any reader and writer options in the pipeline and
take those from your command line.


The following pipeline works for me (the offset/scale on my new foo.las
file matches my options) by issuing 'pdal pipeline offset.json':

> {
>   "pipeline":[
>       "test/data/autzen/autzen.las",
>       {
>             "type" : "writers.las",
>             "offset_x":"357200",
>             "offset_y":"4742000",
>             "offset_z":"2150",
>     "scale_x":"0.1",
>     "scale_y":"0.1",
>     "scale_z":"0.1",
>     "filename":"foo.las"
> }
>   ]
> }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 528 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20180924/3f349188/attachment.sig>


More information about the pdal mailing list