From 439bb21cdabfc58afa155109d61d4c3340f7a5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Sun, 14 Jul 2019 10:18:12 +0200 Subject: [PATCH] Base subclass on node location in analyser_osmosis_way_approximate #560 --- analysers/analyser_osmosis_way_approximate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysers/analyser_osmosis_way_approximate.py b/analysers/analyser_osmosis_way_approximate.py index cea51538e..dc84416f3 100644 --- a/analysers/analyser_osmosis_way_approximate.py +++ b/analysers/analyser_osmosis_way_approximate.py @@ -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)