Skip to the article

I'm Fernando,
a full-stack developer!

Binary-format Articles

This is part of the series on my geodata file format. The previous posts got us to a range coder in version 2 and a 19.5 MiB file, but honestly: I shipped a compressor I could not fully explain. This post is the explanation I wish I had read first. When I wrote about version 2 of the format, I described how the chunks became a long list of yes/no decisions, does this cell split?, same place as the…

In my first post about this file format I squeezed every country, region and city boundary on Earth into a 72 MiB file. The two fixes that took it to 45 MiB have their own post, and I ended up there with zlib doing the last step. I didn't think there would be something better than this for a while. Then I had an idea, and this is the result: a ~57% reduction in file size. The same format also…

I started loc-to-city because my favourite photo manager kept telling me the wrong city. It has since turned into something I keep reaching for in other projects, so this post is about the tool and the file format it produces, not about the photo manager. The headline I still find hard to believe: every country, region and city boundary on Earth, at a resolution of roughly 300 by 150 metres, in a…