OpenStreetMap Sweden in PostGIS, ready to query. Data © OpenStreetMap contributors, ODbL.
92
Map data © OpenStreetMap contributors, available under the Open Database License (ODbL) 1.0. The OpenStreetMap data in this image belongs to its contributors. This image is a derivative database offered under the ODbL. Baseshift is not affiliated with or endorsed by the OpenStreetMap Foundation.
Packaged by Baseshift: database clones for developers that start in seconds.
The full osm2pgsql import of Sweden: an 18.3 GB PostgreSQL database in a 2.8 GB download. Skip the import: pull it, start it, and query.
docker run -d -p 127.0.0.1:5432:5432 baseshift/db-osm-se:pg17-dc1
psql -h localhost -U postgres -d osm_se_261113
127.0.0.1 keeps the database reachable only from your own machine.Example: the most common kinds of amenity.
SELECT amenity, count(*) AS n
FROM planet_osm_point
WHERE amenity IS NOT NULL
GROUP BY amenity ORDER BY n DESC LIMIT 10;
sweden-261113.osm.pbf, replication timestamp 2026-11-13T21:22:20Z (sequence 4970).
77f1ceb7694160290aa6b89c65fdb78da245339f6b3d954c66bc2aa20812a117--create --slim --hstore, default style. Geometries are in EPSG:3857.
planet_osm_point, planet_osm_line, planet_osm_polygon, planet_osm_roads, plus the slim planet_osm_nodes, planet_osm_ways and planet_osm_rels.osm2pgsql_properties records the replication URL and updatable=true. osm2pgsql-replication update is untested.postgres:17.11 image. Both linux/amd64 and linux/arm64 (Apple Silicon) are supported.CREATE EXTENSION baseshift_storage; shows raw and compressed sizes per table and index.| Tag | Meaning |
|---|---|
pg17-dc1-20261113 | PostgreSQL 17, dc1 compression, data as of 2026-11-13 (pinned) |
pg17-dc1 | latest data vintage on PostgreSQL 17 with dc1 |
pg17, latest | latest overall |
Baseshift builds database clones for development and testing. These images run on our clone engine with dc1, a new compression mode we're developing: every 8 KB block is compressed on its own and decompressed as PostgreSQL reads it.
Content type
Image
Digest
sha256:e3154d7be…
Size
2.6 GB
Last updated
6 days ago
docker pull baseshift/db-osm-se