[pdal] assign a constant class to las imported fra tiff

Andrew Bell andrew.bell.ia at gmail.com
Wed Oct 4 04:21:12 PDT 2017


On Wed, Oct 4, 2017 at 6:54 AM, Andrew Flatman <anfla at sdfe.dk> wrote:

> Hi,
>
> I am reading a DEM from a tiff file and writing it as las. My problem is
> that I cannot set the class. I have tried adding the dimension
> Classification in the filter.ferry part:
>
>
>
>     {
>
>         "type": "filters.ferry",
>
>         "dimensions": "band-1=Z, 2=Classification"
>
>     },
>
> Which gives the error: PDAL: filters.ferry: Can't ferry dimension '2'.
> Dimension doesn't exist.
>

The bands are named "band-1", "band-2", "band-3" and so on.
 "band-2=Classification" should get you what you want. The assignment below
should then work.

 I have also tried assigning the classification using the filter.assign:
>
>     {
>
>           "type":"filters.assign",
>
>           "assignment" : "Classification[:]=2"
>
>     },
>

>
> Which gives the error:  PDAL: filters.assign: Invalid dimension name in
> 'values' option: 'Classification'.
>

You can't assign to a dimension that doesn't exist.
-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20171004/c62fcf77/attachment.html>


More information about the pdal mailing list