gravitystorm / openstreetmap-carto

A general-purpose OpenStreetMap mapnik style, in CartoCSS
Other
1.51k stars 813 forks source link

Make railways lighter, minor highways less prominent at z8-10 #3538

Closed Tomasz-W closed 4 years ago

Tomasz-W commented 5 years ago

Zoom levels 8, 9 and 10 looks like a unreadable colorful spagetti in some places at the moment:

Examples: https://www.openstreetmap.org//#map=8/49.246/15.430 https://www.openstreetmap.org//#map=9/51.0811/5.8173 https://www.openstreetmap.org//#map=10/50.2498/19.2906 https://www.openstreetmap.org//#map=10/53.5550/-2.0627

Problems to solve:

I believe it could be cleaned similar as z13-14 was in https://github.com/gravitystorm/openstreetmap-carto/pull/3467.

What do you think about it? Do you see a problem there, too?

kocio-pl commented 5 years ago

I would change the title to be more clear that it's about lines.

screenshot_2018-11-29 openstreetmap

vholten commented 5 years ago

During my work on the admin boundaries in issue #3526, I also noticed that on z8 and z9 county borders were too thin and railways too prominent. Therefore I made country borders on these zoom levels thicker in #3526.

I also tested making railways lighter gray on z8 and z9 and I found it looked better. I didn't show these lighter railways in #3526 because I didn't want to change too many things at the same time. It's true that on z9 and higher there are gray roads as well so railways can't be made too light.

Adamant36 commented 5 years ago

I dont think protected areas borders should be thicker or brighter where the they join/overlap. It makes the map look really scrued up. For instance, in northern California it looks horrible and inconsistant.

kocio-pl commented 5 years ago

The question is how to fix it...

vholten commented 5 years ago

Protected area borders have shading on the inside. So borders between adjacent areas become twice as thick (shading on both sides). That could be fixed by shading that is centered on the border instead of inside.

kocio-pl commented 5 years ago

That's also what I was suspecting. Could you prepare a PR fixing that?

Adamant36 commented 5 years ago

Whats the reason for the borders being shaded in the first place? Is there a special reason why protected areas need to have places where they meet more visible compared to other landuse areas that just have a normal line where they meet?

kocio-pl commented 5 years ago

These are typically so big, that once you zoom in, it might be hard to know which part is inside and outside the area. Shading gives you a slight hint when the border label is not visible:

screenshot_2018-11-30 openstreetmap 2

Adamant36 commented 5 years ago

That makes sense. It makes things convoluted at higher zoom levels though. Like these places in northern California at z10 and z11. protected areas boundaries z11 protected areas boundaries z10 There's also places like here on z11 where it creates a weird glowing border effect in only some places. Maybe its a bug or miss-tagging, I really don't know, but either way I've heard a lot of complaints about it and its something I've been meaning to open an issue about for awhile now. Maybe they could not have the shading at zooms higher then z16 or something. It seems to stop around there. protected areas boundaries glowing z11 glowing border z13

matkoniecz commented 5 years ago

where it creates a weird glowing border effect in only some places

Can you mark this places?

matkoniecz commented 5 years ago

too prominent railways

I tested making them narrower/lighter and it resulted in many people being completely unable to distinguish them from minor roads (I was still able to do that, a small minority was also able but others not).

I considered either keeping them in current state or outright removing them as I had no idea for styling other than "narrow black/gray line".

matkoniecz commented 5 years ago

Looking at it again - it seems that railway tracks at z8 may be considered for removal or for making them lighter, gray roads are not present at z8.

Adamant36 commented 5 years ago

@matkoniecz, here's links to a couple of the places where it does it.

https://www.openstreetmap.org/#map=13/39.4740/-122.7755 https://www.openstreetmap.org/#map=11/39.4932/-122.7214 https://www.openstreetmap.org/#map=12/39.9238/-122.9981 https://www.openstreetmap.org/#map=12/39.9317/-123.0146

