NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am new in OSM(Q-GIS..quantumnik) and I have problems with my Motorway/Trunk casing. I need the casing to be thick.. but it seems that lower level roads does not respect casing and "bites in" ,, see picture. http://imageshack.us/photo/my-images/543/174h.png I think, that bridge/tunnel stuff solves only "fill" and not "casing", I guess nobody expected thick casing. I work with XML. Any advice?

http://imageshack.us/photo/my-images/543/174h.png [Tertiary bites into Motorway]

asked 21 Jul '11, 13:44

rocejkar's gravatar image

rocejkar
16113
accept rate: 0%

edited 21 Jul '11, 18:33

Harry%20Wood's gravatar image

Harry Wood
9.5k2588128

The question is not very clear, and the picture is very small. What do you mean by "biting in"?

(21 Jul '11, 16:11) Janjko

This seems to be a specific problem at a higher level of data processing.

Maybe you can find better help at one of the OSM Mailing lists ( http://wiki.openstreetmap.org/wiki/Mailing_lists ) or at the OSM forum, see http://forum.osm.org

(21 Jul '11, 16:39) stephan75

So normally this is the way you want to draw things - the casings are all drawn first, and all the fills are drawn on top of all the other casings. That's generally what looks best.

Your wide casings are different, and are more similar to the method used for drawing highways in the MapQuest stylesheet. You can find the XML at github and an example output on their site. They draw all the other roads first, and then draw the motorway casing after that and the motorway fill last. That means that their casing is never interrupted by fills, which is the problem that you are wanting to solve.

It becomes harder if you want to deal properly with bridges and so on. You will need to experiment with combinations of layer tags, bridge tags and drawing motorway casings after other fills in order to get the effect you seek.

permanent link

answered 22 Jul '11, 17:51

Andy%20Allan's gravatar image

Andy Allan
12.5k23128153
accept rate: 28%

"" They draw all the other roads first, and then draw the motorway casing after that and the motorway fill last. That means that their casing is never interrupted by fills, ""

Yes, that is what I want, but how to reach that? I though, that this is the ordinary way, how Mapnik works. And I have read somewhere, that I can not change layer order :S

(25 Jul '11, 10:13) rocejkar

If you want to solve this problem keeping the wide casings you will have to interact with the layer order in the way Andy suggested. I am sure it is possible (because all the code is open source).

(26 Jul '11, 18:27) dieterdreist

Did I mention that I am beginner ? :D. Allright, I have found layer order. They way, how it is rendered, as was said before, is, that first goes casing and on top is fill. This works for every road, basically like in packet (first casing of all roads and then fills of all roads). I need to do:
-layer all casing (except motorway/trunk) -layer all fills (except motorway/trunk) -layer motorway/trunk casing -layer motorway/trunk fill

I dont know, how to exclude motorway/trunk from packet :/

permanent link

answered 02 Aug '11, 10:32

rocejkar's gravatar image

rocejkar
16113
accept rate: 0%

edited 02 Aug '11, 15:28

Hello rocejar, it is better to use this O&A-site not like a forum with posting a new answer as a further questuion to the core issue or as an answer to others' contributions. Because each answer to your first question can be ranked by all users to find out what might be most helpful.

So please use the comment function here, or convert your new "answer" to a comment of the other answers.

And: for such a deep asking about data structures you might get better help at forum or mailing lists, like I already hinted.

(02 Aug '11, 16:13) stephan75

I understand. Sorry for this. Anyway.. problem solved :] Needed to take out Motorway/Trunk from standart layer rule and make a new layer rule for them.

(03 Aug '11, 07:05) rocejkar

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67
×23
×2
×1

question asked: 21 Jul '11, 13:44

question was seen: 6,269 times

last updated: 03 Aug '11, 07:05

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum