geopoint por defecto y readonly

632
4
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
4 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
Jcordovafredes
Occasional Contributor II

@Jim-Moore Hello, 

I want to ask if it is possible that from a "mother" geopoint the same coordinates are returned in other geopoints of the same survey.

Regards

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
Jcordovafredes
Occasional Contributor II

Hello, @Jim-Moore 

Finally what I did and it turned out was to use the "coalesce" function in the calculation column.

This function requires two values, that is:

coalesce ($ {info_1}, $ {info_2}

I realized that in info_1 the information of a row of the note type can go, while it is important that in this case info_2 corresponds to the mother geopoint, that is, the geopoint that you want to replicate the exact same coordinates.

that

Greetings

0 Kudos