[pdal] filters.assign
Peter Lim
peter.lim at gpslands.com
Mon Aug 23 19:40:34 PDT 2021
Hi Andrew,
May I know how to update/upgrade PDAL 2.3 or latest in Windows 10.
I had tried to update/upgrade PDAL using:
conda update pdal
conda upgrade pdal
But it still gives me the same version 2.1.0 (git-version: Release) in Windows 10.
Please advise.
Thank you.
Best Regards,
Peter Lim
GPS Lands (S) Pte Ltd
From: Peter Lim [mailto:peter.lim at gpslands.com]
Sent: Wednesday, 18 August 2021 10:17 am
To: 'Andrew Bell'
Cc: 'pdal'
Subject: RE: [pdal] filters.assign
Hi Andrew,
May I know from which version can PDAl do math in an assignment.
I had tried to update/upgrade PDAL using:
conda update pdal
conda upgrade pdal
But it still gives me the same version.
Please advise.
Thank you.
Best Regards,
Peter Lim
GPS Lands (S) Pte Ltd
From: Andrew Bell [mailto:andrew.bell.ia at gmail.com]
Sent: Wednesday, 18 August 2021 9:57 am
To: Peter Lim
Cc: pdal
Subject: Re: [pdal] filters.assign
Your version is too old. You can't do math in an assignment filter in version 2.1. Sorry.
On Tue, Aug 17, 2021 at 9:45 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",
"value":"IntnstySqRt = Intensity / 256"
},
...
But it gives this error:
PDAL: filters.assign: Unexpected argument 'value'.
I’m using PDAL 2.1.0 (git-version: Release) in Windows 10.
Pls. advise.
Thank you.
Best Regards,
Peter Lim
From: Andrew Bell [mailto:andrew.bell.ia at gmail.com]
Sent: Wednesday, 18 August 2021 9:40 am
To: Peter Lim
Cc: pdal
Subject: Re: [pdal] filters.assign
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. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> www.avast.com
_______________________________________________
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
--
Andrew Bell
andrew.bell.ia at gmail.com
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20210824/5e603a87/attachment-0001.html>
More information about the pdal
mailing list