[pdal] translating coordinated

Andrew Bell andrew.bell.ia at gmail.com
Mon Sep 24 11:43:23 PDT 2018


Hi Matt,

Perhaps I didn't understand what you were trying to do.  If you're trying
to translate coordinates, you can use

https://pdal.io/stages/filters.transformation.html

Here's a wiki reference that might also help:
https://en.wikipedia.org/wiki/Translation_(geometry)



On Mon, Sep 24, 2018 at 2:31 PM Andrew Bell <andrew.bell.ia at gmail.com>
wrote:

> On Mon, Sep 24, 2018 at 2:25 PM Matt Beckley <beckley at unavco.org> wrote:
>
>> Hello,
>>
>> I have a las file that I am trying to work with using PDAL.  I am able to
>> georeference the file using lastools with the "reoffset" and
>> "translate_xyz" parameters:
>>
>> las2las.exe -i input.laz -reoffset 357200 4742000 2150 -translate_xyz
>> 357200 4742000 2150 -o output.laz
>>
>> 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?
>>
>> The file is in UTM 33N coordinates, so a valid coordinate would be
>> 357200,4742000 - for example.   I tried a scale of 1, but that also didn't
>> work.
>>
>
> Hi Matt,
>
> You need to read the PDAL documentation.  PDAL isn't lastools.
>
> You'll need to put a reprojection filter in between the reader and the LAS
> writer order to facilitate reprojection.  See:
>
> https://pdal.io/stages/filters.reprojection.html
>
> --
> Andrew Bell
> andrew.bell.ia at gmail.com
>


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


More information about the pdal mailing list