Note, if you merely want to have the components in distinct ‘columns’ (I assume you are extracting the submission data as a CSV or equivalent ‘flattened’ format…) then you can readily accomplish this by just adding some additional suitable calculations to your form. eg
type name calculation
-----------+---------+-------------------------
geopoint geopoint
calculate lat selected-at(${geopoint}, 0)
calculate long selected-at(${geopoint}, 1)
so lat
and long
will show up as separate columns in your extracted CSV.
Similarly, you could add a calculation to generate a WKT POINT
representation of your geopoint; eg
calculate location concat('POINT (', ${long}, ',', ${lat}, ')')
where, again, the location
calculation would show up as another distinct column.
Since there are just (hidden) calculations, they wont actually appear in the form to the user, but they will get submitted in the final result.
Unfortuantely, as you can see in my earlier link, performing (conversion) calculations on geotraces and geoshapes is a lot messier…