Forum

Author Topic: Import camera GPS position  (Read 6045 times)

fabvin

  • Newbie
  • *
  • Posts: 22
    • View Profile
Import camera GPS position
« on: December 02, 2020, 07:59:25 PM »
Dear all
I wanted to know how to properly import GPS positioning of a set of images using a csv file with, in columns: label, East, North?
Thank you in advance for your answer.
Best regards
Fab

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15429
    • View Profile
Re: Import camera GPS position
« Reply #1 on: December 02, 2020, 08:08:35 PM »
Hello Fab,

You can use the following code:
Code: [Select]
crs = Metashape.CoordinateSystem("EPSG::31631") #use proper EPSG code for the system here
chunk.importReference(path, delimiter=",", columns="nxyz", crs = crs)
Note that all XYZ coordinates should be present in the file.

Please check the discussion in the following thread for the extended possibilities of CSV import:
https://www.agisoft.com/forum/index.php?topic=12790.0

Best regards,
Alexey Pasumansky,
Agisoft LLC