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

Join countries and regions to Natural Earth for min and max zoom #1535

Merged
merged 6 commits into from
Jun 15, 2018

Conversation

zerebubuth
Copy link
Member

Join countries and regions in the places layer to Natural Earth using common wikidata IDs in order to get the min_label and max_label properties from the Natural Earth features and use them in the output. Where that's not available, fall back to country-specific defaults in the new files under spreadsheets/min_zoom/*.yaml. Although they're YAML files, they felt more like spreadsheets in the sense that they're static data tables rather than sets of rules.

Connects to #977.

…Earth.

* Import that and index it on wikidata ID.
* When querying for OSM places, join to Natural Earth data to extract the min/max zooms.
* Override the default YAML-provided min zoom with the one from Natural Earth.
* Drop place layer features if they have max zoom and the tile nominal zoom is beyond that.
@zerebubuth zerebubuth requested review from rmarianski and nvkelso June 15, 2018 16:37
…m for countries. This fixes the broken test.
@nvkelso nvkelso changed the title Join countries and regions to Natural Earth for min and max zoom. Join countries and regions to Natural Earth for min and max zoom Jun 15, 2018
'population': u'61792000',
'source': u'openstreetmap.org',
'wikidata': u'Q145',
'wikipedia': u'de:United Kingdom', # LOL, de:
Copy link
Member

Choose a reason for hiding this comment

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

:)

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 for also including the max_zoom property and culling!

@zerebubuth zerebubuth merged commit b150863 into master Jun 15, 2018
@zerebubuth zerebubuth deleted the zerebubuth/977-low-zoom-translations branch June 15, 2018 18:24
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.

3 participants