Forum

Author Topic: Exported point clouds have coordinates moved closed to zero  (Read 1626 times)

ivan-zd

  • Newbie
  • *
  • Posts: 9
    • View Profile
Exported point clouds have coordinates moved closed to zero
« on: October 19, 2021, 05:05:19 PM »
Hi,

I'm using Metashape Python API (v1.6) and I noticed that when exporting point clouds as LAZ the output file has coordinates in local coordinate system instead of the one defined for the chunk. Isn't it that by default, if crs is not explicitly defined it should export the points to chunk's crs?
For the other exports (DEM, Orthophoto, etc) all works fine.

I do the point cloud export like below

Code: [Select]
chunk.exportPoints(output_fpath, format=PointsFormatLAZ)


Thanks in advance.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Re: Exported point clouds have coordinates moved closed to zero
« Reply #1 on: October 27, 2021, 05:54:06 PM »
Hello ivan-zd,

Does it help, if you use crs argument in the export line:
Code: [Select]
chunk.exportPoints(output_fpath, format=PointsFormatLAZ, crs = chunk.crs)
The default coordinate system for ExportPoints and ExportModel tasks is "Local Coordinates".
Best regards,
Alexey Pasumansky,
Agisoft LLC

ivan-zd

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Exported point clouds have coordinates moved closed to zero
« Reply #2 on: October 28, 2021, 10:48:04 AM »
Hi Alexey,

Yes it works when explicitly setting crs argument, I'm not sure how i missed that option before. Anyway, it's good now, thanks.

Best regards,
Ivan