Forum

Cannot Export Cameras to Bundler format using Local Coordinate System

Started by n@sk, May 26, 2015, 06:22:36 PM

Previous topic - Next topic

n@sk

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

Alexey Pasumansky

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:
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

that sounds great Alexey!

thank you very much for the workaround