User talk:Radfahrer/Radkarte/Europa

From OpenStreetMap Wiki
Jump to navigation Jump to search

Hallo,

gibt es zum Jahreswechsel oder Anfang 2010 Aussicht auf ein aktuelles Release der Europa-Karte für MapSource. Grüße Bergziege_1969

Hallo Bergziege, ich habe gerade eine aktuelle Version der Europa-Karte hochgeladen. Radfahrer 18:41, 10 January 2010 (UTC)


Hallo Radfahrer,

A few remarks:

- showing tunnels & bridges would be great.

That's on the todo list for a long time. Most other maps use a special kind of layering of map tiles to realize a draw order for ways. I don't like that approach, because it has some compatibility problems. It should be possible also without that approach, but I haven't got it working yet. Radfahrer 18:12, 24 January 2010 (UTC)
--ligfietser 11:59, 28 January 2010 (UTC) : I've tried to edit your line & overlays style files a bit and modified the TYP file, and maybe this will do the trick:
First in the TYP file:
modify road type 0x12 (tunnel for railways) with two black horizontal lines separated by a gap, of 8 pix in lenght, 1 pix wide (on top and on the bottomline)
1 common color, transp. bitmap 10 pix height, something like this:
___ ___
___ ___


Added an extra road type for rendering bridges, I used type 0x1a (ferry) which seemed available.
Same as tunnel, only no gaps, just a solid black line at the first and last line of 1 pix.
Second step:
In the layer files, I added some extra lines for rendering tunnels & bridges on top of the existing roads.
I saw there are already a few like 0x011a: 0x1a, 0x01 (bridge with ncn) or 0x112 (tunnel with ncn)
but not for cycleways (0x05) so I added a line 0x051a (cycleway 0x05 with bridge 0x1a) and 0x0512 (with tunnel 12).
You can do the same for other roads (0x06, 0x07 etc). I noticed type 0x12 (tunnel) is already in use to render railway+bridge. Changed those 0x12 into 0x2a1a and added two extra types to the layers style file (0x2a1a and 0x2a12) to render railways with bridges or tunnels.
Third, I edited the lines style, I only tested it with the statements for cycleways, but you can do this for every road type.
For each type of cycleway I added a line for a tunnel (tunnel=yes covers almost all tunnels on osm) and for a bridge (every tag with bridge unless bridge=no)
I'm not sure if it's a bit messy, maybe it could be more efficiently done with complexer statements but Im not a programmer and dont know how to do this in mkgmap.


highway=cycleway & (ncn=yes | tcn=yes | rcn=yes | lcn=yes) { set bicycle=yes; set motorcar=yes; set motorcycle=yes; }
highway=cycleway & tunnel=yes & (ncn_from_relation=yes | tcn_from_relation=yes | rcn_from_relation=yes | lcn_from_relation=yes) [0x0512 level 1]
highway=cycleway & (bridge=* & bridge!=no) & (ncn_from_relation=yes | tcn_from_relation=yes | rcn_from_relation=yes | lcn_from_relation=yes) [0x051a level 1]
highway=cycleway & (ncn_from_relation=yes | tcn_from_relation=yes | rcn_from_relation=yes | lcn_from_relation=yes) [0x05 level 1]

highway=cycleway & tunnel=yes & ncn=yes [0x0112 road_class=3 road_speed=2 level 5 continue]
highway=cycleway & (bridge=* & bridge!=no) & ncn=yes [0x011a road_class=3 road_speed=2 level 5 continue]
highway=cycleway & ncn=yes [0x01 road_class=3 road_speed=2 level 5 continue]
highway=cycleway & tunnel=yes & tcn=yes [0x0212 road_class=2 road_speed=1 level 3 continue]
highway=cycleway & (bridge=* & bridge!=no) & tcn=yes [0x021a road_class=2 road_speed=1 level 3 continue]
highway=cycleway & tcn=yes [0x02 road_class=2 road_speed=1 level 3 continue]

highway=cycleway & tunnel=yes & rcn=yes [0x0312 road_class=3 road_speed=2 level 3 continue]
highway=cycleway & (bridge=* & bridge!=no) & rcn=yes [0x031a road_class=3 road_speed=2 level 3 continue]
highway=cycleway & rcn=yes [0x03 road_class=3 road_speed=2 level 3 continue]

