How it started: I probably should just use PostGIS for that.
How it's going: Currently writing my own WKB/EWKB parser + generator.
π€¦