Modify

Opened 18 months ago

Last modified 14 months ago

#23005 new enhancement

[WIP patch] Add preset railway=derail

Reported by: tomasmarklund Owned by: team
Priority: normal Milestone:
Component: Internal preset Version:
Keywords: railway derail Cc:

Description (last modified by gaben)

The tag is is documented on Tag:railway=derail.

There are currently (2023-06-13) 12279 nodes with this tag. See https://taginfo.openstreetmap.org/tags/railway=derail#overview.

It should be placed in presets/transport/railway, above "buffer stop".

Suitable combinations could be (like most of the other railway presets)

  • ref
  • operator

and maybe also

  • railway:derail:local_operated=yes/no
    (inspired by railway:switch:local_operated=yes/no)

I know that there already are 2116 existing derails with tag railway:local_operated=yes, but I guess that they REALLY should be railway:derail:local_operated=yes/no instead?

Attachments (3)

derail.svg (4.4 KB ) - added by tomasmarklund 18 months ago.
Derail icon
derail2.svg (3.1 KB ) - added by tomasmarklund 18 months ago.
Derail icon, better visibility
josm_23005.patch (6.1 KB ) - added by gaben 15 months ago.
initial patch, probably some refinement needed for the icon

Download all attachments as: .zip

Change History (12)

comment:1 by gaben, 18 months ago

Description: modified (diff)
Keywords: railway derail added

I'm not sure about the tagging. A simple preset with an icon is should be fine. Speaking about icon, @tomasmarklund do you have one ready to use?

comment:2 by tomasmarklund, 18 months ago

Ok,leave out the local_operated, but include ref and operator at least.

No, unfortunately I don't have an icon. I guess i could create one though. Are there any "rules for icons" I can read somewhere?

by tomasmarklund, 18 months ago

Attachment: derail.svg added

Derail icon

comment:4 by tomasmarklund, 18 months ago

I added an icon now, see attachments. However, I am not sure how visible it is. A derail is a fairly small feature, and shrinked to 16px doesn't really help :-(

Yes, I forgot earlier: A derail should only be possible to select for nodes. Not ways or relations.

comment:5 by gaben, 18 months ago

Oh, that's a nice icon, although I'm not sure if the derail feature is visible enough.

For testing, you can utilise the Styles/IconTester mappaint style.

comment:6 by tomasmarklund, 18 months ago

I used the "rail.svg" and added the derail feature :-)

I know, that's the problem. If the icon shows a complete section of track, the derail will only be a few pixles at most. And if I would zoom in, it will look like a normal switch :-(

I'll look into the IconTester mappaint style.. tomorrow.

by tomasmarklund, 18 months ago

Attachment: derail2.svg added

Derail icon, better visibility

comment:7 by tomasmarklund, 18 months ago

Another icon attached, this time more visible. Viewed from the side rather than from above.

Real life derail:
https://digitaltmuseum.se/021018061600/sparsparr

by gaben, 15 months ago

Attachment: josm_23005.patch added

initial patch, probably some refinement needed for the icon

comment:8 by gaben, 15 months ago

Summary: Add preset railway=derail[WIP patch] Add preset railway=derail

comment:9 by gaben, 14 months ago

Note to anyone who is going to check the patch; the icon has a viewBox="0 0 15 16", it should be viewBox="0 0 16 16".

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 tomasmarklund.
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.