Re: [OSM-talk] Osm2pgsql/TileMill - how to detect whether way is in a route?

2013-03-19 Thread Phil! Gold
* Steve Bennett [2013-03-19 10:52 +1100]: > One way to fudge this is to render the way, then render the route > relation over the top, obscuring it. But that doesn't work if you want > to use line smoothing (eg, line-smooth:0.6). The route relation will > form a smooth bezier curve the intersectio

Re: [OSM-talk] Osm2pgsql/TileMill - how to detect whether way is in a route?

2013-03-18 Thread Frederik Ramm
Hi, On 19.03.2013 00:52, Steve Bennett wrote: So I'm just wondering if there is a way around this - some setting in osm2pgsql, some SQL magic I could play with. It will be very slow magic, but two things come to mind: One would use the line geometry table and ask for routes in the vicinity t

[OSM-talk] Osm2pgsql/TileMill - how to detect whether way is in a route?

2013-03-18 Thread Steve Bennett
Hi, I'm trying to render a mountain bike map with TileMill. Some trails are in route relations, eg: 3xWay: highway=path, mtb=yes 1xRelation: type=route, route=mtb, name="My Cool Trail" Osm2pgsql converts those to 4 rows: the relation is the complete trail. What I want to do is not render any w