You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Vector · Database & container

GPKG — GeoPackage (vector)

OGC standard SQLite-based container storing vector feature layers with geometries, attributes and spatial indexes in one file.

Type
Vector · Database & container
Extension
.gpkg
Converter
Read & write
Coordinate system
Any (EPSG, ESRI, custom)
Layers
Multiple

What is a GPKG file?

GeoPackage is an open, platform-independent format standardised by the Open Geospatial Consortium (OGC) and built on the SQLite database engine. A single .gpkg file can hold several vector feature tables alongside raster tiles and metadata; this entry covers the vector side. Feature tables are registered in core metadata tables such as gpkg_contents, gpkg_geometry_columns and gpkg_spatial_ref_sys. Geometries are stored as binary blobs consisting of a GeoPackage header followed by standard Well-Known Binary.

The format is widely used for data exchange, desktop GIS work, mobile field data collection and offline applications. Each layer can use its own coordinate reference system, field names are UTF-8 with no short length limit, and spatial indexing is provided through SQLite R-tree tables. Limitations follow from SQLite: concurrent writing is restricted, and temporary -wal, -shm or -journal files may appear next to the database while it is open.

GPKG files are usually exchanged between GIS analysts, field data collection teams and web map publishers who want one self-contained file instead of a shapefile set. Because a GeoPackage is a SQLite database, it may contain several layers with different coordinate systems, so check the layer list and CRS after opening. Keep any -wal and -shm files together with the .gpkg while it is in use.

Typical uses

  • Exchanging several vector layers in one file between GIS applications.
  • Collecting and syncing field data on mobile devices and tablets.
  • Storing layers for offline use in desktop or mobile maps.
  • Serving vector data from a server such as GeoServer.
Files: OGC standard; can store vectors, rasters, tiles, and metadata in one DB.

Sample GPKG files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena basemap st-helena-basemap.gpkg

Basemap (7 layers)

Multi-layer basemap of Saint Helena: island outline, land cover, waterways, 100 m contours, roads, Jamestown buildings and places. GeoPackage with spatial indexes and layer descriptions.

  • island · MultiPolygon · 1
  • landcover · Polygon · 190
  • waterways · LineString · 117
  • contours · LineString Z · 27
  • EPSG:4326
  • 796 kB
Attributes (3)
nameStringarea_km2Realosm_idString
Saint Helena122.914868269

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Preview of the sample data: Saint Helena places st-helena-places.gpkg

Places (points)

58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. GeoPackage.

  • places · Point · 58
  • EPSG:4326
  • 112 kB
Attributes (7)
idIntegernameStringcategoryStringkindStringelevationIntegersummaryStringosm_idString
10Jamestowntownsettlement36Capital and only port of Saint Helena293673697
22Diana's Peakpeakpeak809Highest point of Saint Helena4254622180
47Longwood Housemuseumpoi544Napoleon's residence in exile, 1815-182135798100
46Jacob's Ladderlandmarkpoi74Staircase of 699 steps from Jamestown up to Ladder Hill146163201
53Saint Helena Airportairportpoi326Island airport, scheduled flights since 2017166589674

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Preview of the sample data: Jacob's Ladder hike st-helena-hike.gpkg

Hike (waypoints, track, track points)

Hike from Jamestown up Jacob's Ladder to High Knoll Fort: 3.0 km, 513 track points (10 s) with elevation and time, 4 waypoints. GeoPackage with layers hike_waypoints, hike_track and hike_track_points.

  • hike_waypoints · Point Z · 4
  • hike_track · LineString Z · 1
  • hike_track_points · Point Z · 513
  • EPSG:4326
  • 244 kB
Attributes (4)
seqIntegereleRealtimeDateTimespeed_kmhReal
112.12024-04-20T08:30:00Z0.0
212.12024-04-20T08:30:10Z4.94
312.62024-04-20T08:30:20Z4.41
413.62024-04-20T08:30:30Z3.58
514.92024-04-20T08:30:40Z2.8

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Frequently asked questions

They are temporary SQLite files created while the database is open, mainly for write-ahead logging. They are normally merged and removed when the file is closed properly. If you copy the file while it is open, copy these files too or close the application first.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.