OpenStreetMap Portugal in PostGIS, ready to query. Data © OpenStreetMap contributors, ODbL.
109
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 Portugal: an 8.8 GB PostgreSQL database in a 1.5 GB download. Skip the import: pull it, start it, and query.
docker run -d -p 127.0.0.1:5432:5432 baseshift/db-osm-pt:pg17-dc1
psql -h localhost -U postgres -d osm_pt_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;
portugal-261113.osm.pbf, replication timestamp 2026-11-13T21:22:20Z (sequence 4968).
6e21ef24c6500cf7cac40a65002db8721442fa925abbd55a133c39ccd6e4d748--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:17f79f4a2…
Size
1.4 GB
Last updated
6 days ago
docker pull baseshift/db-osm-pt