Geospatial Indexing using H3 and PostgreSQL
summary
A migration of OpenStreetMap planet data (~80 GB) into PostgreSQL 17 indexes H3 cell IDs, building S3/H3 indexes in about 8 hours and importing in ~11 hours, then counts 71.8 million US buildings in ~7 minutes using the H3 index versus ~2 hours 43 minutes with GiST. Workflow uses osm2pgsql schema, H3 bindings, and a custom cog-to-s3 tool to ingest COG rasters into H3 cells; H3 excels on large multi-table joins and raster+vector joins but is overkill for small local queries.
AI-written summary · about
