I need to create a custom Euro Region map from several regions of neighborhood countries.

Say Spanish "Galicia" and Portugal "Norte" regions. So, I need to combine 2 KML/OSM/... files. My question is how to get that 2 files. Can I use the openstreetmap project to EXPORT desired regions as KML, by eg?

If not openstreet map, maybe google earth/maps, bing or other tools are available to export a desired region as KML?

PS. I don't mind using any of mapping formats like GeoJSON or OSM, KML was just an example

  • For Spain you can use the WFS Services of the IGN Commented Apr 30, 2016 at 12:36
  • I gave Span as example, but in reality is not Span my country ;) Thanks however
    – serge
    Commented Apr 30, 2016 at 13:03
  • Dont you just love it when several people answer a question but dont upvote it...(+1)
    – user35594
    Commented Apr 30, 2016 at 19:27

4 Answers 4


The best way to get boundaries of countries, provinces and regions is to use the OSM Boundaries application:


Extracting boundaries from generic tools like Overpass Turbo is not always easy, as the boundaries may contain errors and are likely complex multipolygons consisting of many parts.

The OSM Boundaries application seems to deal very well with most of these issues, and supplies you with completely resolved boundary polygons for many administrative levels in OSM.

  • I observed several errors when exporting some regions and them inporting them in umap of the openstreet maps. But the tool is extremly useful and practical, thanks a lot
    – serge
    Commented Apr 30, 2016 at 13:51
  • What errors? And did you get the errors when downloading from OSM Boundaries, or importing in uMap? I am not familiar with uMap, and don't know if it can handle the type of very complex and large polygons that OSM boundaries may represent. You may need to simplify / generalize the boundaries first, before importing in uMap.
    – Marco_B
    Commented Apr 30, 2016 at 15:00
  • Url is outdated, page moved to wambachers-osm.website/boundaries
    – mmd
    Commented Jul 16, 2017 at 19:25

The easiest way to get OpenStreetMap extracts would probably be through Mapzen's Metro Extracts tool here

I would suggest exporting it in GeoJSON, then using a tool like ogr2gre (there's an online version here) to convert it to KML.

You may also be interested in looking at Overpass Turbo for exporting data from OpenStreetMap.

  • Download administrative boundaries of the spain and portugal from in .shp format from http://www.gadm.org/

  • you can import the shapefiles into QGIS or another software

  • the filter with query builder to isolate the regions you are interested

  • in QGIS you can install openlayer plugin

  • from the vectors tab select- openstreetmap then select download data

  • points, lines and polygons of the selected region will be downloaded in OSM

  • Import OSM into QGIS and save as Shp or export as kml

You could download data directly from Openstreetmap as .osm file, and convert it in QGIS as .kml, since QGIS supports export data as .kml.

Alternatively, you could download data from Geofabrik (also openstreeet map data, but country by country, as .gbd/mdb, and in ArcMap, export it as .kml.

Also, I would suggest you to use, if you have, shapefiles od Spain and Portugal, which contain data about regions, so you could clip your data to selected regions, because no matter which source you use, you will need to edit data to fit you regions.

  • how can I download it from openstreetmap? I didn't find such an option
    – serge
    Commented Apr 30, 2016 at 12:16
  • they have export button, but this does not work....
    – serge
    Commented Apr 30, 2016 at 14:58
  • There is an export button on the upper side. But, i this those regions are too big to export. On the left down side, you can see other options to download. Also, on this question here, you could find other good answers. Also, other part of my answer, still stands, no matter where you download your data
    – Dean7
    Commented May 2, 2016 at 6:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.