[GIS] Administrative boundaries missing in OSM and/or Maperitive

administrative-boundariesmaperitiveopenstreetmap

I'm lost trying to render maps with administrative boundaries using OSM and Maperitive.
For some cities, e.g. Mexico City, there are boundaries.

But, e.g. for Belo Horizonte, there are none, at least in the SVG I export for Illustrator (at zoom level 16) from Maperitive.

I find references in the OSM XML for Belo Horizonte to <tag k="boundary" v="administrative"/> and <tag k="admin_level" v="7"/>. Also, on the OSM website, the map of Belo Horizonte has an admin boundary:

http://www.openstreetmap.org/relation/368782#map=11/-19.9185/-43.9604

…although sometimes you may have to switch to MapQuest view and then back to Standard for it to appear.

So, it could be that no boundaries have been included in the OSM data for Belo Horizonte, or they have been and Maperitive isn't reading them. Advice very welcome…

=====update====

The answer here:

Finding administrative boundaries in Guinea using OSM

suggested using http://overpass-turbo.eu/ to get admin boundary data, but what I downloaded for BH (7MB) wasn't the boundary of BH.

===update 2===

Found this: http://global.mapit.mysociety.org/ but the search found no boundaries for BH. I guess there are none in oSM data.

Best Answer

You already linked to relation 368782 which is the relation you are looking for, isn't it? Therefore OSM obviously does include the boundary for Belo Horizonte and the problem must be at Maperitive.

Using the new wizard of overpass turbo and searching for name="Belo Horizonte" and boundary=administrative yields this result: http://overpass-turbo.eu/s/2pz which is the same boundary.

Check if the stylesheet you are using for Maperitive does include rendering rules for boundary=administrative with admin_level=8.

Related Question