logo separator

[mkgmap-dev] [PATCH v1] finalizer style file

From WanMil wmgcnfg at web.de on Sun Oct 27 22:03:38 GMT 2013

Hi,
I had a look how much effort it is to add a finalizer style file that is 
used each time a rule with an element type definition matches. This 
might make it more easy to implement "general rules" (like the 
mkgmap:access tag which seems to be useful for complex styles). The 
finalize file must contain actions only. Otherwise mkgmap stops with an 
error message.

Attached patch for the mergeroads branch realizes this. Maybe have a 
look on it and reply if you find it useful or superfluous.

The patch also contains an additional style function
   type()
returns node, way or relation depending on the elements type.

@Steve: do you think it would be possible to add a finalize section to 
the bottom of each style file (especially points, lines and polygons)? I 
have the feeling that this is more understandable and maybe better to 
have different finalize styles for each element type.

WanMil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: finalizer_style_v1.patch
Type: text/x-patch
Size: 11718 bytes
Desc: not available
URL: <http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20131027/a8fd8271/attachment-0001.bin>


More information about the mkgmap-dev mailing list