Whether you are a new user or a power user of Survey123 for ArcGIS, you know it is an extremely useful and powerful tool for collecting data in a form-based environment. In typical workflows, Survey123 for ArcGIS is used to store a spatial component of your data. In this post, I'll provide a brief introduction for using calculations in Survey123 for ArcGIS to convert decimal degrees (DD) to degrees-minutes-seconds (DMS) and extend the application to better fit all survey requirements.
When we create our surveys in Survey123 Connect, the desktop application, we have the option to choose the display format of the coordinate. We can do this for both the preview map and the detailed map. However, this is solely a display functionality because the data is saved to ArcGIS Online. The default coordinate system for services published by Survey123 is WGS 1984 Web Mercator, meaning all data is saved in DD regardless of how it appears in our map viewer. While DD may look nice and evenly spaced online, we in the GIS world know that this doesn’t always meet every need.
There is no way to change our coordinate system of the data in ArcGIS Online hosted feature services, and the the pulldata(''@geopoint'') function will only capture DD. However, we can take full advantage of the Survey123 for ArcGIS's calculation fields to determine both DMS and decimal minutes (DDM) coordinates for our data. Since we determine DDM and DMS values in our survey, we can create this information on-the-fly and save it into the form response. While this process doesn’t change the coordinate format, you can save valuable time should you need this information.
As these calculations can be quite complex, here's a sample survey that does everything for you! Copy and paste the sections you need to add DDM or DMS values to your survey. On your survey form, a new field depicting the value you want appears. Due to how the application is making these calculations, all our in-between steps appear in the data. Happy survey-ing!Andy S. - Desktop Support Analyst