OpenStreetMap New York in PostGIS, ready to query. Data © OpenStreetMap contributors, ODbL.
391
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 New York State: an 11.1 GB PostgreSQL database in a 1.6 GB download. Skip the import: pull it, start it, and query.
docker run -d -p 127.0.0.1:5432:5432 baseshift/db-osm-ny:pg17-dc1
psql -h localhost -U postgres -d osm_new_york_261024
127.0.0.1 keeps the database reachable only from your own machine.Example: the five pubs and bars nearest Times Square.
SELECT name, round(ST_Distance(way, p)) AS m
FROM planet_osm_point,
ST_Transform(ST_SetSRID(ST_MakePoint(-73.9855, 40.7580), 4326), 3857) p
WHERE amenity IN ('pub','bar') AND name IS NOT NULL AND ST_DWithin(way, p, 500)
ORDER BY m LIMIT 5;
new-york-261024.osm.pbf, replication timestamp 2026-10-24T20:20:51Z (sequence 4952).
e87a18b597a58acc2398f11a1682bef2903a64e83b18c3dd3e12241201f863ad--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-20261024 | PostgreSQL 17, dc1 compression, data as of 2026-10-24 (pinned) |
pg17-dc1 | latest data vintage on PostgreSQL 17 with dc1 |
pg17, latest | latest overall |
baseshift/db-osm-us: OpenStreetMap United States (242 GB database, 29.6 GB download)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 page is compressed on its own and decompressed as PostgreSQL reads it.
Content type
Image
Digest
sha256:99f8c23d1…
Size
1.4 GB
Last updated
19 days ago
docker pull baseshift/db-osm-ny