mod_mbtiles
sqlite-s3-query
mod_mbtiles | sqlite-s3-query | |
---|---|---|
3 | 5 | |
17 | 240 | |
- | - | |
10.0 | 7.5 | |
over 1 year ago | about 2 months ago | |
C | Python | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mod_mbtiles
-
Host your own OpenStreetMap Map Tiles
Here's a little bit of code I wrote that lets you host from a normal webserver, where that "normal webserver" is Apache: https://github.com/systemed/mod_mbtiles
-
Show HN: Mbtiles-S3-server – serve vector map tiles directly from mbtiles on S3
This is great. Servers have been the weak link in the open mbtiles stack for a good while and an out-of-the-box recipe like this will make a real difference.
(For those running on bare metal, I knocked this up a few months ago - https://github.com/systemed/mod_mbtiles - which is an Apache module that does pretty much the same thing.)
- Show HN: Self-Hosted Maps Stack
sqlite-s3-query
-
Using Lidar to map tree shadows
Awesome project!
What about hosting the data in an S3 bucket with "Requestor Pays"? You'd only have the storage cost.
Disables anonymous access (so would a Dropbox share) but reduces your cost massively.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/Reques...
You wouldn't necessarily need an SQL frontend as it's readonly anyway, and there are multiple ways of letting SQLite access databases in S3 buckets, e.g. https://github.com/michalc/sqlite-s3-query
-
Show HN: Query SQLite files stored in S3
Aha! This is done in https://github.com/uktrade/mbtiles-s3-server, but using an alternative library to query SQLite on S3, https://github.com/michalc/sqlite-s3-query
(Full disclosure: I wrote most of both of these)
-
Show HN: Mbtiles-S3-server – serve vector map tiles directly from mbtiles on S3
I was wondering how this ran queries against SQLite files in an S3 bucket. Here's the answer - it's using some very clever Python ctypes code to implement that HTTP Range header trick from last year:
https://github.com/michalc/sqlite-s3-query/blob/main/sqlite_...
Here's the inspiration for that: https://github.com/phiresky/sql.js-httpvfs
- Ws4sqlite: Query SQLite via HTTP
- Show HN: SQLite-S3-query – Python function to query a SQLite database on S3
What are some alternatives?
PMTiles - Cloud-optimized + compressed single-file tile archives for vector and raster maps
sqlite3vfshttp - Go sqlite3 http vfs: query sqlite databases over http with range headers
mbtiles-s3-server - Python server to on-the-fly extract and serve vector tiles from an mbtiles file on S3
athena-sqlite - A SQLite driver for S3 and Amazon Athena 😳
ngx_http_mbtiles_module - A nginx module to serve map tiles directly from mbtiles container files
tuql - Automatically create a GraphQL server from a SQLite database or a SQL file
headway - Self-hostable maps stack, powered by OpenStreetMap.
sql.js-httpvfs - Hosting read-only SQLite databases on static file hosters like Github Pages
planetiler - Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
ws4sqlite - Query sqlite via json+http
mbtiles-php - PHP backend for reading tiles from mbtiles databases