Modify

Opened 6 months ago

Last modified 5 months ago

#23977 new enhancement

[PATCH] Add railway=train_station_entrance to standard preset and mapstyle

Reported by: Claudius Owned by: team
Priority: normal Milestone:
Component: Internal preset Version:
Keywords: train_station_entrance Cc:

Description

railway=train_station_entrance is a documented tag which already sees more than 8300 uses mainly in Europe but also across the world. It allows tagging train station entrances different than subway entrances which is what currently still largely is (ab)used as tagging.

This tag adds a new icon created by me based on the subway entrance icon but coloured black/white to fit into the railway icon theme. This icon is then added to the default mappaint ruleset.

Attachments (4)

station_entrance.svg (8.3 KB ) - added by Claudius 6 months ago.
New black/white station entrance icon based off the existing blue/white underground.svg - I grant free use of that icon
add_train_station_entrance.patch (9.4 KB ) - added by Claudius 6 months ago.
Patch file adding the icon and modifying the standard mappaint styling
add_train_station_entrance_2.patch (10.7 KB ) - added by Claudius 6 months ago.
Enhanced patch to also add a preset for the train station entrance (this also adds the optional reference field to the subway entrances preset for consistency)
add_train_station_entrance_3.patch (10.7 KB ) - added by Claudius 6 months ago.
Using name_ref chunk for the name+ref combination in defaultpreset now

Download all attachments as: .zip

Change History (10)

by Claudius, 6 months ago

Attachment: station_entrance.svg added

New black/white station entrance icon based off the existing blue/white underground.svg - I grant free use of that icon

by Claudius, 6 months ago

Patch file adding the icon and modifying the standard mappaint styling

comment:1 by Claudius, 6 months ago

Summary: Add railway=train_station_entrance to standard mapstyle[PATCH] Add railway=train_station_entrance to standard mapstyle

comment:2 by skyper, 6 months ago

If we add it to the default style, shouldn't we add a preset along side. Shouldn't be much of a task as most of the work is already done in finding/creating an icon.

by Claudius, 6 months ago

Enhanced patch to also add a preset for the train station entrance (this also adds the optional reference field to the subway entrances preset for consistency)

in reply to:  2 comment:3 by Claudius, 6 months ago

Replying to skyper:

If we add it to the default style, shouldn't we add a preset along side. Shouldn't be much of a task as most of the work is already done in finding/creating an icon.

Good point. I've attached the updated patch which also adds "Train Station Entrance" to the default preset next to "Subway entrance". I also used the opportunity to add the optional reference field to the subway entrance preset since that is quite common for numbered exits in our data.

Last edited 6 months ago by Claudius (previous) (diff)

comment:4 by skyper, 6 months ago

Component: Core mappaintInternal preset
Keywords: train_station_entrance added
Summary: [PATCH] Add railway=train_station_entrance to standard mapstyle[PATCH] Add railway=train_station_entrance to standard preset and mapstyle

Thanks.
How about adding level=* as optional: <combo key="level" text="Storey" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" values_sort="false" /> ?
We could save two lines referencing the chunk name_ref.

Edit: Correct values for level

Last edited 6 months ago by skyper (previous) (diff)

by Claudius, 6 months ago

Using name_ref chunk for the name+ref combination in defaultpreset now

in reply to:  4 comment:5 by Claudius, 6 months ago

Thanks for the name_ref chunk hint. I've updated the patch accordingly to use that.

Replying to skyper:

How about adding level=* as optional: <combo key="level" text="Storey" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" values_sort="false" /> ?

Subway and train station entrances for the very vast majority of cases (except Chongqing of course) are at street level (either embedded in the highway surface or building walls). So using levels for tagging entrances is virtually non-existant as the automatic assumed default level=0 works most of the time. No need to add levels to the preset therefor.

comment:6 by skyper, 5 months ago

Fine, if needed, we can always add optional tags later.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Claudius.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.