3 ms·
Ask HN: I'm running an Open Street Map tile server. How can I create .osm files?
Hi Guys,
Thanks in advance - I am running a self hosted Open Street Map tile server and can access it and fly around the map in the browser to my hearts content.
I would however like to be able to 'download' or otherwise produce on the server '.osm' files based on either the map view, or some supplied co-ords - or any way really.
I have looked through switch2osm and leaflet etc and I can't see what I'm looking for.
If anyone can send a link my way to what I'm looking for I should be forever grateful.
Thanks again!
- MonxK6PY7 5y agoI should say I am aware of free and generous third party providers online - however I am specifically looking to do it myself. An example of my quest might be https://protomaps.com/downloads/osm https://protomaps.com/downloads/osm which allows me to draw on the map and then download a .osm file based on that.
- neximo64 5y agoIsn't it an XML i don't get it, its a plaint text format & quite clear (https://wiki.openstreetmap.org/wiki/OSM_XML https://wiki.openstreetmap.org/wiki/OSM_XML)
- mtmail 5y agohttps://help.openstreetmap.org/ https://help.openstreetmap.org/ is a better targeted help forum. Try fetching the map bounds (leafletjs method on the map object or plugin like https://github.com/Leaflet/Leaflet.draw https://github.com/Leaflet/Leaflet.draw), then extract the region from your planet or country .osm/.o5m/*.pbf file with https://osmcode.org/osmium-tool/manual.html#creating-geographic-extracts https://osmcode.org/osmium-tool/manual.html#creating-geograp...
- MonxK6PY7 5y agoHi Mtmail - perfect - that it exactly what I'm looking for. Appreciate the help.