Skip to content

earlier bike roads (and walking routes) #1198

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

Merged
merged 47 commits into from
Apr 25, 2017
Merged

Conversation

nvkelso
Copy link
Member

@nvkelso nvkelso commented Apr 7, 2017

Connects to #1172 to show bike and walking related ways a lot earlier, and #1214 for dropping early all_* network and shield texts.

  • Update tests
  • Update data migrations (as it's a min_zoom change)
  • Update docs

@nvkelso
Copy link
Member Author

nvkelso commented Apr 11, 2017

I added new data migration in 27a5926 and removed older v1.0 migrations in 826a239, but had to add the older v1.0 migrations back in d380e9a as CircleCI barfed when they were missing.

See also:

@nvkelso
Copy link
Member Author

nvkelso commented Apr 11, 2017

I've fixed the migrations in e6817df based on conversation with @rmarianski – it's just the version'd *.sql files that need to be removed (the others are required).

For tests, note that @zerebubuth's changes in vector-datasource/pull/1193 for when the walking route and bike route network property is dropped impacts which props I can test for in his https://github.com/tilezen/vector-datasource/pull/1193/files#diff-fc49e5c256610bc0b32a7de5a0520835.

@nvkelso nvkelso changed the title WIP: earlier bike roads (and walking routes) earlier bike roads (and walking routes) Apr 25, 2017
@nvkelso nvkelso requested a review from zerebubuth April 25, 2017 05:33
@nvkelso nvkelso self-assigned this Apr 25, 2017
@nvkelso nvkelso added this to the v1.1.0 milestone Apr 25, 2017
@nvkelso
Copy link
Member Author

nvkelso commented Apr 25, 2017

@zerebubuth This is finally ready for review :)

tags -> 'whitewater' = 'portage_way')
AND mz_calculate_min_zoom_roads(planet_osm_line.*) IS NOT NULL;

CREATE INDEX new_planet_osm_line_roads_geom_index ON planet_osm_line USING gist(way) WHERE mz_road_level IS NOT NULL;
Copy link
Member

Choose a reason for hiding this comment

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

It shouldn't be necessary to re-create the indexes, they should be updated along with the rows in the UPDATE statement above.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 392c88e.

queries.yaml Outdated
properties:
- walking_network
- walking_shield_text
Copy link
Member

Choose a reason for hiding this comment

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

This means that walking networks will be kept on the roads until zoom 7, but the earliest min_zoom for a walking route is zoom 9. This could block opportunities for merging roads at low zooms. Would we display walking data at z7-8? If not, we should remove this data.

Copy link
Member Author

@nvkelso nvkelso Apr 25, 2017

Choose a reason for hiding this comment

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

Good point, I'll remove the data properties at those zooms.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 7cd5ffc.

I also removed the path name at early zooms to enable more line merging – that was necessary for v1.0 when we didn't have the walking network information but is now getting in the way.

@nvkelso
Copy link
Member Author

nvkelso commented Apr 25, 2017

Tests pass (again again), comments address. Merging :)

@nvkelso nvkelso merged commit bc8c87e into master Apr 25, 2017
@nvkelso nvkelso deleted the nvkelso/1170-earlier-bike-roads branch April 25, 2017 23:23
@nvkelso nvkelso removed the in review label Apr 25, 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