I don't know if "glowing" is the right word, but there's definitely places where the borders are a lot darker green then others. There doesn't seem to be a difference between the darker and lighter places tagging or distance wise. It just looks bad and inconsistent.

matkoniecz commented 5 years ago

I am pretty sure that it is caused by two green lines merging together - so it ends as a single strongly green line.

Merging may happen in at least two ways

A similar effect is visible for railway lines with one track (fainter) or multiple tracks (stronger) on low zoom levels.

Adamant36 commented 5 years ago

Hhhhmmm makes sense. Something should still be done to tone it down though.

Adamant36 commented 5 years ago

@matkoniecz, what about somewhere like this where its a single line but still darker? If its because of the weird nature reserve/national park co tagging, wouldn't it just prioritize one over the other, instead of rendering them both on top of each other since its the same way?

https://www.openstreetmap.org/#map=14/40.5275/-121.2506

kocio-pl commented 5 years ago

On z8-z9 it can be changed, since the area is rendered with green overlay. On z10+ I would leave it until we find something better.

matkoniecz commented 5 years ago

@Adamant36 Linked location has two lines close to each other - zoom in (say at https://www.openstreetmap.org/#map=19/40.54189/-121.27477 ) to see names - there are at least two protected areas here sharing borders.

Adamant36 commented 5 years ago

Hhhhmmm weird. If you go to edit it looks like only one line and you can't separate it. So....Must be an optical illusion or something.

matkoniecz commented 5 years ago

Note that https://www.openstreetmap.org/way/417600197 is a member of three relations:

All three are rendered.

(and on top of that has boundary=national_park tag (I opened https://www.openstreetmap.org/note/1605307 as I suspected the last one is a tagging error)).

Tomasz-W commented 5 years ago

Old 'thinner nature reserve borders' PR to compare -> https://github.com/gravitystorm/openstreetmap-carto/pull/2978

vholten commented 5 years ago

Here are some tests with lighter railways on z8 and z9. The idea is to fade in railways while zooming in,

z8 current: z8osm

z8 with lighter railways: z8rail

z8 with lighter railways and thicker gray borders: z8railborders

z9 current: z9osm

z9 with lighter railways: z9rail

z9 with lighter railways and thicker gray borders: z9railborders

Tomasz-W commented 5 years ago

@vholten Looks very promising. I would also consider dropping rendering of smaller cities on z9.

kocio-pl commented 5 years ago

I don't feel it helps. Maybe there should be no small grey roads to make lighter railways visible.

sommerluk commented 5 years ago

Dropping placenames at z9? Yet now there are too few of them at places like https://www.openstreetmap.org/#map=9/-22.4694/20.2670

Adamant36 commented 5 years ago

Id be in favor of dropping grey roads at some zoom levels. Even in more rural areas they can be distracting and hinder viewing of other more important things.

For me at z9 its about viewing major roads like freeways, major water bodies/ways, and landuse. You could even almost get rid of them at z10 and id still probably be perfectly fine with it.

vholten commented 5 years ago

Showing gray roads at a later zoom level could help. Currently, secondary roads appear as gray roads on z9 and tertiary roads on z10. I have now changed these to appear one level later, i.e., secondary roads at z10 and tertiary ones at z11. In addition, I have slightly reduced the thickness of the colored roads.

z9 current: z9osm

z9 new: z9railbordersroads

matkoniecz commented 5 years ago

Have you checked effects in more rural regions?

vholten commented 5 years ago

Rural area, z9 current: z9rural_osm

z9 new: z9rural_railbordersroads

jeisenbe commented 5 years ago

This could have a bad result in developing countries.

Indonesia has lots of primary roads on Java, but most other islands only have one primary road and a few secondary. And main islands are larger than the average European country.

The USA and Canada also have large, sparsely-populated areas with just a few primary and secondary roads. I’d suggest testing in Wyoming, Montana, Alberta or British Columbia.

I’ll try to test this change in Australia today On Mon, Dec 3, 2018 at 6:46 AM vholten notifications@github.com wrote:

Rural area, z9 current: [image: z9rural_osm] https://user-images.githubusercontent.com/5209216/49345356-f10b5300-f683-11e8-9426-e0dc8c1f9793.png

z9 new: [image: z9rural_railbordersroads] https://user-images.githubusercontent.com/5209216/49345359-f7013400-f683-11e8-98af-0c92b8b6d5d2.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gravitystorm/openstreetmap-carto/issues/3538#issuecomment-443545168, or mute the thread https://github.com/notifications/unsubscribe-auth/AoxshJWdTy6No1q5epYQAPfTyPgIrNohks5u1Eo5gaJpZM4Y6XnN .

Adamant36 commented 5 years ago

I think it would have benefit even in sparsely mapped places. Especially as more roads, other main infrastructure, and major waterways get mapped. For instance, where I mainly map Northern California, there isn't much mapped there yet, but the grey roads are still a distraction and don't really add anything at z8-z10.

Its enough to know that i5 is the main road going north/south and also to see the other major freeways. But the grey roads, although there isn't many, get in the way of viewing the major waterways. Plus there's the grey mess in the middle of Redding at z9. For the smaller town Shasta lake just north of there you can't even see the roads at z9. So it wouldn't effect anything there or really anything south either.

In a lot of places in California, Z9/z10 covers the whole east west span of it and also some of Nevada. Its completely unnecessary to display minor roads at that point. Especially since they don't have road names. Its to abstract to ascertain anything from them.

I travel around that area all the time and I can't even tell which roads they are from looking at the map on z9. Like the two grey roads going west between Anderson and Red Bluff for instance. I'm definitely not going to do any rural drive planning off it at that zoom level.

That mostly goes for z9 though. I still haven't decided about z10.

jeisenbe commented 5 years ago

@Adamant36, are you from Shasta county? I'm from Siskiyou.

[Siskiyou is just north of Shasta, and actually contains Mount Shasta (Stratovolcano, 4322 meters elevation with 2979 m of prominence, 96th in the world) for which Shasta county is named.]

Re: https://github.com/gravitystorm/openstreetmap-carto/issues/3538#issuecomment-443127957 The places linked look odd mainly because the Wilderness areas have been marked as separate from the surrounding National Forest, so there are two "nature_reserve" boundaries right next to each other. I think this tagging is incorrect; National Wilderness areas were always shown as being contained within a US National Forest on old USGS maps, and I don't think this has changed. So the Mount Shasta wilderness should be considered part of the surrounding National Forest, for example. This may be a problem related to the lack of rendering for boundary=protected_area in the past leading to the use of nature_reserve inappropriately.

I'll ask about this on the US-talk email list.

jeisenbe commented 5 years ago

I've checked out some rural areas, and I don't think it is a good idea to remove secondary highways from z9.

Here's Darwin, Australia: z9, Current master: darwin-z9-master

z9 Without secondary highways: darwin-z9-no-secondary

Milingimbi (East of Darwin) z10 current milingimbi-z10-master

z10 without tertiary highways milingimbi-z10-without-tertiary

The map is going to be pretty blank in the Northern Territory without these highways.

Baliem Valley, Papua, Indonesia: z9 current master baliem-z9-master

z9 without secondary - the towns are disconnected (The secondary highways are unpaved, gravel roads. But they are the only roads) baliem-z9-no-secondary

z10 Current master baliem-z10-master

z10 without tertiary highways

Rogue Valley and Siskiyou County, Oregon/California z9 Current: siskiyous-z9-master Several of the secondary highways shown are rather important; consider the highway that connects the towns of Ashland and Klamath falls. Also the road that connects Yreka with the trunk highway to the southeast, and the road looping south through the Applegate river valley between Medford and Grants Pass. These are tagged as secondary because they are county roads rather than State Highways.

matkoniecz commented 5 years ago

Thanks for making review of also remote areas. (small caveat for "These are tagged as secondary because they are county roads rather than State Highways." - OSM is not obliged to blindly follow official classification, there is no reason why county-operated road can not be marked as highway=primary)

Adamant36 commented 5 years ago

@jeisenbe, what do you think the percent of roads are mapped and mapped properly in a place like Darwin? I know in California a lot of roads might be mapped, but a lot of them classified wrong or don't really exist due to being added with a pretty inaccurate import that hasn't really been fixed yet. So maybe it will be sparse in some areas there for a while, but I'm pretty sure it will improve as people upgrade the roads to their proper classification and implement things like @matkoniecz suggests. Maybe not rendering at z9 will help a little.

In places like Baliem Valley, if those are the only roads connecting the two towns its debatable if they are even secondary or should upgraded to primary. Same goes for Bokondini and Kobakma. As they all seem to be major routes linking largeish towns.

dieterdreist commented 5 years ago

sent from a phone

On 4. Dec 2018, at 14:58, Mateusz Konieczny notifications@github.com wrote:

"These are tagged as secondary because they are county roads rather than State Highways." - OSM is not obliged to blindly follow official classification, there is no reason why county-operated road can not be marked as highway=primary)

I agree that being a county road might not necessarily imply it is a secondary road, but I also second the observation that secondary roads should be kept on z8-10 because they are sufficiently important for the network structure, even more in remote areas with no primary roads nearby.

Adamant36 commented 5 years ago

I say keep them on z10 but get rid of them on z9. You can hardly tell they are there anyway. Especially next to rivers. That or make them more visible at least.

I still think though that z9 is too zoomed out for village to village route planning yet. Especially if they are close together. The cropped images of Bokondini and Kobakma are a little misleading because it gives the impression that's all the person would be looking at. With a full map though view of the area at z9 though its a couple hundred miles (probably more) that impasses 14 villages, several large mountain ranges/nature reserves, and an ocean on the bottom right side. That's just the zoom level for trying to figure out which road I want to take from point A to point B. Even the visible yellow roads are insignificant at that level. Its good enough to know that "Oh look, Mula is a little east of Karubaga." There's no reason people can't zoom into z10 to found out how exactly they are connected by the road network and in my opinion they should.

Otherwise, start a meta issue and decide what the purpose of each zoom level is once and for all. There's no online map though that I can think of, Google maps included, that starts rendering those types of roads that far out and its usually highly dependent on the place.

Personally, I think its much better to forgo map clutter and bad rendering in a bunch of places at the expensive of a few places, then it is to keep rendering something based on the example of a small number of places that would be negatively effected when people can easily just zoom in one more level to see what they need to.

(Karubaga at z9 un-cropped to show how the cropped images are misleading) karubaga z9 uncropped

jeisenbe commented 5 years ago

I crop images because a 600x400pixel png is 70 to 90kb, while the 1863x839 image you just shared was 588kb, and I pay per megabyte. Also, I do not usually look at OSM at full screen size (limited to 1280 pixels in my case, at any rate), but usually at about 800x600. This is also closer to the size of the map shown on standard-resolution smart phones.

In the USA, only US highways are clearly tagged as primary, and State highways are often tagged as secondary, with county roads as tertiary. See https://wiki.openstreetmap.org/wiki/United_States_Road_Classification

This proposed change will lead to very few roads rendered in the rural parts of California, Oregon and Washington at z9 and z10. I suspect the same is true in Canada and Russia, an I've shown this to be the case in rural Australia as well.

On 12/5/18, Adamant36 notifications@github.com wrote:

I say keep them on z10 but get rid of them on z9. You can hardly tell they are there anyway. Especially next to rivers. That or make them more visible at least.

I still think though that z9 is too zoomed out for village to village route planning yet. Especially if they are close together. The cropped images of Bokondini and Kobakma are a little misleading because it gives the impression that's all the person would be looking at. With a full map though view of the area at z9 though its a couple hundred miles (probably more) that impasses 14 villages, several large mountain ranges/nature reserves, and an ocean on the bottom right side. That's just the zoom level for trying to figure out which road I want to take from point A to point B. Even the visible yellow roads are insignificant at that level. Its good enough to know that "Oh look, Mula is a little east of Karubaga." There's no reason people can't zoom into z10 to found out how exactly they are connected by the road network and in my opinion they should.

Otherwise, start a meta issue and decide what the purpose of each zoom level is once and for all. There's no online map though that I can think of, Google maps included, that starts rendering those types of roads that far out and its usually highly dependent on the place.

Personally, I think its much better to forgo map clutter and bad rendering in a bunch of places at the expensive of a few places, then it is to keep rendering something based on the example of a small number of places that would be negatively effected when people can easily just zoom in one more level to see what they need to.

(Karubaga at z9 un-cropped to show how the cropped images are misleading) karubaga z9
uncropped

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/gravitystorm/openstreetmap-carto/issues/3538#issuecomment-444379405

Adamant36 commented 5 years ago

I wasnt trying to insenuate that you were cropping the photos to make them look missleading. So I apologize if it sounded that way.

I just think seeing the surrounding area gives it needed context. Plus, its how it would look to a mapper on a computer. One of the main audiences for the style. It might be benificial to keep the roads for the viewing of people on mobile, but I am constantly reminded by people with more clout then me on the various OSM related projects and sites that the main page is not meant to be for mobile users and therefore will never be mobile friendly. So it shouldnt be a factor in this decisions. Although personally, I wish it could be.

As I have said, yes a lot of roads in rural areas would disapear on z9, but its just not the zoom level for it. Its not a good zoom level for finding a routing path between towns and renderings roads in grey at that level causes problems with viewing other things like rivers. I have no issue with keeping them at z10. There's no reason people cant zoom in one more level. Its a small price for better rendering. Its a balance. Otherwise, your saying z9 should look bad because its unfair to expect people to use z10 instead. When you have no proof z9 is even being used for routing purposes (it definently doesnt serve a purpose to mappers to show the grey roads at z9). The roads arent "disapearing" either. They are just going down a zoom level where its easier to view them and they dont conflict other things.

dieterdreist commented 5 years ago

Am Mi., 5. Dez. 2018 um 07:55 Uhr schrieb Adamant36 < notifications@github.com>:

. That or make them more visible at least.

+1, according to the background they are not very visible or hardly visible at all currently.

jeisenbe commented 5 years ago

I've tested some renderings in Hawaii, Wales, Northern Ireland,and Delaware. The first two have some areas that lack secondary highways, and in Hawaii sometimes the main coastal highway is only tagged as tertiary. But in Northern Ireland and Delaware (especially the later) it would be nice to remove tertiary highways from z10.

It looks like we have a problem with different standards for the different highway classifications. In Hawaii, Indonesia, parts of the West Coast of the USA and in many developing countries it is common to reserve highway=primary for roads between cities or at least between major towns, while in northern Europe it seems common that most towns are connected by highway=trunk, and even many villages are on a highway=primary. Most villages have at least a highway=secondary.

But in Indonesia and Hawaii, many towns (>10,000 people) have only a secondary or tertiary highway under the current system.

I'm willing to talk about this with the US Tagging list (unfortunately there is no active list for Indonesia), but I don't know if USA mappers are interested in using highway=trunk instead of highway=primary for most US highways and major state highways, so that highway=primary can be used for frequently.

Oahu to Maui, current z9: oahu-maui-z9-current

z9 without secondary highways:

Maui z10, current maui-z10-current

z10, no tertiary

Oahu z10, current z10-oahu-current

Hawaii (Island), current z9: hawaii-z9-current

z9 without secondary:

Hawaii, z10 n-hawaii-z10-current

z10 without tertiary

jeisenbe commented 5 years ago

Wales, z8 - this will not change wales-z8

Northern Wales, z9 Before n-wales-z9-current

Without secondary highways

Pwllheli z10 current pwllheli-z10-current

z12 - yes, there are roads and villages here z12-pwllheli

Southern Wales, z9 current s-wales-z9-current

Without secondary highways s-wales-z9-no-secondary

Swansea z10 current swansea-z10-current

Without tertiary z10-swansea-no-tertiary

z12 - to show villages and tertiary roads clearly z12-sw-swansea

jeisenbe commented 5 years ago

Northern Ireland has a large number of trunk roads, which connect most of the towns. There are a couple of places where removing secondary roads at z9 might be a problem, but removing tertiary from z10 will not be harmful in this area.

Northern Ireland, z8

z9 Current n-ireland-z9-current

Without secondary n-ireland-z9-no-secondary

Derry z10 Current derry-z10-current Without tertiary derry-z10-no-tertiary

Enniskillen z10 Current enniskillen-z10-current Without tertiary enniskillen-z10-no-tertiary

jeisenbe commented 5 years ago

Delaware has many roads tagged at highway=trunk connecting the main towns. It looks like a few places are tagged as villages that might actually qualify as towns in the southwest corner? But there is certainly no problem with removing secondary roads here, and hiding tertiary roads on z10 will look nice in Delaware:

z10 before s-delaware-z10-current

z10 without tertiary s-delaware-z10-no-tertiary

Adamant36 commented 5 years ago

@jeisenbe, there's a page on the wiki about USA road tagging and it seems like there was any agreement reached as to how it should be. So I'm not sure your statement about them using highway=trunk instead of highway=primary for most US highways and major state highways necessarily holds true. There's wide variance here depending on the state and the whims of the mappers. A lot of it probably has to do with lack of education about road classifications (most people I've talked to about the subject don't even know they exist or that something like urban planning is a thing). Plus, people have a major tendency to re-tagged things that are already tagged correctly based on their whim anyway.

Also, the TIGER import screwed most of the roads up here a while ago and largely hasn't been fixed. It made a lot of roads more minor then they should have been and wrongly tagged a large amount of track/service roads as residential.

So I don't think we should use America or reading into it as an example of why to go through with idea. It should be based on if things look better or not in those areas, but not on the theoretical preferences of the mappers here. Although, its still worth bringing up in the USA talk list anyway.

Adamant36 commented 5 years ago

@jeisenbe, also just for clarification are you against this road change completely, just with certain road types, or? Further, have put any thought or done any tests on the suggesting made by and Dieterdreist just to make the roads more visible instead? I'm not that up on how road rendering works, but I might be into just making them easier to see instead of getting rid of them.

I'd like to see test renderings of both to compare the options though. So if you want to forgo disappearing roads for now, since we all essentially get what it entitles, and work making them more visible instead that would be good. Its pretty obvious at this point that some places would benefit from them being removed and some wouldn't.

kocio-pl commented 5 years ago

Anybody interested in fixing protected area borders on z8-z9?

Tomasz-W commented 5 years ago

I think we should focus on original propositions of this ticket and eventually come back to dropping tertiary roads on z10 at the end (examples above shown that dropping secondary roads on z9 is a bad idea).

vholten commented 5 years ago

I've experimented more with making railways less prominent. On z8 this can be done easily: there are no gray roads, so there is no possible confusion between railways and roads.

On z9, secondary roads are shown in gray. If railways are made lighter, it becomes harder to distinguish secondary roads from railways. A possible solution is to remove secondary roads from z9, but this is controversial. Another solution is to make secondary roads a bit lighter as well.

Here I show the result of the following changes on z9:

z9 before: z9osm

z9 after: z9preview2

Tomasz-W commented 5 years ago

Surely it's an improvement, but I have some remarks to consider: