FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit e1d9e23c authored by J.W. Smith's avatar J.W. Smith
Browse files

fix: Parse negative altitudes from surveys

parent 931a9e7c
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ def parse_location_str(location_str):
# expecting a space-separated string containing four numbers which
# contain a decimal point
regex = r'(?P<lat>[-?0-9\.]+)\s(?P<lon>[-?0-9\.]+)\s(?P<alt>[0-9\.]+)\s(?P<acc>[0-9\.]+)'
regex = r'(?P<lat>-?[0-9\.]+)\s(?P<lon>-?[0-9\.]+)\s(?P<alt>-?[0-9\.]+)\s(?P<acc>[0-9\.]+)'
# needed because the ODK names are too complicated for regex named groups
name_dict = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment