We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900f59d commit 9636852Copy full SHA for 9636852
vectordatasource/transform.py
@@ -118,6 +118,7 @@ def _to_float_meters(x):
118
119
return None
120
121
+
122
def _to_int_degrees(x):
123
if x is None:
124
@@ -128,14 +129,14 @@ def _to_int_degrees(x):
128
129
130
# trim whitespace to simplify further matching
131
x = x.strip()
-
132
133
cardinals = {
- '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
+ 'north': 0 , 'N': 0 , 'NNE': 22 , 'NE': 45 , 'ENE': 67 ,
+ 'east': 90 , 'E': 90 , 'ESE': 112, 'SE': 135, 'SSE': 157,
+ 'south': 180, 'S': 180, 'SSW': 202, 'SW': 225, 'WSW': 247,
137
+ 'west': 270, 'W': 270, 'WNW': 292, 'NW': 315, 'NNW': 337
138
}
139
140
return cardinals[x]
141
142
0 commit comments