1
Python and Java API / Re: Exporting Chunks as Georeferenced Orthophotos
« on: October 21, 2014, 04:51:07 PM »
Hi,
I tried this solution too, but I always get the following error:
crd = chunk.ground_control.locations[chunk.cameras[0]].coord
TypeError: invalid key
If I output the variables everything seems to be ok.
<PhotoScan.GroundControlLocations object at 0x7ff9a416e1f0>
Any obviously mistake? Or is there a special precondition for accessing the ground_control.locations?
Thanks in advance
I tried this solution too, but I always get the following error:
crd = chunk.ground_control.locations[chunk.cameras[0]].coord
TypeError: invalid key
If I output the variables everything seems to be ok.
Code: [Select]
print(chunk.cameras[0])
print(chunk.ground_control.locations)
crd = chunk.ground_control.locations[chunk.cameras[0]].coord
[...]
<Camera 'test0001.JPG'><PhotoScan.GroundControlLocations object at 0x7ff9a416e1f0>
Any obviously mistake? Or is there a special precondition for accessing the ground_control.locations?
Thanks in advance