Skip to content

Commit 9636852

Browse files
author
Vectura Games Maps
committed
Fix Circle failing checks
1 parent 900f59d commit 9636852

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

vectordatasource/transform.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def _to_float_meters(x):
118118

119119
return None
120120

121+
121122
def _to_int_degrees(x):
122123
if x is None:
123124
return None
@@ -128,14 +129,14 @@ def _to_int_degrees(x):
128129

129130
# trim whitespace to simplify further matching
130131
x = x.strip()
131-
132+
132133
cardinals = {
133-
'north' : 0 , 'N' : 0 , 'NNE' : 22 , 'NE' : 45 , 'ENE' : 67 ,
134-
'east' : 90 , 'E' : 90 , 'ESE' : 112, 'SE' : 135, 'SSE' : 157,
135-
'south' : 180, 'S' : 180, 'SSW' : 202, 'SW' : 225, 'WSW' : 247,
136-
'west' : 270, 'W' : 270, 'WNW' : 292, 'NW' : 315, 'NNW' : 337
134+
'north': 0 , 'N': 0 , 'NNE': 22 , 'NE': 45 , 'ENE': 67 ,
135+
'east': 90 , 'E': 90 , 'ESE': 112, 'SE': 135, 'SSE': 157,
136+
'south': 180, 'S': 180, 'SSW': 202, 'SW': 225, 'WSW': 247,
137+
'west': 270, 'W': 270, 'WNW': 292, 'NW': 315, 'NNW': 337
137138
}
138-
139+
139140
return cardinals[x]
140141

141142

0 commit comments

Comments
 (0)