[pdal] LAS to PCD Translate Error Uint16
Andrew Bell
andrew.bell.ia at gmail.com
Fri Aug 25 13:48:36 PDT 2017
You should be able to divide the values by 256 (right shift 8 bits) in your
python script.
There is a similar example here:
https://www.pdal.io/stages/filters.programmable.html
Hope that helps.
On Fri, Aug 25, 2017 at 4:09 PM, Paul Sung-Pyo Park <ppark31 at gmail.com>
wrote:
> Hello,
>
> I have been trying to convert a LAS file to PCD using PDAL and have had
> this error pop up:
> "RuntimeError: Unable to fetch data and convert as requested:
> Red:uint16_t(50490) -> unsigned char"
>
> I am very new to PDAL as well as programming in general. Would there be a
> simple line I can add to my JSON pipeline file to filter uint16 to uint8?
> My current thought is to find a way to divide the input LAS by 65,535 then
> multiply by 255. However, not sure how I should implement this with my
> shallow knowledge. I am currently using Python with JSON inside the script
> as the pipeline.
> Thank You.
>
> --
> *Paul Park*
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
--
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20170825/9465f035/attachment.html>
More information about the pdal
mailing list