diff --git a/analysers/analyser_osmosis_relation_associatedStreet.py b/analysers/analyser_osmosis_relation_associatedStreet.py index 7638b72bc..eb1af9a7f 100644 --- a/analysers/analyser_osmosis_relation_associatedStreet.py +++ b/analysers/analyser_osmosis_relation_associatedStreet.py @@ -82,7 +82,7 @@ # ways with addr:housenumber or addr:housename and without addr:street and not member of a associatedStreet sql10 = """ -SELECT +SELECT DISTINCT ON (id) id, ST_AsText(ST_Transform(way_locate(linestring_proj), 4326)) FROM @@ -90,11 +90,13 @@ WHERE name IS NULL AND rid IS NULL +ORDER BY + id """ # same for nodes sql11 = """ -SELECT +SELECT DISTINCT ON (id) id, ST_AsText(ST_Transform(geom_proj, 4326)) FROM @@ -102,6 +104,8 @@ WHERE name IS NULL AND rid IS NULL +ORDER BY + id """ # No role street in relation