![]() |
VOOZH | about |
7th February 2021
Most of what I worked on this week was covered in Serving map tiles from SQLite with MBTiles and datasette-tiles. I built two new plugins: datasette-tiles for serving map tiles, and datasette-basemap which bundles map tiles for zoom levels 0-6 of OpenStreetMap. I also released download-tiles for downloading tiles and bundling them into an MBTiles database.
I added one new feature to sqlite-utils: the sqlite-utils import command can now be configured to read CSV files using alternative delimiters, by passing the --delimiter option or the --quotechar option.
This is covered in the documentation, which provides the following example:
name;description
Cleo;|Very fine; a friendly dog|
Pancakes;A local corgi
Imported using:
sqlite-utils insert dogs.db dogs dogs.csv \ --delimiter=";" --quotechar="|"
I spotted a subtle but nasty regression in Datasette: a change I made to how hidden form fields worked on the table page meant that clearing the _search search input and re-submitting the form didn’t take effect, and the search would persist. Datasette 0.54.1 fixes that bug.
This is Weeknotes: Mostly messing around with map tiles by Simon Willison, posted on 7th February 2021.
csv 33 openstreetmap 55 projects 538 datasette 1,519 weeknotes 193 sqlite-utils 223 leaflet 46Next: Video introduction to Datasette and sqlite-utils
Previous: Serving map tiles from SQLite with MBTiles and datasette-tiles
Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.
Pay me to send you less!
Sponsor & subscribe