Forum

Author Topic: Cannot Export Cameras to Bundler format using Local Coordinate System  (Read 3670 times)

n@sk

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Hi all

According to the reference a Matrix or CoordinateSystem (I assume a Local one as well) should work:

exportCameras(path, format=’bundler’, projection[, rotation_order=’xyz’])

• projection (Matrix or CoordinateSystem) – Sets output projection

but I keep getting the following errors:

TypeError: argument 3 must be PhotoScan.CoordinateSystem, not PhotoScan.Matrix
TypeError: argument 3 must be PhotoScan.CoordinateSystem, not None

Exporting from the GUI or
setting an arbitrary Coord System and exporting with Python works fine

Your help is very welcome

thanks
« Last Edit: May 28, 2015, 06:52:54 PM by n@sk »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Hello n@sk,

We'll try to fix the issue with PhotoScan.Matrix() type argument.

At the moment as a workaround we can suggest to initialize export coordinate system as Local coordinates in the following way:
Code: [Select]
crs = PhotoScan.CoordinateSystem('LOCAL_CS["Local Coordinates",LOCAL_DATUM["Local Datum",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]')
Best regards,
Alexey Pasumansky,
Agisoft LLC

n@sk

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
that sounds great Alexey!

thank you very much for the workaround