Skip to content
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

Merged
merged 1 commit into from
Dec 26, 2017

Conversation

pnorman
Copy link
Collaborator

@pnorman pnorman commented Dec 18, 2017

  • Update tests
  • Update data migrations
  • Update docs

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.

tier: 2
- filter: { landuse: forest }
min_zoom: { max: [ 10, *tier2_min_zoom ] }
output:
<<: *output_properties
kind: forest
kind_detail: *woods_detail
Copy link
Member

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

Copy link
Member

@nvkelso nvkelso left a 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)._
Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to #1469

Copy link
Member

@nvkelso nvkelso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@nvkelso nvkelso merged commit bbc21cc into tilezen:master Dec 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants