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

Tilezen tags [#303] #309

Merged
merged 17 commits into from
Oct 3, 2024
Merged

Tilezen tags [#303] #309

merged 17 commits into from
Oct 3, 2024

Conversation

bdon
Copy link
Member

@bdon bdon commented Oct 1, 2024

No description provided.

@@ -24,7 +24,6 @@ public String name() {
public void processNe(SourceFeature sf, FeatureCollector features) {
var sourceLayer = sf.getSourceLayer();
var kind = "";
var kindDetail = "";
Copy link
Collaborator

Choose a reason for hiding this comment

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

kindDetail was implemented in v3 as a forward compatible change to Tilezen 1.9 schema. It's not necessary to remove it v4, although you can if you want. Natural Earth has a lot of extra fidelity that wasn't captured before... but for rendering probably just kind and the disputed boolean are sufficient for most basic maps.

@@ -192,7 +176,6 @@ public void processOsm(SourceFeature sf, FeatureCollector features) {
switch (minAdminLevel.getAsInt()) {
case 2 -> {
kind = "country";
kindDetail = "2";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Be wary of removing kindDetail here as kind alone doesn't capture some of the per country variance –– right now Protomaps v3 and v4 would push more boundaries features from OSM into tiles than Tilezen v1.9 schema, and the kindDetail would provide a way to filter those out in the style. The better fix would be to be more selective at tile cut, of course.

} // end highway=

// non-highway features
// todo: exclude railway stations, levels
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is important, there were several Tilezen versions where we didn't have that filtering and the rendering was borked.

Copy link

sonarcloud bot commented Oct 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
18.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@bdon bdon merged commit dfc55b6 into main Oct 3, 2024
3 of 4 checks passed
@bdon bdon deleted the tilezen-tags branch October 3, 2024 02:58
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