<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Save Location with Offset in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/save-location-with-offset/m-p/1154967#M41376</link>
    <description>&lt;P&gt;It turns out all I needed to do is switch the order of the two geopoint questions! I did not realize that calculations in Survey123 can use values of questions defined later in the form. Taking the example in my original post, the following modification works:&lt;/P&gt;&lt;TABLE border="1" width="95%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;type&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;name&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;label&lt;/TD&gt;&lt;TD width="32.5%" height="25px"&gt;calculation&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;bind::esri:fieldType&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;decimal&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;gps_latitude&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;GPS Latitude&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;pulldata("@geopoint", ${gps_location}, "y")&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;decimal&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;gps_longitude&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;GPS Longitude&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;pulldata("@geopoint", ${gps_location}, "x")&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;geopoint&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;offset_location&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;Offset Location&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;string(${gps_latitude} + 1) + " " + string(${gps_longitude})&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;geopoint&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;gps_location&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;GPS Location&lt;/TD&gt;&lt;TD width="32.5%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem ideal to arrange the questions in such a nonintuitive order, but at least it works.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 18:56:33 GMT</pubDate>
    <dc:creator>SkylerKasko</dc:creator>
    <dc:date>2022-03-17T18:56:33Z</dc:date>
    <item>
      <title>Save Location with Offset</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/save-location-with-offset/m-p/1154886#M41371</link>
      <description>&lt;P&gt;Is there any way to save a location that is&amp;nbsp;offset from a geopoint as the geometry of a survey record?&lt;/P&gt;&lt;P&gt;For example, if I wanted my survey points to be shifted by 1 degree of latitude from the coordinates captured by my device, my first thought would be to calculate an offset location in a second geopoint question:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;type&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;name&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;label&lt;/TD&gt;&lt;TD width="32.5%" height="25px"&gt;calculation&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;bind::esri:fieldType&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;geopoint&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;gps_location&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;GPS Location&lt;/TD&gt;&lt;TD width="32.5%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;decimal&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;gps_latitude&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;GPS Latitude&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;pulldata("@geopoint", ${gps_location}, "y")&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;decimal&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;gps_longitude&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;GPS Longitude&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;pulldata("@geopoint", ${gps_location}, "x")&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;geopoint&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;offset_location&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;Offset Location&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;string(${gps_latitude} + 1) + " " + string(${gps_longitude})&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;(In reality I wouldn't be adding a hardcoded offset; I would be calling a custom JavaScript function, passing in &lt;FONT face="courier new,courier"&gt;${gps_location}&lt;/FONT&gt;, and returning the desired coordinates for the offset location, but those details are not relevant.)&lt;/P&gt;&lt;P&gt;Unfortunately, this does not work because Survey123 can only save survey records' geometries based on the first geopoint question encountered, as explained in &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/coordinates-saved-from-null-geopoint-instead-of/m-p/1026126/highlight/true#M32437" target="_blank" rel="noopener"&gt;this answer&lt;/A&gt;. Indeed, if I publish this survey and try submit a record, I get the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Send Error&lt;/P&gt;&lt;P&gt;This survey could not be sent due to the following error:&lt;/P&gt;&lt;P&gt;No mapping exists from object type ESRI.ArcGIS.Client.Geometry.MapPoint to a known managed provider native type.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Given that this doesn't work, is there any other solution for saving the geometry by calculating coordinates based on the device's location?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 16:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/save-location-with-offset/m-p/1154886#M41371</guid>
      <dc:creator>SkylerKasko</dc:creator>
      <dc:date>2022-03-17T16:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Save Location with Offset</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/save-location-with-offset/m-p/1154967#M41376</link>
      <description>&lt;P&gt;It turns out all I needed to do is switch the order of the two geopoint questions! I did not realize that calculations in Survey123 can use values of questions defined later in the form. Taking the example in my original post, the following modification works:&lt;/P&gt;&lt;TABLE border="1" width="95%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;type&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;name&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;label&lt;/TD&gt;&lt;TD width="32.5%" height="25px"&gt;calculation&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;bind::esri:fieldType&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;decimal&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;gps_latitude&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;GPS Latitude&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;pulldata("@geopoint", ${gps_location}, "y")&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;decimal&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;gps_longitude&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;GPS Longitude&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;pulldata("@geopoint", ${gps_location}, "x")&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="47px"&gt;geopoint&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;offset_location&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;Offset Location&lt;/TD&gt;&lt;TD width="32.5%" height="47px"&gt;string(${gps_latitude} + 1) + " " + string(${gps_longitude})&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;geopoint&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;gps_location&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;GPS Location&lt;/TD&gt;&lt;TD width="32.5%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem ideal to arrange the questions in such a nonintuitive order, but at least it works.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 18:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/save-location-with-offset/m-p/1154967#M41376</guid>
      <dc:creator>SkylerKasko</dc:creator>
      <dc:date>2022-03-17T18:56:33Z</dc:date>
    </item>
  </channel>
</rss>

