Select to view content in your preferred language

Matching ArcGIS Online/ArcGIS Server Feature Attachments w/ Comment fields

3115
0
04-03-2015 09:08 AM
ChrisSaylor
New Contributor II

Good morning. 

We have a data collection routine where field users use the iPad Collector app to record attributes and take photos of drainage basins.  Each feature has multiple photo attachments, each with a separate comment in a separate field (Photo1Comment, Photo2Comment, Photo3Comment, etc.).  I've written an app that queries the REST endpoint to download the feature information and photos and creates PDFs with the output by adding a caption to each photo.  Our hope was that the order in which photos were taken would be consistent with ascending attachment ids.  This seemed to be consistent in initial testing (an admittedly shaky workflow considering there is a large problem if the user deletes and replaces a photo or if a user uploads multiple photos at once). However, the order in which the photos are taken don't seem to match up in ascending order with the attachment ids for the feature (Photo4.jpg has attachment id 6002 while Photo1.jpg has attachment id 5201, etc.).  Does anyone know of a foolproof way to either add comments to any feature attachments via Collector (I can imagine how to do it programmatically by adding a new field to the AttachRel table, but we're stuck with user the out-of-the-box Collector app), or to match comments fields to an attribute?

Thanks,

Chris

this doesn't appear to always be trueagol.png

0 Kudos
0 Replies