[pdal] Question on filters.assign
Andrew Bell
andrew.bell.ia at gmail.com
Thu Jan 4 17:44:24 PST 2024
On Thu, Jan 4, 2024 at 8:29 PM lefsky--- via pdal <pdal at lists.osgeo.org>
wrote:
{ "pipeline":[
> {"filename":"tile_66_136_sub_01.laz"},
> { "type":"filters.hag_dem","raster":"tile_66_136_dtm.tif"},
> { "type": "filters.assign","value": ["PassiveZ=Z",
> "Z=((PassiveZ-8153)/20)+HeightAboveGround"]},
> { "type":"writers.las",
> "filename":"tile_66_136_sub_01_hagscale.laz",
> "compression":"laszip",
> "extra_dims":"all"}
> ]}
>
>
You didn't say the version you're using but I'm assuming it's not the
current master branch.
The ability to create a dimension with the assign filter was just added.
Until that hits a release, you have to use filters.ferry to create the
dimension. (I hope that) the lack of error display for this case has also
been recently fixed.
Try:
{
"type": "filters.ferry",
"dimensions: "Z => PassiveZ"
}
before your assign filter.
--
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20240104/196d572f/attachment.htm>
More information about the pdal
mailing list