logo separator

[mkgmap-dev] PATCH: Support place polygons in preprocessed bounds

From "Maxim Düster" maxc at gmx.de on Mon Jan 26 10:22:59 GMT 2015

Hello everybody!
 
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: http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2015q1/022619.html.
You can use it like following (as example):
 
# Russia
mkgmap:country=RUS & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }
mkgmap:country=RUS & mkgmap:city!=* & (mkgmap:place=city | mkgmap:place=town) { set mkgmap:city='${mkgmap:place_name}' }
mkgmap:country=RUS & mkgmap:city!=* & mkgmap:admin_level6=* { set mkgmap:city='${mkgmap:admin_level6}' }
 
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).
 
Cheers!
Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mkgmap-1_place.patch
Type: application/octet-stream
Size: 14003 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150126/e30f31ab/attachment-0001.obj>


More information about the mkgmap-dev mailing list