[style] Change rendering of abandoned and disused railways #9758

Open
IdeallyGrey wants to merge 4 commits from IdeallyGrey/swap-abandoned-disused-rail-rendering into master
IdeallyGrey commented 2024-11-26 22:31:28 +00:00 (Migrated from github.com)

This PR swaps the rendering of railway=abandoned and railway=disused to better reflect the current state of railways in the map. According to the OSM wiki abandoned tracks are physically present but no longer used, while disused tracks were once present but since dismantled. Currently, OM renders disused in a more prominent style than abandoned ones, even though they are no longer there.
By swapping them the real situation will better be represented.
Closes #8662

This PR swaps the rendering of `railway=abandoned` and `railway=disused` to better reflect the current state of railways in the map. According to the OSM wiki `abandoned` tracks are physically present but no longer used, while `disused` tracks were once present but since dismantled. Currently, OM renders `disused` in a more prominent style than `abandoned` ones, even though they are no longer there. By swapping them the real situation will better be represented. Closes #8662
map-per reviewed 2024-11-29 07:24:37 +00:00
map-per left a comment
Contributor

The style change looks good (the current behavior of displaying abandoned more prominent than disused doesn't make sense)

I would also swap the bridge casing style. It's defined in the same file with [railway=abandoned][bridge?]::bridgewhite and [railway=abandoned][bridge?]::bridgeblack.

The style change looks good (the current behavior of displaying abandoned more prominent than disused doesn't make sense) I would also swap the bridge casing style. It's defined in the same file with [railway=abandoned][bridge?]::bridgewhite and [railway=abandoned][bridge?]::bridgeblack.
pastk reviewed 2024-12-06 17:15:52 +00:00
@ -399,3 +398,3 @@
railway|abandoned|bridge;[railway=abandoned][bridge?];;name;int_name;298;
railway|disused|bridge;[railway=disused][bridge?];;name;int_name;298;
man_made|lighthouse;299;
deprecated:highway|path|demanding_mountain_hiking:04.2024;[highway=path][sac_scale=demanding_mountain_hiking];x;name;int_name;300;highway|path|difficult

actually a railway=abandoned bridge=yes is not a mismapping, its a legit situation, e.g. rails were removed but bridge is still there with some sleepers, posts and maybe other remnants left...
according to https://taginfo.openstreetmap.org/tags/railway=abandoned#combinations there are 37k abandoned railway bridges mapped (9% of all abandoned railways)

actually a `railway=abandoned bridge=yes` is not a mismapping, its a legit situation, e.g. rails were removed but bridge is still there with some sleepers, posts and maybe other remnants left... according to https://taginfo.openstreetmap.org/tags/railway=abandoned#combinations there are 37k abandoned railway bridges mapped (9% of all abandoned railways)

Ideally we'd have separate rendering styles for abandoned and disused bridges which would be similar to abandoned and disused lines respectively. Then we'll need to add translations into types_strings.txt also.

If you feel its too much to do then I think its fine to combine both of them into a single style, e.g.
railway|abandoned|bridge;[railway=abandoned][bridge?],[railway=disused][bridge?];;name;int_name;298;.
And they would use existing translations for railway|abandoned|bridge.

Ideally we'd have separate rendering styles for abandoned and disused bridges which would be similar to abandoned and disused lines respectively. Then we'll need to add translations into `types_strings.txt` also. If you feel its too much to do then I think its fine to combine both of them into a single style, e.g. `railway|abandoned|bridge;[railway=abandoned][bridge?],[railway=disused][bridge?];;name;int_name;298;`. And they would use existing translations for `railway|abandoned|bridge`.

should be visible from z13-

should be visible from z13-

from z16- it becomes thicker

from z16- it becomes thicker
pastk reviewed 2024-12-30 07:50:45 +00:00
@ -399,3 +398,3 @@
railway|abandoned|bridge;[railway=abandoned][bridge?];;name;int_name;298;
railway|disused|bridge;[railway=disused][bridge?];;name;int_name;298;
man_made|lighthouse;299;
deprecated:highway|path|demanding_mountain_hiking:04.2024;[highway=path][sac_scale=demanding_mountain_hiking];x;name;int_name;300;highway|path|difficult

Please change it to railway|disused|bridge;[railway=disused][bridge?],[railway=abandoned][bridge?];;name;int_name;298;

Please change it to `railway|disused|bridge;[railway=disused][bridge?],[railway=abandoned][bridge?];;name;int_name;298;`
railway|disused|tunnel;[railway=disused][tunnel?],[railway=abandoned][tunnel?];;name;int_name;400;
```suggestion railway|disused|tunnel;[railway=disused][tunnel?],[railway=abandoned][tunnel?];;name;int_name;400; ```
This repo is archived. You cannot comment on pull requests.
No reviewers
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#9758
No description provided.