Rename parse_shape() to parse_poly()
This commit is contained in:
parent
44bd511347
commit
0aff86bc57
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue