On Sat, 2011-05-14 at 09:17 +0200, Philippe Coent wrote:
> Hello to all,
> I have an osm/postgis/mapnik stack running OK that I use to generate tiles 
> embedded into an iphone application for offline use.
> (we generate tiles with a transparent background so the user is able to 
> adjust the display)
> 
> I would like to add some subway information and I would like to:
> a) draw subways line with specific colors for each line (for instance in 
> Paris : Metro 1, Metro 2,etc..)
> b) draw subway stations name using the same specific colour
> 
> I am able to do a) using osm_line table information, and I am also able to 
> get subway station names using osm_point table but
> I have some difficulties to associate both, using the same color for the line 
> and the stations.
> 
> Would you have any pointers ?

Take a look at the current osm.xml. This does something similar to
associate the colour of turning_circle points with the nearest highway
line. What you are looking for in the file is the use of ST_DWithin() to
identify the lines which are within a small distance of the point.

   Jon


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to