You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need to add some usage=* values to the type key in the vector tiles #676
Andrew S. reports on the forum that the more prominent rail rendering only applies to railways that are incorrectly tagged as having a name of usage=main. The following legacy filter and five others like it should be rewritten to compare usage to main, not name to usage=main:
The tag usage=main is the correct way to designate main train lines. However the correct rendering of the main line with more prominent features only seems to work when the tag ‘name=usage=main’ is also included.
Example, the only difference in tagging between the two lines shown here (at top left) at OpenHistoricalMap 1 is the presence of the name tag:
Tagging:
name=usage=main
railway=rail
usage=main
The second rail is not showing up as main because it is not tagged as usage=name=main, It has no name tag at all so it only shows up in class=railyway and/or type=rail
I can be reassigned when vtiles are updated to include usage - flagging this ticket is an example of updating vtiles. On Wednesday we can chat about whom best to tag to do that work on the devseed side?
Last week in OHM carto meeting we chatted and noted that in some cases, we can grab usage via type in the interim.
I can flag in this ticket which railways allow for that. This is an interim solution, as a path forward, we would either:
create a new attribute called "usage" in the data or
make sure usage is captured outside of the name=... and place usage into the type category. a minor issue here is that type=rail for some data, but perhaps that doesn't matter as class=railway, so type=rail is likely redundant.
Option 2 seems like a good path forward. type=rail honestly is redundant, as class=railway
main branch industrial military tourism
spur (service=spur --> this already is how data is styled)
siding (service=siding --> already how data is styled)
rail (as catch all category - ie "what is classified as railway + rail but doesn't have other category")
tram (already classified as type=tram
light_rail (styled as part of general rail category)
subway (type=subway, already styled as such)
narrow_gauge (type=narrow_gauge, styled in rail mini layer)
miniature (type=miniature, styled in rail mini layer)
monorail (type=monorail, styled in road_rail_tram)
funicular (type=funicular, style in road_rail_tram)
rail construction (type=construction, styled in roads_rail_construction)
proposed (type=proposed, style in roads_rail_construction)
disused (type=disused --> roads_rail_old)
abandoned (type=abandoned --> roads_rail_old)
razed (type=raized --> road_rail_old)
preserved (type=preserved, in roads_rail layer)
changed the title [-]Historic style only prioritizes railways named usage=main[/-][+]Need to add some `usage=*` values to the `type` key in the vector tiles[/+]on Feb 28, 2024
Activity
vknoppkewetzel commentedon Jan 16, 2024
Thank you! Will work on this this week
vknoppkewetzel commentedon Jan 22, 2024
I do not see "usage" in v tiles attributes
vknoppkewetzel commentedon Jan 22, 2024
Checking v tiles itself
I know that we have discussed wanting another attribute added on so that we dont use
name=usage=mainWhat I do see here is that
industrialisname=industrialwhich is different than the other railsname=usage=XYZin OHM vtilesvknoppkewetzel commentedon Jan 22, 2024
This may be a case where OpenSTREETMap has the data as
usage=mainbut it doesn't exist in OHM tiles (yet)vknoppkewetzel commentedon Jan 22, 2024
The second rail is not showing up as main because it is not tagged as
usage=name=main, It has no name tag at all so it only shows up inclass=railywayand/ortype=railvknoppkewetzel commentedon Jan 22, 2024
I can be reassigned when vtiles are updated to include
usage- flagging this ticket is an example of updating vtiles. On Wednesday we can chat about whom best to tag to do that work on the devseed side?1ec5 commentedon Jan 22, 2024
Ah, that makes sense. I’ve been wondering when we added
usageto the tiles that the style was even considering it already.vknoppkewetzel commentedon Jan 31, 2024
Last week in OHM carto meeting we chatted and noted that in some cases, we can grab usage via
typein the interim.I can flag in this ticket which railways allow for that. This is an interim solution, as a path forward, we would either:
usageis captured outside of thename=...and placeusageinto thetypecategory. a minor issue here is thattype=railfor some data, but perhaps that doesn't matter asclass=railway, sotype=railis likely redundant.Option 2 seems like a good path forward.
type=railhonestly is redundant, asclass=railwayvknoppkewetzel commentedon Jan 31, 2024
Using testbed as reference

main



















branch
industrial
military
tourism
spur (
service=spur--> this already is how data is styled)siding (
service=siding--> already how data is styled)rail (as catch all category - ie "what is classified as railway + rail but doesn't have other category")
tram (already classified as
type=tramlight_rail (styled as part of general rail category)
subway (
type=subway, already styled as such)narrow_gauge (
type=narrow_gauge, styled in rail mini layer)miniature (
type=miniature, styled in rail mini layer)monorail (
type=monorail, styled in road_rail_tram)funicular (
type=funicular, style in road_rail_tram)rail construction (
type=construction, styled in roads_rail_construction)proposed (
type=proposed, style in roads_rail_construction)disused (
type=disused--> roads_rail_old)abandoned (
type=abandoned--> roads_rail_old)razed (
type=raized--> road_rail_old)preserved (
type=preserved, in roads_rail layer)vknoppkewetzel commentedon Jan 31, 2024
Confirming it is the following that need to have their
typereplaced with the below:and ideally we remove
railfromtype=railin the data.class=railwayalready capturesrailjeffreyameyer commentedon Feb 28, 2024
@danrademacher - who's the right person to task with updating whatever files need to be modified? (config.toml?)
[-]Historic style only prioritizes railways named usage=main[/-][+]Need to add some `usage=*` values to the `type` key in the vector tiles[/+]jeffreyameyer commentedon Feb 28, 2024
@1ec5 - I renamed this ticket - please double-check that I haven't mischaracterized the ask.
1ec5 commentedon Mar 15, 2024
That’s accurate – this is a top community request for a hopefully straightforward change to the TOML file.
Rub21 commentedon Mar 16, 2024
I found only 10 objects that has usage attribute, and I've added the usage attribute in Vtiles - staging. https://vtiles-staging.openhistoricalmap.org/#18.13/-32.93544/151.720113
Rub21 commentedon Mar 16, 2024
These are the objects that have the = character in their names. This can be fixed by manually adding the usage attribute to the names.
Rub21 commentedon Mar 19, 2024
usageattributes has been added to production, https://vtiles.openhistoricalmap.org/#18.13/-32.93544/151.720113!!