diff --git a/lib/nexrad/afos.py b/lib/nexrad/afos.py index 504259d..011bc4b 100644 --- a/lib/nexrad/afos.py +++ b/lib/nexrad/afos.py @@ -67,7 +67,7 @@ def parse_lat(text: str): def parse_location(lon: str, lat: str): return shapely.Point(parse_lon(lon), parse_lat(lat)) -def parse_shape(text: str): +def parse_poly(text: str): points = list() coords = text.split(' ') @@ -247,7 +247,7 @@ class AFOSMessageParser(): match = RE_POLY.match(line) if match is not None: - self.message.poly = parse_shape(match['coords']) + self.message.poly = parse_poly(match['coords']) match = RE_MOTION.match(line)