[pdal] Assign classification

James Klassen klassen.js at gmail.com
Tue Apr 30 07:14:20 PDT 2019


It took me a little bit of digging when I first tried something similar to
understand the schema was explicit in pdal (unlike in json) and that
filters.ferry was used to change it.  Now that I know, it isn't a problem,
and I do like the typo safety aspect of the current behavior.

Maybe the solution is as simple as adding a note to the filters.assign docs
that says "If you intend to assign to a new dimension, that dimension needs
to be created first with filters.ferry."


On Tue, Apr 30, 2019, 07:13 Andrew Bell <andrew.bell.ia at gmail.com> wrote:

> Silvia,
>
> There's been discussion about changing the assignment filter to
> automatically create dimensions.  I believe that my reasoning when I
> decided against that was that it might create hard-to-find errors due to
> misspellings.  In retrospect, it may have been the wrong decision.
>
> On Tue, Apr 30, 2019 at 5:23 AM Silvia Franceschi <
> silvia.franceschi at gmail.com> wrote:
>
>> Thanks a lot Luigi!
>> I added this to the pipeline:
>> {
>>           "type": "filters.ferry",
>>           "dimensions": "=>Classification"
>>    },
>> and now it seems to proceed!
>>
>> Thanks again for the big help!
>>
>> Silvia
>>
>>
>>
>> On Tue, Apr 30, 2019 at 11:10 AM Luigi Pirelli <luipir at gmail.com> wrote:
>>
>>> use filters.ferry for that
>>>
>>> https://pdal.io/stages/filters.ferry.html
>>>
>>> Luigi Pirelli
>>>
>>>
>>> **************************************************************************************************
>>> * LinkedIn: https://www.linkedin.com/in/luigipirelli
>>> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
>>> * GitHub: https://github.com/luipir
>>> * Mastering QGIS 2nd Edition:
>>> *
>>> https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
>>> * Hire me: http://goo.gl/BYRQKg
>>>
>>> **************************************************************************************************
>>>
>>>
>>> On Tue, 30 Apr 2019 at 10:54, Silvia Franceschi <
>>> silvia.franceschi at gmail.com> wrote:
>>>
>>>> Thanks Luigi,
>>>> you are perfectly right... this is a print of the details of first
>>>> point:
>>>> "point":
>>>>     {
>>>>       "Blue": 155,
>>>>       "Green": 153,
>>>>       "Intensity": 2497,
>>>>       "PointId": 0,
>>>>       "Red": 159,
>>>>       "X": 63.45360184,
>>>>       "Y": 0.0307,
>>>>       "Z": 0
>>>>     }
>>>>
>>>> So now I should create the field for the classification, any idea?
>>>>
>>>> Thanks again!
>>>>
>>>> Silvia
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Apr 30, 2019 at 10:44 AM Luigi Pirelli <luipir at gmail.com>
>>>> wrote:
>>>>
>>>>> can you check if Classification dimension is present? strange but
>>>>> seems it doesn't
>>>>>
>>>>> Luigi Pirelli
>>>>>
>>>>>
>>>>> **************************************************************************************************
>>>>> * LinkedIn: https://www.linkedin.com/in/luigipirelli
>>>>> * Stackexchange:
>>>>> http://gis.stackexchange.com/users/19667/luigi-pirelli
>>>>> * GitHub: https://github.com/luipir
>>>>> * Mastering QGIS 2nd Edition:
>>>>> *
>>>>> https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
>>>>> * Hire me: http://goo.gl/BYRQKg
>>>>>
>>>>> **************************************************************************************************
>>>>>
>>>>>
>>>>> On Tue, 30 Apr 2019 at 09:40, Silvia Franceschi <
>>>>> silvia.franceschi at gmail.com> wrote:
>>>>>
>>>>>> Dear all,
>>>>>> I am trying to extract the DTM from a point cloud of a terrestrial
>>>>>> LiDAR. Points of the survey are all of one single return and do no have a
>>>>>> classification.
>>>>>> To go on with the elaborations I guess that I have to assign a
>>>>>> classification of the points otherwise the tools (filter.smrf) do not work,
>>>>>> is this true?
>>>>>> I tried to use the command filters.assign with the following
>>>>>> statement in a pipeline (json file).
>>>>>>
>>>>>> {
>>>>>>           "type":"filters.assign",
>>>>>>     "assignment":"Classification[:]=0"
>>>>>>         },
>>>>>>
>>>>>> But  got this error:
>>>>>> PDAL: filters.assign: Invalid dimension name in 'assignment' option:
>>>>>> 'Classification'.
>>>>>>
>>>>>> Do some of you understand which is the problem?
>>>>>>
>>>>>> Thanks in advance for your help.
>>>>>>
>>>>>> Silvia
>>>>>>
>>>>>>
>>>>>> --
>>>>>> ing. Silvia Franceschi
>>>>>> Via Roma, 64
>>>>>> 38030 Castello di Fiemme (TN)
>>>>>>
>>>>>> tel: 0039 -3384501332
>>>>>> _______________________________________________
>>>>>> pdal mailing list
>>>>>> pdal at lists.osgeo.org
>>>>>> https://lists.osgeo.org/mailman/listinfo/pdal
>>>>>
>>>>>
>>>>
>>>> --
>>>> ing. Silvia Franceschi
>>>> Via Roma, 64
>>>> 38030 Castello di Fiemme (TN)
>>>>
>>>> tel: 0039 -3384501332
>>>> _______________________________________________
>>>> pdal mailing list
>>>> pdal at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/pdal
>>>
>>>
>>
>> --
>> ing. Silvia Franceschi
>> Via Roma, 64
>> 38030 Castello di Fiemme (TN)
>>
>> tel: 0039 -3384501332
>> _______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/pdal
>
>
>
> --
> 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/20190430/5cfabd2b/attachment.html>


More information about the pdal mailing list