Biểu trưng OpenStreetMap OpenStreetMap

An Osmarender quirk

Do stark đăng vào 31 tháng 05 năm 2009 bằng English.

I was trying to add layer= attributes to the ramps in this (crazy) highway junction and later went back to check how it rendered and found that osmarender seems to draw the layer=-1 roads strangely when they hit the parkland underneath.

It draws the parkland over the top of the roads -- is that intended? What is the best practice for marking these roads and parkland? The roads are in a trench and the parkland is a whole area which is defined, i believe by law.

In general I suppose part of the question is how should trenches that aren't tunnels be marked. The area of land they're in doesn't cover the roadway, so I would expect it to be rendered like a regular road.

osm.org/?lat=45.4689&lon=-73.60218&zoom=17&layers=0B00FTF

Vị trí: Le Sud-Ouest, Montreal, Urban agglomeration of Montreal, Montreal (administrative region), Quebec, Canada
Biểu tượng thư điện tử Biểu tượng Bluesky Biểu tượng Facebook Biểu tượng LinkedIn Biểu tượng Mastodon Biểu tượng Telegram Biểu tượng X

Thảo luận

Bình luận của chillly vào 31 tháng 05 năm 2009 lúc 20:58

The quirk seems to have disappeared now, but looking at the complex junction there are no bridge tags. I think these would help to make it clear which piece of road is above another.

A trench that carries a road or railway is known as a cutting and is tagged as cutting=yes. I'm not sure how it renders.

Bình luận của stark vào 2 tháng 06 năm 2009 lúc 10:34

Yeah, sorry, I moved the points where the cutting started to not overlap the area.

Looking around i don't see bridge=yes being used for highway junctions generally. It seems unnecessary for people to understand the junction as long as the roads are labeled with layer= properly.

Actually I was wondering in a lot of places whether to use bridge=yes for the overpass or tunnel=yes for the underpass at intersections. I'm not sure which rendering I prefer.

Bình luận của stark vào 2 tháng 06 năm 2009 lúc 10:35

And incidentally in this junction *all* the roads would be labeled with bridge=yes (excluding the roads in the cutting past the cliff)

Bình luận của LivingWithDragons vào 2 tháng 06 năm 2009 lúc 22:14

I understand that everything is layer 0 by default, including the park. So you perhaps need to make the park layer -5.

If you do something that could be considered unusal (think by a beginner, not seeing everything so they could see a part of the park with no junction), then add a note to the way to explain why the tagging is as you've done.

Bình luận của stark vào 2 tháng 06 năm 2009 lúc 23:12

This suggestion seems like solving a rendering bug by using tagging which is specifically forbidden.

I could understand if osmarenderer implicitly assumed either cutting=yes or tunnel=yes but it seems not having a road disappear entirely seems like a bug.

I suppose it's debatable. I can think of features that perhaps you would expect to completely hide lower level roads. Obviously higher level roads for instance. Perhaps buildings? But surely not natural=cliff?

Bình luận của stark vào 2 tháng 06 năm 2009 lúc 23:13

We pretend there isn't a random extra "not" in that second paragraph.

Đăng nhập để nhận xét