HUB
Sign inSign up
db-osm-sn-gm logo

baseshift/db-osm-sn-gm

By baseshift

•Updated 6 days ago

OpenStreetMap Senegal and Gambia in PostGIS. Data © OpenStreetMap contributors, ODbL.

Image
0

114

baseshift/db-osm-sn-gm repository overview

⁠OpenStreetMap Senegal and Gambia — PostGIS, ready to query

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 Senegal and Gambia: a 2.6 GB PostgreSQL database in a 563 MB download. Skip the import: pull it, start it, and query.

⁠Quick start

docker run -d -p 127.0.0.1:5432:5432 baseshift/db-osm-sn-gm:pg17-dc1
psql -h localhost -U postgres -d osm_sn_gm_261113
  • No password is needed. Binding to 127.0.0.1 keeps the database reachable only from your own machine.
  • It's ready about 0.7 seconds after start.
  • You need about 1 GB of free disk. Docker's containerd image store keeps both the download and the unpacked copy, so allow up to ~2 GB there.

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;

⁠What's inside

  • Data: the Geofabrik⁠ Senegal and Gambia extract senegal-and-gambia-261113.osm.pbf, replication timestamp 2026-11-13T21:22:20Z (sequence 3694).
    • sha256 1423feea948c53ed36b4cf7114056da253f9799efb92d77edd1f3e45f39721ae
  • Import: osm2pgsql 1.11.0, --create --slim --hstore, default style. Geometries are in EPSG:3857.
    • Tables: 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.
    • Vacuumed and frozen after the import, so a fresh clone has nothing to rewrite and autovacuum is on.
  • Software: PostgreSQL 17.11, PostGIS 3.6.4 and hstore, on the official postgres:17.11 image. Both linux/amd64 and linux/arm64 (Apple Silicon) are supported.
  • Storage: Baseshift dc1 compression.
    • Each 8 KB block is compressed on its own and decompressed when PostgreSQL reads it, so nothing is unpacked to disk.
    • Lossless: every block has been verified byte-identical to the original.
    • Reads cost some CPU: index lookups feel normal, but large sequential scans are slower than on an uncompressed database.
    • CREATE EXTENSION baseshift_storage; shows raw and compressed sizes per table and index.

⁠Tags

TagMeaning
pg17-dc1-20261113PostgreSQL 17, dc1 compression, data as of 2026-11-13 (pinned)
pg17-dc1latest data vintage on PostgreSQL 17 with dc1
pg17, latestlatest overall

⁠About Baseshift

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.

Tag summary

Content type

Image

Digest

sha256:130885848…

Size

536.8 MB

Last updated

6 days ago

docker pull baseshift/db-osm-sn-gm