Pbf2sqlite: Reading OpenStreetMap into a SQLite Database

22 amadeuspagel 4 7/1/2025, 9:17:41 AM github.com ↗

Comments (4)

milliams · 8h ago
Does SQLite have GIS capabilities (like PostGIS provides for Postgres), or is this storing the data as traditional database primitives?
Scaevolus · 45m ago
SQLite can be built with the R*tree module, which supports efficiently looking up all bounding boxes that contain a point: https://www.sqlite.org/rtree.html

PostGIS similarly provides an R*Tree index mode, as well as a heap of functions for doing GIS calculations directly. To do that in SQLite, you'd implement and inject custom functions as appropriate.

fros1y · 7h ago
0cf8612b2e1e · 3h ago
DuckDB has put some effort into GIS, so if SQLite does not immediately fit the bill, I would go there.

https://motherduck.com/blog/getting-started-gis-duckdb/