Hi Jon (and Dmitry),
Firstly, I hope that this post is helpful and adds to solutions rather than confusion.
My comments are two points: first is a reminder that cameras are calibrated using multiple images, and second that the XML addition of a single photo filename in the camera is a poor normalization of data....because camera positions can potentially shoot multiple photos.
Instead, I propose that camera XML headers simply receive their UUID or other unique 'project' identifier, then that camera identifier can be exported in the XML for the photos.....since any photo can only come from one and only one camera.
Illustrating this in XML , I suggest:
<camera>
<ID>AU345FK9FKEHCIRKS991</ID>
<calibration>
</calibration>
</camera>
and in the photos....
<photo>
<filename>IMG_0001.JPG</filename>
<camera_ID>AU345FK9FKEHCIRKS991</camera_ID>
<EXIF>
...
</EXIF>
</photo>
From this information you can derive which photos were used in the camera calibrations, and which EXIF parameters were compiled by which cameras, etc., all using the photos as the relationship to the camera(s) of interest.
It is also noteworthy to mention that this is how other 'competitor systems' export their camera-to-photo mappings. I am more a fan of proper data normalization rather than doing it just because it is already being done that way...but in this case it makes sense from both perspectives, in my opinion.
Again I hope this helps! What would also help is a better understanding of what EXIF tag parameters you are trying to lift from the photos and associate with the camera points.
Lastly, if by
any chance you are loading these points into ESRI's ArcGIS, then I already have a script which programmatically tags the camera observations with the photo names, EXIF tags, and the calibration details.
Regards,
Jason Schwartz, Principal Investigator
Follow-Me Systems, LLC
Las Vegas, NV USA
www.follow-me-systems.com