Select to view content in your preferred language

Coordinates in fields

891
5
Jump to solution
08-10-2023 11:29 AM
SEMARNAT
New Contributor
How do I add the coordinates on a map by entering them textually in a field?
0 Kudos
2 Solutions

Accepted Solutions
BarbaraWebster1
Esri Regular Contributor

Hi @SEMARNAT,

You can do this in the XLSForm by creating a calculation based on the coordinate fields. Geopoint questions accept a space-separated set of latitude and longitude values in decimal degrees. The Geopoint defaults and calculations sections of the Survey123 documentation have more information on the accepted coordinate format.

I attached an example XLSForm with the calculation. This example uses decimal questions. If you wanted to use text questions in your calculation, you would also want to convert the question values from text to a number in the calculation by applying a number() function to each question. 

You could also search for coordinates in the search bar once the geopoint question is opened. 

Thanks,
- Barbara

View solution in original post

0 Kudos
BarbaraWebster1
Esri Regular Contributor

@SEMARNAT The Lines and Polygons sample survey in Connect (also attached) has a couple examples of calculating geoshapes. You would append additional coordinate pairs with a semicolon to calculate the geoshape.

 

 

View solution in original post

5 Replies
BarbaraWebster1
Esri Regular Contributor

Hi @SEMARNAT,

You can do this in the XLSForm by creating a calculation based on the coordinate fields. Geopoint questions accept a space-separated set of latitude and longitude values in decimal degrees. The Geopoint defaults and calculations sections of the Survey123 documentation have more information on the accepted coordinate format.

I attached an example XLSForm with the calculation. This example uses decimal questions. If you wanted to use text questions in your calculation, you would also want to convert the question values from text to a number in the calculation by applying a number() function to each question. 

You could also search for coordinates in the search bar once the geopoint question is opened. 

Thanks,
- Barbara

0 Kudos
SEMARNAT
New Contributor

Thank you Barbara, do yo have an example for geoshape?

0 Kudos
SEMARNAT
New Contributor

Thank you Barbara, do yo have an example for geoshape?

0 Kudos
BarbaraWebster1
Esri Regular Contributor

@SEMARNAT The Lines and Polygons sample survey in Connect (also attached) has a couple examples of calculating geoshapes. You would append additional coordinate pairs with a semicolon to calculate the geoshape.

 

 

SEMARNAT
New Contributor

Thank you Bárbara

0 Kudos