Live data from Hacker News

Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

github.com

71–80 of 84 posts

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#71
post #29

While useful, this still uses a server to process tile requests. Why not https://github.com/protomaps/PMTiles ? For the record, I am currently using maptiler over at https://citybik.es to serve tiles, and I am evaluating moving to serving static pmtiles on range requests to cut the middle man

[deleted]

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#72
Tangentially related, does anyone know of an open source 3D terrain system?

I’ve been thinking of making a native map and globe program similar to Google earth to embed inside a dashboard (visually similar to kerbal space program).

So far I was thinking about just using ArcGIS (or something else) and taking in free Lidar data and imposing the depth to satellite or OSM tiles then rendering them as OBJs in OpenGL (or maybe a full 3d engine like unity). This unfortunately wouldn’t be an automatic process as lidar data is taxing to process in real time, especially for a SBC.

I do see that there are some 3D tiles sets out there but I don’t see where I can pull them from nor how it compares to the lidar data.

However, the main goal is a 3D terrain viewer in an offline native program.

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#73
post #29

While useful, this still uses a server to process tile requests. Why not https://github.com/protomaps/PMTiles ? For the record, I am currently using maptiler over at https://citybik.es to serve tiles, and I am evaluating moving to serving static pmtiles on range requests to cut the middle man

Hosting maps of the entire planet in a single file doesn't seem practical. How do you keep it updated? PMTiles is good for small local maps, but I don't think they're meant for this scale.

Here's an example of the entire planet as a PMTiles:

https://pmtiles.io/?url=https%3A%2F%2Fdata.source.coop%2Fpro...

This is zoom 0-15, or 1,431,655,765 addressed tiles. So it is designed for this scale - for a production internet site you can add a lambda, server or CDN as an additional layer for lower latency: https://docs.protomaps.com/deploy/

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#74
post #42

Does anyone know if there is a way to host just a few of the tiles in a static way? For example, if I wanted to build a web page which just shows a map at zoom level 6 for a lat/lng point, and then go to zoom level 13. That would require a tiny subset of tiles; is there a simple way to add the tiles plus the JS code in a static way so no external downloads were necessary?

Yes, that’s pretty easy. I did it for Half Moon Bay, California here: https://simonw.github.io/hmb-map/

Code here: https://github.com/simonw/hmb-map

TIL here: https://til.simonwillison.net/gis/pmtiles

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#75

Tangentially related, does anyone know of an open source 3D terrain system? I’ve been thinking of making a native map and globe program similar to Google earth to embed inside a dashboard (visually similar to kerbal space program). So far I was thinking about just using ArcGIS (or something else) and taking in free Lidar data and imposing the depth to satellite or OSM tiles then rendering them as OBJs in OpenGL (or m…

> Tangentially related, does anyone know of an open source 3D terrain system?

You can get the heightmap from NASA. It's 10x10 meter resolution, which is enough for static geography.

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#77

Earlier quoted context omitted.

You can simply pre-render them and store the png tiles in a folder. The folder structure and naming has to be such that e.g. leaflet understands it. Did this for a research demo here: https://map2seq.schumann.pub/nllni/demo/

Is there actually a simple way to pre-render? AFAIK it's a lot of work and learning at least if you're coming from scratch.

I've used TileMill to create tiles for a specific layer of data for a specific area. (Fire evacuation zones for a county.)

https://github.com/tilemill-project

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#78
post #58

Earlier quoted context omitted.

I've always wondered why people keep adding the s. Is it marketing because Google Map sounds like a spelling mistake (missing 's after Google) and we're noticing the effect of that other brand, or is there something about OpenStreetMap that makes it seem like a plural project? People don't say Linuxes, Signals, or Androids

I think it's most likely that most of the other commonly used alternatives (most significantly Google Maps but also Apple Maps, Bing Maps, Maps.me) use the plural.

Whereas when OSM started, they didn't (StreetMap and Multimap in the UK, MapQuest in the US).

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#79
post #54

Earlier quoted context omitted.

Yeah going to full 20 requires about 2TB iirc, OSM doesn't host beyond level 19 anymore either to reduce traffic. 14 is around 10m per pixel, best you'll be able to make out on that is like a street. Not useful enough to bother with imho, even 19 leaves a lot to be desired up close. https://wiki.openstreetmap.org/wiki/Zoom_levels

Worth noting that these are vector tiles and not raster tiles, so zoom levels work slightly differently. Generally you don't need as high zoom level with vector tiles since it is much easier to 'zoom in' on vector data than on raster data. A vector zoom level of 14 stores the data with roughly 50cm precision which is good enough for most casual mapping uses.

Ah quite right, I see they're mvt. In that case it might actually be usable.

Re: Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

#80
Hmm, Im not really sure why MBTiles are popular? They seems to be cache unfriendly. Good old tiles via /{x}/{y}/{z}.png seems to be better. And you can slap web cache in front.

Hosting those is super simple. The problem I have is how to generate them efficently w/o big resources.

Post reply on HN