Skip to content

Remove unused wooded area tags + natural=park and add leaf_type to wooded areas#1459

Merged
nvkelso merged 1 commit intotilezen:masterfrom
pnorman:1425_woods
Dec 26, 2017
Merged

Remove unused wooded area tags + natural=park and add leaf_type to wooded areas#1459
nvkelso merged 1 commit intotilezen:masterfrom
pnorman:1425_woods

Conversation

@pnorman
Copy link
Copy Markdown
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.

Comment thread yaml/landuse.yaml Outdated
output:
<<: *output_properties
kind: forest
kind_detail: *woods_detail
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread docs/layers.md
* `military`
* `national_park`
* `nature_reserve`
* `natural_forest` - _See planned bug fix in [#1096](https://github.com/tilezen/vector-datasource/issues/1096)._
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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