Skip to content

Commit

Permalink
Limit addresses to points
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarianski committed May 20, 2016
1 parent 467e5e6 commit 1966abe
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.10.3
-------
* **Release date**: 2016-05-20.
* Limit addresses to points. See [#834](https://github.com/mapzen/vector-datasource/issues/834).

v0.10.2
-------
* **Release date**: 2016-05-10.
Expand Down
2 changes: 2 additions & 0 deletions data/migrations/create-sql-functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ def create_case_statement_output(matchers):
typ = 'integer'
elif column == 'scalerank' or column == 'labelrank':
typ = 'smallint'
elif column == 'way':
typ = 'geometry'
else:
typ = 'text'
key = Key(
Expand Down
11 changes: 11 additions & 0 deletions test/834-park-building.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Way: Olympic Sculpture Park (239782410)
# http://www.openstreetmap.org/way/239782410
assert_no_matching_feature(
16, 10493, 22885, 'buildings',
{ 'id': 239782410 })

# Way: Olympic Sculpture Park (239782410)
# http://www.openstreetmap.org/way/239782410
assert_has_feature(
16, 10493, 22885, 'landuse',
{ 'id': 239782410, 'kind': 'park' })
3 changes: 3 additions & 0 deletions yaml/buildings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ filters:
# address points
- filter:
"addr:housenumber": true
way:
expr: |
GeometryType(way) = 'POINT'
min_zoom: 17
output:
kind: address
Expand Down

0 comments on commit 1966abe

Please sign in to comment.