go-spatial / tegola-osm

Various scripts for importing and running a mirror of OSM with tegola
https://demo.tegola.io
MIT License
73 stars 26 forks source link

parse ref field into separate columns for styling #45

Closed PetersonGIS closed 6 years ago

PetersonGIS commented 6 years ago

See https://github.com/go-spatial/tegola-web-demo/issues/21

PetersonGIS commented 6 years ago

If this PR is accepted, the tile cache will need to be re-created. Then I'll work on submitting the style changes to camo and mobility that will use the new ref fields. Existing styles won't break because the original ref field is still there.

ARolek commented 6 years ago

@PetersonGIS apologies for the delay on this review. Your strategy looks generally fine. A couple questions:

PetersonGIS commented 6 years ago

Great questions.

*way["highway"] "ref"~ ".+;.+;.+;.+;.+;.+";

PetersonGIS commented 6 years ago

The code is updated to include up to 8 refs. Tested locally:

i465

ARolek commented 6 years ago

LGTM.