ODK Central geoshapes and geotraces contain an empty last coordinate. I'm relatively sure that the problem comes out of ODK Central, not ruODK.
Neither geopoint nor the CSV AIP export are affected.
Even if ODK Central fix this issue in future releases, older versions will still export this empty last coordinate.
ruODK should discard this empty last coordinate.
For WKT, that's relatively easily done with a stringr::str_replace_all(., ",undefined NaN", "") in split_geoshape / split_geotrace.
For GJ, we need to drop the last list element in the GJ list column (need more coffee and a steady hand).
This problem came up while working on #87 following an email request by ruODK user Timon Weitkamp.
Reproducible example
Examples are found in package data (until this bug is fixed and package data are refreshed):
Problem
ODK Central geoshapes and geotraces contain an empty last coordinate. I'm relatively sure that the problem comes out of ODK Central, not ruODK. Neither geopoint nor the CSV AIP export are affected.
Even if ODK Central fix this issue in future releases, older versions will still export this empty last coordinate. ruODK should discard this empty last coordinate.
For WKT, that's relatively easily done with a
stringr::str_replace_all(., ",undefined NaN", "")
insplit_geoshape
/split_geotrace
. For GJ, we need to drop the last list element in the GJ list column (need more coffee and a steady hand).This problem came up while working on #87 following an email request by ruODK user Timon Weitkamp.
Reproducible example
Examples are found in package data (until this bug is fixed and package data are refreshed):