[pdal] filters.assign

Paul Harwood runette at gmail.com
Tue Aug 24 00:54:03 PDT 2021


The first question is which conda channel are you using? The correct
channel is "conda-forge" and this channel definitely has 2.3.0 as the
latest version for Windows 10 - see

https://anaconda.org/conda-forge/pdal

If you are not sure or are using another channel - remove pdal from your
conda environment and re-install with `conda -c conda-forge install pdal`.

If the channel is correct - then most likely you have something installed
in your environment that requires a version of one of the dependencies at a
lower version than is supported by version 2.3. The PDAL version 2.3
dependencies are :

curl >=7.77.0,<8.0a0, draco, geos >=3.9.1,<3.9.2.0a0, geotiff
>=1.6.0,<1.6.1.0a0, hdf5 >=1.10.6,<1.10.7.0a0, jsoncpp >=1.9.4,<1.9.5.0a0,
laszip, laz-perf, libgdal >=3.3.0,<3.4.0a0, libkml >=1.3.0,<1.4.0a0, libpq
>=13.3,<14.0a0, libxml2 >=2.9.12,<2.10.0a0, nitro, numpy, pkgconfig,
postgresql, sqlite >=3.35.5,<4.0a0, tiledb >=2.3.0,<2.4.0a0, vc
>=14.1,<15.0a0, vs2015_runtime >=14.16.27012, zlib >=1.2.11,<1.3.0a0, zstd
>=1.5.0,<1.6.0a0

the easiest way to check might be to create a new, clean environment, add
PDAL (you should get version 2.3) and then incrementally add the packages
you need until you get a version clash reported (or something forces a
downgrade of PDAL - you should see this in the messages from `conda
install`).

On Tue, 24 Aug 2021 at 03:40, Peter Lim <peter.lim at gpslands.com> wrote:

> 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. 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
>
>
>
>
> --
>
> Andrew Bell
> andrew.bell.ia at gmail.com
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20210824/b8f89755/attachment-0001.html>


More information about the pdal mailing list