raise exception on long/lat ambiguity mismatch
This commit is contained in:
parent
a3a72cb4af
commit
8ee87bd85b
|
|
@ -868,6 +868,10 @@ def _parse_normal(body):
|
||||||
|
|
||||||
# position ambiguity
|
# position ambiguity
|
||||||
posambiguity = lat_min.count(' ')
|
posambiguity = lat_min.count(' ')
|
||||||
|
|
||||||
|
if posambiguity != lon_min.count(' '):
|
||||||
|
raise ParseError("latitude and longitude ambiguity mismatch")
|
||||||
|
|
||||||
parsed.update({'posambiguity': posambiguity})
|
parsed.update({'posambiguity': posambiguity})
|
||||||
|
|
||||||
# we center the position inside the ambiguity box
|
# we center the position inside the ambiguity box
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue