raise exception on long/lat ambiguity mismatch

This commit is contained in:
Rossen Georgiev 2015-05-30 04:16:52 +01:00
parent a3a72cb4af
commit 8ee87bd85b
1 changed files with 4 additions and 0 deletions

View File

@ -868,6 +868,10 @@ def _parse_normal(body):
# position ambiguity
posambiguity = lat_min.count(' ')
if posambiguity != lon_min.count(' '):
raise ParseError("latitude and longitude ambiguity mismatch")
parsed.update({'posambiguity': posambiguity})
# we center the position inside the ambiguity box