[mkgmap-dev] [PATCH] apply_local action (variable substitution in relation members)
From Marko Mäkelä marko.makela at iki.fi on Mon Dec 21 20:54:04 GMT 2009
On Mon, Dec 14, 2009 at 11:41:05PM +0200, Marko Mäkelä wrote: > Yet another solution would be to have a special syntax of variable > substitution that would bypass the valueTags, say, $(var) instead of ${var}: > > (type=boundary | type=multipolygon) & boundary=administrative & name=* > { apply > { > set mkgmap:boundary_name='$(mkgmap:boundary_name)/${name}' | '${name}'; > } > } I implemented this (see the attached patch). It was easier than I thought, and the runtime penalty should be low. Unless someone complains, I will commit this patch tomorrow. Marko -------------- next part -------------- A non-text attachment was scrubbed... Name: mm-apply_local-boundary2.patch Type: text/x-diff Size: 8098 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20091221/c805d3e8/attachment.bin
- Previous message: [mkgmap-dev] variable substitution in relation members
- Next message: [mkgmap-dev] [PATCH] apply_local action (variable substitution in relation members)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list