[pdal] read scalar field as intensity in reader.ply

Schneider, Dominik dominik.schneider at wsu.edu
Fri Oct 5 11:19:25 PDT 2018


filters.ferry worked great. Thanks!

________________________________
From: Andrew Bell <andrew.bell.ia at gmail.com>
Sent: Friday, October 5, 2018 9:52:42 AM
To: Schneider, Dominik
Cc: pdal at lists.osgeo.org
Subject: Re: [pdal] read scalar field as intensity in reader.ply

You can't do this directly with a command-line option, but there are alternatives:

1) The header of a PLY file is ASCII text.  You can simply change the name of the field that's called "gray" (or whatever) to "Intensity".
2) You can add a ferry filter after the ply reader in your pipeline to copy the data from the gray field to the Intensity field.  If you're using "pdal translate", you can add the ferry filter to the process by using `-f ferry --filters.ferry.dimensions "gray=>Intensity"


On Fri, Oct 5, 2018 at 12:41 PM Schneider, Dominik <dominik.schneider at wsu.edu<mailto:dominik.schneider at wsu.edu>> wrote:

is it possible to read a custom scalar field into the intensity dimension?

in my case, the output from our scanner includes a "gray" scalar value (binary .ply format) that is actually intensity. i would like to map it into the intensity dimension for processing.

see this discussion surrounding lastools :

https://groups.google.com/d/msg/lastools/zrpVZXtzhug/7-ZZKqIHAgAJ<https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msg_lastools_zrpVZXtzhug_7-2DZZKqIHAgAJ&d=DwMFaQ&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=x8OkCQo2q96FeTtWJN-VxzQodn4Pjw-KVb8uLtj6ahw&s=l0lygey-2SqlhEIl6GL6-VStw-2Ckoa2bDfgh-h-vlQ&e=>


Thanks!
<https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msg_lastools_zrpVZXtzhug_7-2DZZKqIHAgAJ&d=DwMFaQ&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=x8OkCQo2q96FeTtWJN-VxzQodn4Pjw-KVb8uLtj6ahw&s=l0lygey-2SqlhEIl6GL6-VStw-2Ckoa2bDfgh-h-vlQ&e=>

Google Groups<https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msg_lastools_zrpVZXtzhug_7-2DZZKqIHAgAJ&d=DwMFaQ&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=x8OkCQo2q96FeTtWJN-VxzQodn4Pjw-KVb8uLtj6ahw&s=l0lygey-2SqlhEIl6GL6-VStw-2Ckoa2bDfgh-h-vlQ&e=>
groups.google.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__groups.google.com&d=DwMFaQ&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=x8OkCQo2q96FeTtWJN-VxzQodn4Pjw-KVb8uLtj6ahw&s=kzr6sxCiWHrAHqBbz033O5ZNjc2jxzQOhS36n4CLhz0&e=>
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.



_______________________________________________
pdal mailing list
pdal at lists.osgeo.org<mailto:pdal at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/pdal<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_pdal&d=DwMFaQ&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=x8OkCQo2q96FeTtWJN-VxzQodn4Pjw-KVb8uLtj6ahw&s=Pe2w6RYOsGDrOWkMA7aRqHgCBelnwNHuyFqw5vdW-qk&e=>


--
Andrew Bell
andrew.bell.ia at gmail.com<mailto:andrew.bell.ia at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20181005/cd5a61ca/attachment-0001.html>


More information about the pdal mailing list