[pdal] filters.assign

Andrew Bell andrew.bell.ia at gmail.com
Tue Aug 17 04:14:06 PDT 2021


You're mixing syntax for the older "assignment" option with that of the
newer "value" option.

Try this:

[

    {

        "type":"readers.las",

        "filename":"input.las"

    },

    {

        "type":"filters.assign",

        "assignment":"IntnstySqRt = Intensity /
256"

    },
    ...

On Tue, Aug 17, 2021 at 6:09 AM Peter Lim <peter.lim at gpslands.com> wrote:

> Hi,
>
>
>
> I’m trying to generate a GeoTiff image from a LAS file using the sq. root
> of Intensity dimension and the pipeline as follows:
>
>
>
> [
>
>     {
>
>         "type":"readers.las",
>
>         "filename":"input.las"
>
>     },
>
>     {
>
>          "type": "filters.ferry",
>
>          "dimensions":"Intensity=>IntnstySqRt"
>
>     },
>
>     {
>
>         "type":"filters.assign",
>
>         "assignment":"IntnstySqRt[:] = IntnstySqRt /
> 256"
>
>     },
>
>     {
>
>         "type":"writers.gdal",
>
>         "resolution": 0.05,
>
>         "data_type":"uint8",
>
>         "output_type":"mean",
>
>          "dimension":"IntnstySqRt",
>
>
>     "gdalopts":"COMPRESS=JPEG,PHOTOMETRIC=YCBCR,BLOCKXSIZE=4096,BLOCKYSIZE=4096,GDAL_CACHEMAX=8000,NUM_THREADS=ALL_CPUS,TILED=YES",
>
>
>         "bounds":"([19370,20527],[39571,40865])",
>
>         "filename":"output.tif"
>
>     }
>
> ]
>
>
>
> However, error occurred:
>
> PDAL: filters.assign: Invalid value for argument 'assignment'.
>
>
>
> Is it the correct use of filters.ferry and filters. assign…
>
>
>
> Please advise.
>
>
>
>
>
> Thank you.
>
>
>
> Best Regards,
>
>
>
> Peter Lim
>
> *GPS Lands (S) Pte Ltd*
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_1008237852334678820_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> 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/20210817/643a16af/attachment.html>


More information about the pdal mailing list