Skip to content

Commit

Permalink
Avoid duplicated issues in analyser_osmosis_relation_associatedStreet o…
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Sep 1, 2019
1 parent 4614d78 commit bb720f3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions analysers/analyser_osmosis_relation_associatedStreet.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,30 @@

# 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
ways_addr
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
nodes_addr
WHERE
name IS NULL AND
rid IS NULL
ORDER BY
id
"""

# No role street in relation
Expand Down

0 comments on commit bb720f3

Please sign in to comment.