getodk / xforms-spec

The XForms-derived specification used in the ODK ecosystem. If you are interested in building a tool that is compliant with the forms rendered by ODK tools, this is the place to start. ✨⚒✨
https://getodk.github.io/xforms-spec/
30 stars 26 forks source link

Make GeoShapeData / GeoPointData more flexible to include additional geo data #216

Closed OlivierVernin closed 5 years ago

OlivierVernin commented 5 years ago

This is a request to discuss adding some flexibility on the GeoShape/GeoPointData format. The current format is -6.668710000000001 106.91277 821.2 1.7; <another point>; <and another point>.

We would like javarosa to allow additional data to be attached for each point so that the points could carry more contextual data on how they were recorded while still supporting the area() or distance() functions. That additional information would enable advanced surveying capabilities within ODK collect.

The contextual data should be rather flexible with minimum constraint to let each application come up with a best fit format. To give an example of those data in the context of our work at meridia, there is a nonexhaustive list:

Focusing on JavaRosa modification, our suggestion would be to have the GeoPointData accept the following format <double> <double> <double*> <double*> <string*> where only the 2 first double are mandatory. Altitude, accuracy and the additional string would be optional.

In the coming weeks, we will propose an implementation of this modification via a PR. In the mean time feel free to feedback.

yanokwa commented 5 years ago

@OlivierVernin This is a spec level decision so I'm moving the issue from JavaRosa. My initial take on this is this will cause a lot of downstream problems.

My recommendation is to start a conversation at https://forum.opendatakit.org/c/development about the high-level problem you want to solve. My guess is that we might be able to do what with a new and more standard data type (e.g., GoeJSON)

OlivierVernin commented 5 years ago

conversation started on the ODK forum

@yanokwa thank you for the quick comment