<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello everybody!<br/>
<br/>
I've attached a patch that supports processing of place polygons in precompiled bounds and using of this information in the style file. See my earlier message: <a href="http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2015q1/022619.html" target="_blank">http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2015q1/022619.html</a>.<br/>
You can use it like following (as example):<br/>
<br/>
# Russia<br/>
mkgmap:country=RUS & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }<br/>
mkgmap:country=RUS & mkgmap:city!=* & (mkgmap:place=city | mkgmap:place=town) { set mkgmap:city='${mkgmap:place_name}' }<br/>
mkgmap:country=RUS & mkgmap:city!=* & mkgmap:admin_level6=* { set mkgmap:city='${mkgmap:admin_level6}' }<br/>
<br/>
To get this working, you have to create your own set of precompiled bounds with additional rule "type=multipolygon and place= and name=" for osmfilter and a run of BoundaryPreprocessor to set the variables mkgmap:place (attribute 'place' from the multipolygon) and mkgmap:place_name (attribute 'name' from the multipolygon).</div>
<div> </div>
<div>Cheers!</div>
<div>Max</div></div></body></html>