You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2016-05-17 03:44:06
- jie chen
- New Member
- Registered: 2016-05-17
- Posts: 1
Render Question: How to remove the road edge at intersection point
Hi,
I'm trying to render osm by myself and I met a problem that I couldn't solve well. I'm hoping I can find some help here.
Below are 2 screen shots of a same location. The left one is from openstreetmap.org while the right one is rendered by my code. You can see as I marked by red circle that the left one doesn't have road edge at the junction point, but the right one does. So how can I remove the edge at junction points? Anyone can share some idea?
Btw, I render the road edge by rendering the "highway" twice. One with wider stroke and the other with thinner stroke.
Thanks!
J Chen
Offline
#2 2016-05-18 17:12:22
- stephan75
- Member
- Registered: 2008-05-28
- Posts: 2,918
Re: Render Question: How to remove the road edge at intersection point
screenshots are NOT visible now.
Offline
#3 2016-05-18 20:35:31
- TZorn
- Member
- From: Leverkusen
- Registered: 2015-06-02
- Posts: 700
Re: Render Question: How to remove the road edge at intersection point
Offline
#4 2016-05-19 18:07:53
- Tordanik
- Moderator

- From: Germany
- Registered: 2008-06-17
- Posts: 2,840
- Website
Re: Render Question: How to remove the road edge at intersection point
OSM maps typically render the casing (the "edge" lines) for all roads on that layer first. So in your case, render all the highways with the wider stroke, then render them again with the thinner stroke. That gets rid of this kind of artifact.
OSM in 3D: OSM2World
Offline