Select to view content in your preferred language

Survey123 Watermark @[] Decimals

84
2
Monday
LukeSwanson17
New Contributor

Hello,

I was wondering if we have found a way to control the decimal places for using @[] in our image watermarks. 

Currently, I have a watermark with the following calculation:

concat(${test3_name},"\n","@[date:MM/dd/yyyy]"," | ","@[time:HH:mm AP t]","\n","Lat @[latitude]"," , ","Lon @[longitude]","\n","Altitude @[altitude]," | ","Compass @[compass]","&size=20")

Issue: Altitude is displaying/showing 14 decimal places. (38.1234567890xxxx)

Question: How can I modify this to show 1 decimal place? (38.1)

 

0 Kudos
2 Replies
ChristopherCounsell
MVP Regular Contributor

Here are the supported placeholders:

https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photo-watermarks/b...

@[longitude:ddm]

@[longitude:dms]

@[latitude]

@[longitude]

@[latitude longitude]

https://doc.arcgis.com/en/survey123/desktop/create-surveys/watermarks.htm#ESRI_SECTION1_4E32925B1D4B...

There's more formatting options directly within the watermark for dates.

If you want more granular control of the watermark, you can use a calculation question to generate the desired decimal output and then reference that in the watermark. Examples in the above blog.

 

0 Kudos
LukeSwanson17
New Contributor

Hey Christopher,

I appreciate the reply.

I have done other work arounds such as using a geopoint to populate the lat, lon, alt fields; then those fields are inputted into the watermark. Attaching a photo of this specific work around. 

LukeSwanson17_0-1719509102288.png

I have tried using the pulldata("@exif",${image},"GpsAltitude") function but my theory is that it pulls that exif data after creating a watermark on the photo. Result is the watermark is missing the information, but the altitude field still gets populated because of the pulldata calculation. It seems like it's just how the order of operations work in this situation?

0 Kudos