logo separator

[mkgmap-dev] BoundaryPreprocessor: How to get addr:city from place= polygon, not from boundary=administrative?

From Maks Vasilev max at stranger-team.ru on Wed Feb 20 17:52:23 GMT 2013

Hi!

I use osmfilter to prepare bounds:

$ ./osmfilter source.osm.o5m --keep-nodes= \
  --keep-ways-relations="(place=city or place=town or place=village or
place=hamlet) boundary=administrative =postal_code postal_code=" --out-o5m
> RU-boundaries.osm.o5m

$ java -cp /usr/share/java/mkgmap.jar
uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor
RU-boundaries.osm.o5m bounds

And rules from mkgmap (part of rules):

# Russia = RUS
mkgmap:country=RUS & mkgmap:region!=* & mkgmap:admin_level4=* { set
mkgmap:region='${mkgmap:admin_level4}' }
mkgmap:country=RUS & mkgmap:city!=* & (place=city | place=town |
place=village | place=hamlet) { set mkgmap:city='${place}'}

It's not work for complete address info from place polygon.

The use of polygons place=* in Russia rather than boundary=administrative
to use in addr:city autofill.

wbr,
Maks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20130220/045d09ff/attachment.html 


More information about the mkgmap-dev mailing list