pjdohertygis / SARCOP

This is a GitHub page for recording and resolving issues related to SARCOP.
https://nsargc.napsgfoundation.org/
GNU General Public License v3.0
10 stars 0 forks source link

Enhancement: Adding Date/Time & Coordinates as Water Marks on the Photos #27

Closed eshreveazdema closed 4 years ago

eshreveazdema commented 5 years ago

I am thinking it would be beneficial to add Date/Time, as well as Coordinates Watermarks to the Photos within Survey123.

pjdohertygis commented 4 years ago

See this post for documentation https://community.esri.com/groups/survey123/blog/2019/08/08/survey123-tricks-of-the-trade-photo-watermarks

afackler commented 4 years ago

I managed to get the watermarks to display the data correctly but I cannot manipulate the text in any way. I would like to increase the size and add a halo around the text to help it stand out a bit, but I have been having troubles with doing this. I had to add a new field for the watermark to take the geopoint data instead of the receiver data,. Below is a cut out of my progress. Any ideas in why I can't add a halo or text outline @tedrick?

Annotation 2019-12-05 163300

tedrick commented 4 years ago

@adf102 - append the desired properties to the watermark with & (similar to URL parameters). As an example: bottomLeftWatermark="Bottom Left @[datetime:ddd MMMM dd yyyy h:mm:ss]&size=20&color=grey&outlineColor=white"

afackler commented 4 years ago

Thanks @tedrick , I got the date part working with that string working. Do you happen to know if S123 allows custom properties on user input watermarks? I'm trying to get the Lat/Long of the geopoint to show up as a watermark as well and I got it that it will at least display but every combination I tried with the other properties were disregarded and when I try to add the quotes (like the in the date/time) nothing shows up. This is my string:

topRightWatermark=${latlong}&size=20&color=grey&outlineColor=white

tedrick commented 4 years ago

@adf102 - it would be best to construct the string in a calculate question and then use that in the watermark. See the 'Adding previously entered data from your form' section of https://community.esri.com/groups/survey123/blog/2019/08/08/survey123-tricks-of-the-trade-photo-watermarks

afackler commented 4 years ago

Alright I managed to get the watermarks the way that I wanted them showing date and time and pulling data from the geopoint. Here is the result: image

Here's how:

  1. Open Survey 123 Connect and open your survey, then open the XLSX editor
  2. Create a new hidden row and call it watermark
  3. Go to the calculation column of your new row and type in the following: concat("Lat: ", ${latitude}, "\n ", "Long: ", ${longitude}, "&size=20&color=grey&outlineColor=white")
  4. Go to your photo attachments and find the ESRI Parameters column
  5. Type in the following: bottomLeftWatermark="@[datetime:ddd MMMM dd yyyy h:mm:ss]&size=20&color=grey&outlineColor=white" topRightWatermark=${watermark}
  6. Copy that string into the other photo attachments as well
jdokemaps commented 4 years ago

I included watermarks in the template. We wanted to use USNG instead of Lat Long (as noted above), so this is the calculation that I used in the esri parameters field for each of the image fields: bottomLeftWatermark="@[datetime:ddd MMMM dd yyyy h:mm:ss]&size=20&color=grey&outlineColor=white" topRightWatermark="@[usng]&size=20&color=grey&outlineColor=white"