Forum

Author Topic: Normals in laz export  (Read 3395 times)

GGR

  • Newbie
  • *
  • Posts: 30
    • View Profile
Normals in laz export
« on: July 18, 2023, 04:31:19 PM »
Hello there,

I'm pretty interested in exploiting normals calculted in AM for future analysis, such as ground segmentation, with PDAL.

As far as I know, laz spec are not designed to embed normals data. But it is possible to export those from AM point cloud interface.

Because I can't find where and how are they stored, does anyone can help me on this ?

Cheers
Best regards
Gabriel

jochemla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Normals in laz export
« Reply #1 on: August 31, 2023, 10:56:35 AM »
Hi there,
Normals are stored by Agisoft Metashape within LAS files as extra dimensions or extra bytes (you can use Lastools\lasinfo to see these fields), with field names being
Code: [Select]
"normal x", "normal y", "normal z" with spaces without quotes
The convention (see this thread) for storing normals within LAS as established by ASPRS is instead to use the
Code: [Select]
NormalX, NormalY, NormalZ
PDAL understands NormalX, nx or normal_x, but not that used by current Metashape exported las, "normal "x" with a space.

It would be great if Metashape could resolve that and use the official LAS normals naming convention instead on export - NormalX. Maybe this could be moved as a bugfix request.

Hope this helps.
Jonathan

GGR

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Normals in laz export
« Reply #2 on: September 06, 2023, 05:14:15 PM »
Thank you Jochemla for this answer!

Indeed, a simple space can have a lot of impact! A colleague had put me on this path at the beginning of the week.

I totally agree with your proposal for bug reports. I'll post one that will point to this thread.
Best regards
Gabriel

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15163
    • View Profile
Re: Normals in laz export
« Reply #3 on: September 08, 2023, 11:44:43 AM »
Hello all,

In Metashape 2.0.3 we will add support for the normals for imported point clouds from NormalX, etc. tags.

But changes for the export format are not planned, as we expect PDAL to support Metashape-exported results:
https://github.com/ASPRSorg/LAS/issues/37#issuecomment-1710074402
Best regards,
Alexey Pasumansky,
Agisoft LLC