I already rendered tram and rail lines, but i have problem render bus routes. I use this script to render rail lines:
and this scheme:
To render tram lines I only changed filter to [railway] = 'tram'. I tried different filters to render bus routes, but nothing worked. I want only black lines 1pixel wide on white background. How can I do it? Edit: I have rendered bus routes from postgis database. I imported the map.osm using osm2pgsl. And changed Datasource in schema.xml. The problem is different aspect ratio. This happen when i overlap the images (clipped overlaping images). Red - tram, azur - bus. Bus image has white border on left and right side. Edit2: Ratio problem solved, I have bad srs projection in layer asked 22 Mar '13, 23:54 lived |
In a standard osm2pgsql-created database, bus routes will not be in the database - the roads making up the bus routes certainly are, but the information which bus route, if any, they belong to, isn't. There was a question about route relations on the "talk" mailing list recently where a similar question was asked. Showing the bus routes is much more difficult than showing the railways or trams in your case because you're doing something conceptually different. In your example you are not showing railway or tram lines, you are showing railway or tram tracks - these are easy to match. If you wanted to show tram lines (as in "tram #15 uses this piece of track") then you'd be looking at the same problem that you have with bus routes. answered 23 Mar '13, 19:44 Frederik Ramm ♦ |