-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused wooded area tags + natural=park and add leaf_type to wooded areas #1459
Conversation
yaml/landuse.yaml
Outdated
tier: 2 | ||
- filter: { landuse: forest } | ||
min_zoom: { max: [ 10, *tier2_min_zoom ] } | ||
output: | ||
<<: *output_properties | ||
kind: forest | ||
kind_detail: *woods_detail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this may be technically correct YAML, it's doesn't follow our convention.
Instead of declaring the YAML global on line 342 with kind_detail: &woods_detail { col: leaf_type }
instead add to the globals section around line 134 like:
- &leaftype_kind_detail
kind_detail: { col: leaf_type }
and then the usage down below (like 342, 349, etc) would be:
<<: * leaftype_kind_detail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments.
docs/layers.md
Outdated
@@ -507,8 +507,6 @@ _TIP: Some `landuse` features only exist as point features in OpenStreetMap. Fin | |||
* `military` | |||
* `national_park` | |||
* `nature_reserve` | |||
* `natural_forest` - _See planned bug fix in [#1096](https://github.com/tilezen/vector-datasource/issues/1096)._ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert these changes for natural_forest
and natural_park
throughout this PR, and add the leaf type kind_detail to both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to #1469
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
natural=forest, landuse=wood and natural=park are all mistakes with about 0.02% occurrence in the data.This isn't a schema-breaking change because these objects aren't present except as mistakes anyways.I did this change first because I had to modify all the wooded areas for the other change, leaf_type. This adds the leaf_type to kind_detail for wooded areas.