Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: MCSQRD on October 02, 2012, 07:53:15 PM

Title: loading ground control csv
Post by: MCSQRD on October 02, 2012, 07:53:15 PM
I am trying to load the attached csv with
GC = PhotoScan.GroundControl(chunk)
GC.load("CameraXYZ.csv","csv")
but no coordinates show up in the ground control panel
Is there an example csv and code some where?
Title: Re: loading ground control csv
Post by: Alexey Pasumansky on October 02, 2012, 09:44:47 PM
Hello MCSQRD,

Have you tried the following script line?

Code: [Select]
chunk.ground_control.load("D:/CameraXYZ.txt","csv")
Title: Re: loading ground control csv
Post by: MCSQRD on October 03, 2012, 01:13:12 AM
I was able to get it to work, my definition of a csv and the file I used are pretty far apart. I would call the file I used a "tab" delimited file. Attached is the file that is working with:
chunk.ground_control.load("C:/_Workspace/CameraXYZ.txt","csv")
I knew it was something simple.