Skip to content

Commit

Permalink
Base subclass on node location in analyser_osmosis_way_approximate os…
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jul 15, 2019
1 parent ebd79fe commit 439bb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysers/analyser_osmosis_way_approximate.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(self, config, logger = None):
)
for t in self.tags:
self.classs_change[t[0]] = {"item":"1190", "level": 3, "tag": ["geom", "highway", "railway", "fix:imagery"], "desc": T_f(u"Approximate {0}", t[1]) }
self.callback10 = lambda res: {"class":res[4], "subclass":stablehash(res[3]), "data":[self.way_full, self.positionAsText], "text": T_f(u"{0} deviation of {1}m", res[3], res[2])}
self.callback10 = lambda res: {"class":res[4], "subclass":stablehash(res[1]), "data":[self.way_full, self.positionAsText], "text": T_f(u"{0} deviation of {1}m", res[3], res[2])}

def analyser_osmosis_full(self):
self.run(sql10)
Expand Down

0 comments on commit 439bb21

Please sign in to comment.