User talk:Alex McKee/Postcodes

From OpenStreetMap Wiki
Jump to: navigation, search

Hi! As far as I know Kosmos has problems with colons in key-names. This is why addr:postcode does not work. Or am I wrong? If it works at your computer, please contact me or answer on this page! --Bahnpirat 07:21, 16 October 2009 (UTC)

Can you give me an example of a rule that doesn't work? I'm slowly working on a new version of Kosmos and I would like to fix such issues. Thanks --Breki 17:40, 16 October 2009 (UTC)

Kosmos crash if I use something like this:

| Postal_code || {{IconNode}} || {{tag|addr:postcode}} || Symbol (Type=Circle)
| .DE01067 || || {{tag|addr:postcode|01067}} || Symbol (Type=Circle, Size=8:8, color=#404080)

or this:

| Postal_code || {{IconArea}} || {{tag|addr:postcode}} ||
| .DE01067 || || {{tag|addr:postcode|01067}} || Polygon (color=#404080)

Anything wrong here? Try it with your own code! This works:

| Postal_code || {{IconWay}} || {{tag|postal_code}} || Polyline (MinZoom=5)
| .DE01067 || || {{tag|postal_code|01067}} || Polyline (color=#404080)

Problem is the colon (:).One option is to download data, replace all addr:postcode with postal_code, and render the result. --Bahnpirat 09:19, 17 October 2009 (UTC)

That's a workaround, but I'll make sure colons (and other special chars) are accepted as tag names, since they are legal in OSM tags --Breki 20:53, 17 October 2009 (UTC)
Looks like I've fixed the colon issue a long time ago (more than 1 year). What version of Kosmos are you using? Can you post the exact exception you're getting? --Breki 06:32, 18 October 2009 (UTC)