Download Spain map in GeoPackage format

A map built from OpenStreetMap data, ready to download

Customize the map

Open this place's area in the constructor and adjust everything to your needs

Open in constructor →

Map passport

Area627 507 km²
Buildings2 988 767
Roads615 983 km
Points of interest1 556 434

What this map contains by default

This is how the map is built as-is — every setting can be changed in the constructor.

FormatGeoPackage .gpkg
LayersRoads, Water, Greenery change
Stylestandard change
Detailoverview (auto) change
House numbersnot visible at this scale change
Points of interestnot visible at this scale change
Coordinate systemWGS 84 (auto) change
Sheet sizeauto change
Relief & gridoff change

About GeoPackage

Map of Spain in GeoPackage: 615 983 km of roads, 35% green areas — in the WGS 84 coordinate system, units are meters.

Which layers are in the file

This file for the selected area contains:

What the file carries

The GeoPackage file for Spain: the whole map comes as a single file, the file is binary — it is opened by a program, not by an editor, layers live inside the file as named entities, OpenStreetMap tags are kept as feature attributes.

File size

The expected size of the GeoPackage file for Spain is about 22.9 MB; the exact size depends on the chosen layers and area.

GeoPackage file passport

Estimated from the place's OSM data; exact figures are in the file after the build.

  • GeoPackage layer tables: 3
  • Features by geometry type (estimated): points 0, lines ≈ 3 079 913, polygons 497 675
  • Most common tags of the place: highway=residential ≈ 813 982, highway=unclassified ≈ 656 264, highway=tertiary ≈ 535 506, highway=service ≈ 365 159, highway=secondary ≈ 204 960, highway=motorway ≈ 161 251, highway=primary ≈ 124 178, highway=trunk ≈ 91 150, highway=cycleway ≈ 60 207, highway=living_street ≈ 36 039

Losses: not in the file: Buildings 2 988 767, Points of interest 1 556 434.

Build recipe: GeoPackage (OGC, SQLite): a single .gpkg, layer → table with a spatial index, WGS 84 (EPSG:4326) by default, frame 2 078 × 1 831 km, simplification tolerance 334 m.

Coordinate systems

WGS 84 (EPSG:4326), selectable in the wizard

CategoryGIS
File extension.gpkg
TierOpen Beta

How many times GeoPackage was built in the last 90 days

Spain
0
Whole site
405
Median file size
3.8 MB
Median build time
6.3 s

Medians are based on all builds on the site

How to use GeoPackage for Spain

  1. QGIS (free) — drag the .gpkg into the program window; a list of layers appears, tick the ones you need.
  2. ArcGIS Pro — Add Data, choose the .gpkg: the feature classes connect as if from a geodatabase.
  3. ogr2ogr — ogrinfo -so map.gpkg shows the list of layers, and ogr2ogr -f PostgreSQL PG:"..." map.gpkg loads them all into PostGIS in one command.

Programs that open GeoPackage

QGISArcGISGeoServerMapServerSpatiaLite GUIGDAL/OGR

FAQ: GeoPackage for Spain

Why is GeoPackage better than Shapefile?

GeoPackage stores all layers in one file, supports long field names, UTF-8, and has no size limit.

Can I open GeoPackage in QGIS?

Yes, QGIS is the best free editor for GeoPackage. Just drag the file into the window.

How do I find out which layers are inside the file?

In QGIS they are shown as a list when you add the file. On the command line — ogrinfo -so map.gpkg; in Python — fiona.listlayers("map.gpkg").

Which coordinate system do the layers arrive in?

WGS84 (EPSG:4326). You can reproject right inside QGIS when saving a layer, or with the ogr2ogr command and the -t_srs switch.

Can I edit the file and add my own layers?

Yes. A GeoPackage is a full-fledged SQLite database: QGIS writes edits and new layers into it, and any SQLite client runs SQL queries against the tables.

Other formats for Spain

All 128 formats for Spain →

Maps other customers made in this format (GeoPackage)

Novoaidar

44 039 km² · 55 layers

Map

28 918 km² · 10 layers

Map

193 km² · 16 layers

All formats for Spain