frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Pbf2sqlite: Reading OpenStreetMap into a SQLite Database

https://github.com/osmzoso/pbf2sqlite
52•amadeuspagel•2d ago

Comments

milliams•2d ago
Does SQLite have GIS capabilities (like PostGIS provides for Postgres), or is this storing the data as traditional database primitives?
fros1y•2d ago
Check out Spatialite. https://www.gaia-gis.it/fossil/libspatialite/index
0cf8612b2e1e•2d 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/

Scaevolus•2d 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.

simonw•7h ago
From the schema it looks like this is storing nodes and lines: https://github.com/osmzoso/pbf2sqlite/blob/main/doc/pbf2sqli...

There's an option to enable RTree indexes to speed up queries like this one:

  SELECT way_id
  FROM rtree_way
  WHERE max_lon>= 7.851 AND min_lon<= 7.854
   AND  max_lat>=47.995 AND min_lat<=47.996;
wiredfool•7h ago
SQLite + spatial (and specific metadata tables) is essentially the Geopackage format, which can be considered the modern equivalent of a shapefile.

Which is to say, yes, SQLite has geospatial operations and they’re well supported by the open source gis stack.

juliansimioni•6h ago
This is super cool. As part of the Pelias geocoder(https://pelias.io/) we use both OSM and SQLite heavily. Currently we've written our own pbf2json tool in Golang (https://github.com/pelias/pbf2json). But creating intermediate databases in SQLite could enable more powerful manipulation of OSM data before we eventually import it.

Introducing tmux-rs

https://richardscollin.github.io/tmux-rs/
580•Jtsummers•10h ago•195 comments

Flounder Mode – Kevin Kelly on a different way to do great work

https://joincolossus.com/article/flounder-mode/
146•latentnumber•10h ago•33 comments

Launch HN: K-Scale Labs (YC W24) – Open-Source Humanoid Robots

140•codekansas•8h ago•70 comments

AV1@Scale: Film Grain Synthesis, The Awakening

https://netflixtechblog.com/av1-scale-film-grain-synthesis-the-awakening-ee09cfdff40b
155•CharlesW•8h ago•126 comments

Manipulating trapped air bubbles in ice for message storage in cold regions

https://www.cell.com/cell-reports-physical-science/fulltext/S2666-3864(25)00221-8
25•__rito__•3d ago•5 comments

Wind Knitting Factory

https://www.merelkarhof.nl/work/wind-knitting-factory
70•bschne•5h ago•21 comments

You are what you launch: how software became a lifestyle brand

https://omeru.bearblog.dev/lifestyle/
12•freediver•2d ago•1 comments

Peasant Railgun

https://knightsdigest.com/what-exactly-is-the-peasant-railgun-in-dd-5e/
190•cainxinth•11h ago•145 comments

Poor Man's Back End-as-a-Service (BaaS), Similar to Firebase/Supabase/Pocketbase

https://github.com/zserge/pennybase
136•dcu•9h ago•90 comments

Kubernetes is a symptom, not a solution

https://andreafortuna.org/2025/06/20/unpopular-opinion-kubernetes-is-a-symptom-not-a-solution
14•gsky•47m ago•2 comments

High-Fidelity Simultaneous Speech-to-Speech Translation

https://arxiv.org/abs/2502.03382
49•Bluestein•5h ago•28 comments

CO2 sequestration through accelerated weathering of limestone on ships

https://www.science.org/doi/10.1126/sciadv.adr7250
20•PaulHoule•1h ago•4 comments

An Algorithm for a Better Bookshelf

https://cacm.acm.org/news/an-algorithm-for-a-better-bookshelf/
63•pseudolus•2d ago•10 comments

Opening up ‘Zero-Knowledge Proof’ technology

https://blog.google/technology/safety-security/opening-up-zero-knowledge-proof-technology-to-promote-privacy-in-age-assurance/
222•doomroot13•7h ago•136 comments

Converge (YC S23) well-capitalized New York startup seeks product developers

https://www.runconverge.com/careers
1•thomashlvt•4h ago

Caching is an abstraction, not an optimization

https://buttondown.com/jaffray/archive/caching-is-an-abstraction-not-an-optimization/
85•samuel246•2d ago•66 comments

Where is my von Braun wheel?

https://angadh.com/wherevonbraunwheel
116•speckx•11h ago•90 comments

Ubuntu 25.10 Raises RISC-V Profile Requirements

https://www.omgubuntu.co.uk/2025/06/ubuntu-riscv-rva23-support
58•bundie•2d ago•14 comments

Postcard is now open source

https://www.contraption.co/postcard-open-source/
76•philip1209•8h ago•25 comments

Stalking the Statistically Improbable Restaurant with Data

https://ethanzuckerman.com/2025/07/03/stalking-the-statistically-improbable-restaurant-with-data/
51•nkurz•8h ago•25 comments

Encoding Jake Gyllenhaal into one million checkboxes (2024)

https://ednamode.xyz/blogs/2.html
45•chilipepperhott•9h ago•12 comments

Fei-Fei Li: Spatial intelligence is the next frontier in AI [video]

https://www.youtube.com/watch?v=_PioN-CpOP0
257•sandslash•2d ago•131 comments

AI for Scientific Search

https://arxiv.org/abs/2507.01903
85•omarsar•10h ago•21 comments

Parallelizing SHA256 Calculation on FPGA

https://www.controlpaths.com/2025/06/29/parallelizing_sha256-calculation-fpga/
51•hasheddan•10h ago•29 comments

Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing

https://numpad.io
14•tonyonodi•3d ago•4 comments

About AI Evals

https://hamel.dev/blog/posts/evals-faq/
158•TheIronYuppie•2d ago•36 comments

Michael Madsen has died

https://www.nytimes.com/2025/07/03/movies/michael-madsen-dead.html
55•anigbrowl•3h ago•15 comments

Copper is Faster than Fiber (2017) [pdf]

https://www.arista.com/assets/data/pdf/Copper-Faster-Than-Fiber-Brief.pdf
68•tanelpoder•2d ago•64 comments

Astronomers discover 3I/ATLAS – Third interstellar object to visit Solar System

https://www.abc.net.au/news/science/2025-07-03/3i-atlas-a11pl3z-interstellar-object-in-our-solar-system/105489180
281•gammarator•22h ago•148 comments

Alice's Adventures in a Differentiable Wonderland

https://arxiv.org/abs/2404.17625
132•henning•3d ago•20 comments