[Talk-GB] Rendering national/regional walking trails

Elizabeth Oldham beth at the-hug.org
Fri Apr 21 11:06:33 UTC 2017


On 21/04/17 11:47, Andy Townsend wrote:

> If you're using osm2pgsql to load a rendering database,

Yes, sorry, I should have said.

> probably use the lua tag transforms and do something with roles for
> relations in there.  I've not done anything with relation roles myself,
> but
> https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua
> is a lua tag transform I use and
> https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L2296
> is the "relations" part of that, with "roles" as an array argument
> passed in.  You could use that to add a "pseudo-tag" like I do with
> "network=lwn" to get that to appear as a "highway", then render that as
> per e.g.:
> https://map.atownsend.org.uk/maps/map/map.html#zoom=14&lat=54.38373&lon=-1.51698

That looks useful. Thanks. I'll see if I can figure out what its doing.
Good map, BTW.

Beth



More information about the Talk-GB mailing list