SGSC
September 26, 2017, 5:41am
#1
Hello ODKers,
I am trying to convert geopoint data type into string data type . There was a solution given to it at this page https://opendatakit.org/help/form-design/examples/ where i can apply a formula of 'string(.)' . But i am not able to understand where the formula should be applied . Please help me in this Thank you .
Nader
September 28, 2017, 1:50am
#2
Hi SGSC,
if your form like this you can use ${ } to assign it to label or note
type name label
geopoint name_a label_a
note name_b ${name_a}
it will appear like this
this string are the latitude, longitude, altitude and accuracy separated by " "
55.123456 66.123456 77.123456 65.0 1.0
SGSC
September 28, 2017, 4:51am
#3
Hello @Nader ,
Thanks for the reply , but I want to store that geopoint as a string variable . So , I am trying to figure out how it can be stored.
Thanks and Regards ,
SGSC.
Nader
September 28, 2017, 8:46pm
#4
Hello SGSC,
this is how to convert geopoint to string.
Best Regards
2 Likes
yanokwa
October 1, 2017, 11:08am
#5
Nader's solution should work great.
An alternative (and more explicit) solution is to wrap the answer like so: string(${a})
2 Likes
Nader
October 1, 2017, 5:43pm
#6
Thank you Yaw
i will add your short solution to my dictionary
Best Regards