diff --git a/docs/layers.md b/docs/layers.md index bf80deb79..d962ba2ad 100644 --- a/docs/layers.md +++ b/docs/layers.md @@ -568,6 +568,9 @@ _TIP: Some `landuse` features only exist as point features in OpenStreetMap. Fin * `works` * `zoo` +##### Wetland `kind_detail` values: + +The value of the OpenStreetMap `wetland` tag. Common values are `bog`, `fen`, `mangrove`, `marsh`, `reedbed`, `saltmarsh`, `string_bog`, `swamp`, `tidalflat`, and `wet_meadow`. ## Places diff --git a/integration-test/1425-osm-features.py b/integration-test/1425-osm-features.py index ced2083fc..4a99102f2 100644 --- a/integration-test/1425-osm-features.py +++ b/integration-test/1425-osm-features.py @@ -44,6 +44,19 @@ def test_shops(self): 'http://www.openstreetmap.org/node/2299770718', '16/19297/24633', {'kind': 'variety_store'}) + def test_wetland(self): + self._run_test( + 'http://www.openstreetmap.org/way/412807883', + '16/19327/24638', 'landuse', {'kind': 'wetland'}) + self._run_test( + 'http://www.openstreetmap.org/way/396249564', + '16/19310/24621', 'landuse', + {'kind': 'wetland', 'kind_detail': 'saltmarsh'}) + self._run_test( + 'http://www.openstreetmap.org/way/257640900', + '16/19318/24656', 'landuse', + {'kind': 'wetland', 'kind_detail': 'tidalflat'}) + def _run_test(self, url, zxy, layer, props): z, x, y = map(int, zxy.split('/')) self.load_fixtures([url]) diff --git a/yaml/landuse.yaml b/yaml/landuse.yaml index 107bf31a0..dff3d1c04 100644 --- a/yaml/landuse.yaml +++ b/yaml/landuse.yaml @@ -862,6 +862,7 @@ filters: output: <<: *output_properties kind: wetland + kind_detail: {col: wetland} - filter: {natural: park} min_zoom: { clamp: { max: 16, min: 9, value: { col: zoom } } } output: