[OSM-talk-be] Fwd: Administrative map of Belgium with mapping of the polygon to the municipality name or zip code?
Alexander Mikhailian
mikhailian at mova.org
Sat Mar 28 13:42:28 UTC 2015
Sander,
I got the 14Mb of JSON data.
AFAIU, converting from OSM JSON to geojson should be rather easy
with something like osmtogeojson [1], and then, I'll be ready to
display it with D3.
Thanks a lot!
[1] http://tyrasd.github.io/osmtogeojson/
On Sat, Mar 28, 2015 at 02:02:29PM +0100, Sander Deryckere wrote:
> Overpass is the answer to your question.
>
> You can use overpass to extract the boundary polygons, and then other
> software to convert it to a rendered map.
>
> See this example query: http://overpass-turbo.eu/s/8rD
>
> With that query, you can simply extract all municipalities (mapped with
> admin_level=8) in the province West-Vlaanderen. A smaller area makes it
> easier to test. To load Belgium, you should just switch the name to
> "Belgium", and the admin_level to 2 (for national boundaries).
>
> It's possible that Belgium becomes too heavy for overpass-turbo, in that
> case, you can go via Overpass API directly (see
> http://www.overpass-api.de/query_form.html ), which doesn't render the
> received data, but just gives you the data as text.
>
> Also note that the output format is defined to be JSON, if you prefer other
> formats, there are more choices:
> http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Output_Format_.28out.29
>
> Is that enough for the municipalities? Or do you also want more info on
> rendering the maps?
>
> For the zip codes, well, those aren't completely mapped yet. Some
> municipalities have multiple zip codes, and it's very hard to find correct
> boundaries for those.
>
> Regards,
> Sander
>
> 2015-03-28 13:36 GMT+01:00 Alexander Mikhailian <mikhailian at mova.org>:
>
> > Hello,
> >
> > I have an idea for a language study project in Belgium and it would
> > really help if there were a map of Belgian municipalities with the names
> > of municipalities or zip codes linked to polygones. I found [1] but it
> > has only ids of the form "path80-8-8". which is not very helpful.
> >
> > Could you by any chance give me hint as to where I can find such a map?
> >
> > Thanks in advance,
> >
> > --
> > Alexander Mikhailian
> >
> > [1] http://commons.wikimedia.org/wiki/File:Belgium_administrative.svg
> >
> >
> > _______________________________________________
> > Talk-be mailing list
> > Talk-be at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/talk-be
> >
> _______________________________________________
> Talk-be mailing list
> Talk-be at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-be
--
More information about the Talk-be
mailing list