[pdal] Assign classification
Silvia Franceschi
silvia.franceschi at gmail.com
Tue Apr 30 07:58:52 PDT 2019
Thank you all,
sorry Andrew, it is not your fault, it is me, that do not know PDAL very
well and therefore I was missing this step.
As suggested by James, it would be enough to add the note to use
filters.ferry.
Unfortunately, or lucky, PDAL have a lot of commands but it is not sto easy
to go through all of them to understand what they do and if there could be
something else usable for your personal case...
The mailing list is in any case very responsive and helpful.
PS: I saw that there are not so many (2-3) proposals for presentations at
FOSS4G in Bucharest, did someone proposed also a workshop? it would be
interesting to know.
Thanks again for all!
Silvia
On Tue, Apr 30, 2019 at 4:14 PM James Klassen <klassen.js at gmail.com> wrote:
> 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
>>
>
--
ing. Silvia Franceschi
Via Roma, 64
38030 Castello di Fiemme (TN)
tel: 0039 -3384501332
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20190430/ae18fed2/attachment-0001.html>
More information about the pdal
mailing list