Skip to content
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

PL - W18, W24, W32, WETCS, We #265

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

Anasmasuris
Copy link

I've added graphics and some basic code to reflect pointers in PL. Those are W18 (station_distant), W24 (wrong_road), W32 with variants, WETCS11, updated WETCS10 and grouped pointers - (W6, W6a, W6b and W7), (W33 and W34), (W10a and W10b), (We10). I also standardized legend in PL section.

https://wiki.openstreetmap.org/wiki/Pl:OpenRailwayMap/Tagging_in_Poland/Pointers

The area of interest with W18 (W19, W20) and W24 is below:
https://openrailwaymap.fly.dev/#view=16.33/52.211138/20.929013&style=signals
image

The area of interest with W32 types is below:
https://openrailwaymap.fly.dev/#view=17.5/53.238623/20.167717&style=signals
image

I added graphics for W19, W20, but I haven't coded them. I hope I didn't make a mess

Anasmasuris and others added 11 commits March 8, 2025 21:28
* Added graphics for W18, W19, W20, W24 pointers
* Added graphics for W32 variants
* Added remaining We pointers
* Added light semaphores for signals having both green (S6-S9) and orange (S10a-S13a) belts
* Standardized legend names in PL section
* Combining common pointers into groups (W6, W10, W33, WETCS)
* Added W32 variants
* Renamed ZTM-MW to proper PL-metro standardized prefix
* Changed possible speed limits at speed pointers
* Added render for W28 signals (R1-R8)
* Changed cases for light signals to better reflect their real shape
* Grouping signals in legend
Copy link
Owner

@hiddewie hiddewie left a comment

Choose a reason for hiding this comment

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

Wow, incredible work, thanks a lot!

Much better than my initial attempt to make sure the wiki is implemented for all the tagged signals in Poland 👍


Unrelated comment: I see some signals around Warsaw (e.g. https://www.openstreetmap.org/node/11369657607) that to not contain railway:signal:main:substitute_signal=PL-PKP:sz or railway:signal:combined:substitute_signal=PL-PKP:sz so they are not picked up as a valid main / combined PL-PKP:s signal

image

@Anasmasuris
Copy link
Author

I had to revise the tagging for signals (being reading the operators railway instructions for the n-th time, to better visualise this xd), but don't worry - I will have those signals changed (being changing from 'combined' to 'main'). But I'm surprised it works

Copy link
Owner

@hiddewie hiddewie left a comment

Choose a reason for hiding this comment

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

I compressed the SVG in all the icons, and pushed some small whitespace formatting changes.

@hiddewie
Copy link
Owner

Ah nodes like https://www.openstreetmap.org/node/9933671564 also work nicely now, I had to update my local database with the recent changes to get some new tagging

image

@hiddewie
Copy link
Owner

Around Łódź Kaliska,
http://localhost:8000/#view=15.88/51.758482/19.430306&style=signals
image

Around Poznań
http://localhost:8000/#view=15.16/52.402514/17.054351&style=signals
image

Super nice 🎉

country: PL
icon:
match: 'railway:signal:speed_limit_distant:speed'
# TODO update signs from https://wiki.openstreetmap.org/wiki/Pl:OpenRailwayMap/Tagging_in_Poland#Tarcza_zwolnić_bieg_D_6
# TODO handle dwarf signals
cases:
- { regex: '^[1-9]0$', value: 'pl/d6-{}', example: 'pl/d6-{70}' }
- { regex: '^([1-9]|1[0-9]|2[0-4])0$', value: 'pl/d6-{}', example: 'pl/d6-{70}' }
Copy link
Owner

@hiddewie hiddewie Mar 11, 2025

Choose a reason for hiding this comment

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

For this one there are only icons for speeds 10-90. So this will fail to render icons for higher speeds.

country: PL
icon:
match: 'railway:signal:speed_limit_distant:speed'
cases:
- { regex: '^([1-9]|1[0-9]|20)0$', value: 'pl/w8-{}', example: 'pl/w8-{60}' }
- { regex: '^([1-9]|1[0-9]|2[0-4])0$', value: 'pl/w8-{}', example: 'pl/w8-{60}' }
Copy link
Owner

Choose a reason for hiding this comment

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

Same as D6: here are only icons for speeds up to 200. So we should add icons for 210-240 as well to make this work correctly

Copy link
Author

Choose a reason for hiding this comment

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

True, I have high resolution ones available on commons.wikimedia (KokoiMatsuchi account)

Copy link
Author

@Anasmasuris Anasmasuris Mar 11, 2025

Choose a reason for hiding this comment

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

https://commons.wikimedia.org/wiki/Category:Diagrams_of_railway_signs_in_Poland

Oh, I thought I made W8s, well, I know what I'll be doing tomorrow

Copy link
Owner

Choose a reason for hiding this comment

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

Can you add all the available icons to the pull request? Then I can compress the SVG and the PR should be good to go.

Copy link
Author

Choose a reason for hiding this comment

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

Added, W8 will be much smaller compared to those (original size of pointers is in mm XD)

@Anasmasuris
Copy link
Author

I added D6, W8 and W27a (updated font) for 10 - 240 (250 for W27a) km/h

* For existing (irl) speed limits (50 - 150 km/h)
Copy link

Choose a reason for hiding this comment

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

I honestly feel like these new icons are a downgrade compared to the old ones, as they're harder to see.

Copy link

Choose a reason for hiding this comment

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

Especially for speeds 110 and above

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.

3 participants