Skip to content

Commit

Permalink
Merge remote-tracking branch 'frodrigo/master'
Browse files Browse the repository at this point in the history
* frodrigo/master:
  Fix, add index in analyser_osmosis_addr_interpolation
  Please, report your issue in English.
  • Loading branch information
jocelynj committed Aug 31, 2019
2 parents 49f0f71 + 8e9c535 commit 34c20ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ When report an issue on existing analyser, in addition on the name of the issue,
- the item and class number,
- or a link to detail of this marker, from the green "details" links in the popup. If you mark the issue as "false positive" on the osmose-frontend we can no more use this link,
- or at least a permalink to the Osmose map.

Please, report your issue in English.
6 changes: 6 additions & 0 deletions analysers/analyser_osmosis_addr_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
CREATE INDEX idx_interpolation_nodes_addr_housenumber ON interpolation_nodes((tags?'addr:housenumber')) WHERE tags?'addr:housenumber'
"""

sql04 = """
CREATE INDEX idx_interpolation_nodes_geom ON interpolation_nodes USING gist(geom)
"""

sql10 = """
SELECT
id,
Expand Down Expand Up @@ -101,6 +105,7 @@
FROM
interpolations AS ways
LEFT JOIN interpolation_nodes AS nodes ON
ways.linestring && nodes.geom AND
ways.id = ANY (nodes.w_ids) AND
(
nodes.id = ways.nodes[1] OR
Expand Down Expand Up @@ -191,6 +196,7 @@ def analyser_osmosis_common(self):
self.run(sql01)
self.run(sql02)
self.run(sql03)
self.run(sql04)
self.run(sql10, self.callback10)
self.run(sql20, self.callback20)
self.run(sql30, self.callback30)
Expand Down

0 comments on commit 34c20ff

Please sign in to comment.