Skip to content

Commit

Permalink
Avoid duplicate issues in Analyser_Merge osm-fr#560
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Sep 1, 2019
1 parent 4c4a296 commit 8565940
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analysers/Analyser_Merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@
ELSE ST_AsText(any_locate(osm_item.type, osm_item.id))
END,
osm_item.tags,
osm_item.geom
osm_item.geom,
osm_item.ref
FROM
osm_item
LEFT JOIN %(official)s AS official ON
Expand Down Expand Up @@ -944,6 +945,7 @@ def analyser_osmosis_common(self):
# Invalid OSM
self.run(sql23 % {"official": table, "joinClause": joinClause}, lambda res: {
"class": self.missing_osm["class"],
"subclass": str(stablehash(res[4])) if self.mapping.osmRef != "NULL" else None,
"data": [self.typeMapping[res[1]], None, self.positionAsText]
} )

Expand Down

0 comments on commit 8565940

Please sign in to comment.