Select to view content in your preferred language

geopoint por defecto y readonly

1184
2
Jump to solution
05-03-2021 09:03 AM
YolberSebastianHernandezSarabi
New Contributor
Good morning, I would like to know what tool or calculation allows me to set the automatic geopoint and make it read only, that the field operators using survey123 only have to open the survey and that this by default and without being done manually can georeference its location, I appreciate your help.
 
YolberSebastianHernandezSarabi_0-1620057738685.png

 

 
 
 
 
 
0 Kudos
1 Solution

Accepted Solutions
Jim-Moore
Esri Regular Contributor

Hi @Jcordovafredes yes it's possible to apply the coordinates from one geopoint question to another in the same survey. A geopoint question can accept a default or calculated location in the format of latitude (decimal degrees) and longitude (decimal degrees) separated by a space, for example:

43.221 -117.342

See the section on defaults in the Geopoints documentation for more.

To get the coordinates from a geopoint, use the pulldata("@geopoint") function to extract the x and y coordinates to separate fields, then concatenate them with a space and use this as the calculation for the second geopoint. Alternatively, you can use string(${geopoint1}) to extract the formatted coordinates from the first geopoint.

Note that only one geopoint/geoshape/geotrace question can submit geometry for a survey record, so any additional geometry question has to have its bind::esri:fieldType set to null (unless it's in a repeat).

See the Multiple Geopoints and Calculate Location from Geopoint samples in Connect for some useful syntax for working with geopoints.

Best, Jim

View solution in original post

0 Kudos
2 Replies
Jim-Moore
Esri Regular Contributor

Hi @YolberSebastianHernandezSarabi if you do not include a geopoint question in your survey form, by default the Survey123 field app will record the device's current location (at the time the survey form was opened) as the point location for that survey record. This relies on (a) the Survey123 field app having permission to access the device's location; and (b) the device reporting an actual location (otherwise the location will default to 0,0). For more information, see the documentation on geopoints.

Hope this helps! Best, Jim

0 Kudos
Jim-Moore
Esri Regular Contributor

Hi @Jcordovafredes yes it's possible to apply the coordinates from one geopoint question to another in the same survey. A geopoint question can accept a default or calculated location in the format of latitude (decimal degrees) and longitude (decimal degrees) separated by a space, for example:

43.221 -117.342

See the section on defaults in the Geopoints documentation for more.

To get the coordinates from a geopoint, use the pulldata("@geopoint") function to extract the x and y coordinates to separate fields, then concatenate them with a space and use this as the calculation for the second geopoint. Alternatively, you can use string(${geopoint1}) to extract the formatted coordinates from the first geopoint.

Note that only one geopoint/geoshape/geotrace question can submit geometry for a survey record, so any additional geometry question has to have its bind::esri:fieldType set to null (unless it's in a repeat).

See the Multiple Geopoints and Calculate Location from Geopoint samples in Connect for some useful syntax for working with geopoints.

Best, Jim

0 Kudos