Rename parse_shape() to parse_poly()

This commit is contained in:
XANTRONIX Industrial 2025-02-20 13:38:09 -05:00
parent 44bd511347
commit 0aff86bc57

View file

@ -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)