highway=cycleway & tunnel=yes & lcn=yes [0x0412 road_class=3 road_speed=2 level 2 continue]
highway=cycleway & (bridge=* & bridge!=no) & lcn=yes [0x041a road_class=3 road_speed=2 level 2 continue]
highway=cycleway & lcn=yes [0x04 road_class=3 road_speed=2 level 2 continue]

highway=cycleway & tunnel=yes { set access=yes; set bicycle=yes; set motorcar=yes; set motorcycle=yes; } [0x0512 road_class=2 road_speed=2 level 1]
highway=cycleway & (bridge=* & bridge!=no) { set access=yes; set bicycle=yes; set motorcar=yes; set motorcycle=yes; } [0x051a road_class=2 road_speed=2 level 1]
highway=cycleway { set access=yes; set bicycle=yes; set motorcar=yes; set motorcycle=yes; } [0x05 road_class=2 road_speed=2 level 1]
I've compiled the map again and it looks good, also the routing seems fine. See a screenshot of this area [1] here:[2] --ligfietser 12:47, 28 January 2010 (UTC)
This looks nice. Currently I'm working on using different roads IDs for different resolutions. This way the roads can scale with the level. Looks very nice. As soon as I have that under control I'll start implementing your idea. Radfahrer 23:03, 31 January 2010 (UTC)

- showing names of polygons; I've tried to compile a small section of the NL's with the latest mkgmap, and then the names of polygons appeared, however your style files seemed not compatible with the latest mkgmap versions (r1498) and all the polygons didn't show up.

My style files are not compatible with the stock mkgmap, because they require some patches. You can get a compiled and patched mkgmap from the link in the developer section of the Radkarte web page. Or pull the patches from launchpad and apply them for yourself. For some polygons I have already added their names. They will show up in the Europa Radkarte as soon as I generate a new version (which will take a while). Radfahrer 18:12, 24 January 2010 (UTC)

- showing sea polygons

Yes, it is also on the todo list. Unfortunately the Geofabrik extracts that I use don't work well with the sea polygons generation mechanism of mkgmap, so it is a lot of work to add the sea polygons. Radfahrer 18:12, 24 January 2010 (UTC)

- heather fields (natural=heath)

That's already done (in the German version, that is). Radfahrer 18:12, 24 January 2010 (UTC)

- roundabouts of unclassified roads appear as bigger roads/yellow (tertiary/secundairy) on the map.

That's a Garmin pecularity. There is only one line type for roundabouts, so you can't distinguish between different road types with roundabouts. Radfahrer 18:12, 24 January 2010 (UTC)
I could render those roundabouts with the original road type without problems (just changing the type 0x0c, like you seem to do with the ncn/rcn/tcn/lcn roads)
For instance the primary roundabouts i gave 0x06 and this worked too. --ligfietser 11:59, 28 January 2010 (UTC)
Yes, it's no problem rendering them. The problem is that during routing you won't get the special roundabout handling (n-th exit) for them. One could argue whether this justifies the bad visual. On the other hand the visual isn't that bad. Regarding the ?cn roads: yes, those are rendered in a different style, but it's only roads that are not part of a ?cn relation, but have the ?cn key set at the road itself. So its a rare case.
There is another approach to that problem: make the 0x0c invisible using the TYP file and then overlay the "proper" way on top. This would work mostly, only if you do a mouseover you will see that there are two ways on top of each other. For normal roads I don't like that, but for roundabouts it might be justified. I'll think about it. Radfahrer 23:03, 31 January 2010 (UTC)

- distinction of landuse=farmyard vs farm(land) for instance showing farmyards same as residential areas?

That's a good idea. I will implement that. Radfahrer 18:12, 24 January 2010 (UTC)

Cheers, Minko

Have fun, Radfahrer 18:12, 24 January 2010 (UTC)

Um Welche Fehler handelt es sich denn? Wo kann man Konturlinien für Europa herbekommen?


Hallo Radfahrer,

sehr schade, dass Du mit der Karte nicht mehr weitermachts. Das Kartenbild ist viel besser als das der Velokarte! Vielleicht hast Du ja doch einmal Zeit und Lust einen Update der Europakarte (bitte mit Höhenlinien!) zu erstellen. Danke! --Verzascat 08:19, 24 March 2011 (UTC)