[pdal] filters.assign
Andrew Bell
andrew.bell.ia at gmail.com
Tue Aug 17 18:40:04 PDT 2021
Sorry, I had a typo. It should have been "value" instead of "assignment":
[
{
"type":"readers.las",
"filename":"input.las"
},
{
"type":"filters.assign",
"value":"IntnstySqRt = Intensity / 256"
},
...
On Tue, Aug 17, 2021 at 9:35 PM Peter Lim <peter.lim at gpslands.com> wrote:
> Hi Andrew,
>
>
>
> I’ve tried what you have suggested:
>
> [
>
> {
>
> "type":"readers.las",
>
> "filename":"input.las"
>
> },
>
> {
>
> "type":"filters.assign",
>
> "assignment":"IntnstySqRt = Intensity / 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"
>
> }
>
> ]
>
> But is giving same error:
> PDAL: filters.assign: Invalid value for argument 'assignment'.
>
> Please advise.
>
>
>
> Thank you.
>
>
>
> Best Regards,
>
>
>
> Peter Lim
>
> *GPS Lands (S) Pte Ltd*
>
>
>
> *From:* Andrew Bell [mailto:andrew.bell.ia at gmail.com]
> *Sent:* Tuesday, 17 August 2021 7:14 pm
> *To:* Peter Lim
> *Cc:* pdal
> *Subject:* Re: [pdal] filters.assign
>
>
>
> 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>
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
>
>
>
> --
>
> 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/20210817/3cd5677a/attachment.html>
More information about the pdal
mailing list