Hi all,

I am aware of TileMill, however, I need a library or tool that can take osm data (from a URL, rather than a local file source) and return an MBTiles file. I would like to create my own application where the user can view an area on the map (I plan on using OpenLayers + data from OpenStreetMap) and upon selection of an area, the application can call this tool/library and an MBTiles file can be generated and saved locally. I would then use this MBTiles file to display a map to the user when he/she is off-line.

Does such a tool/library exist? Can TileMill offer this functionality via an API?

Thank you,

-f.

asked 30 Mar '12, 06:24

fabasi's gravatar image

fabasi
11112
accept rate: 0%

edited 30 Mar '12, 06:25


It looks like you will either have to download the files first and then use mbutil to make an MBTiles file, or you will have to modify that utility to read from the web instead of from a file.

Be aware that while it is ok to use data from OpenStreetMap for your purpose, it is not acceptable that you use the OSM-provided tile server; you will have to set up your own tile server for that. See Tile Usage Policy.

permanent link

answered 30 Mar '12, 07:17

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
69.5k806311087
accept rate: 24%

Thanks for the answer; that makes sense. I would be happy to setup my own tiles server, if that is what is needed. So in that case, would I download all the data from osm (periodically?), and host that on my own server? What is required to setup a tiles server? I think that an "enhanced" tiles server which generates MBTiles files is essentially what I am trying to build for the project described above.

Cheers,

-f.

(30 Mar '12, 07:50) fabasi

Well, planet.osm if 29GB (400GB uncompressed XML) so if possible start from a smaller part; see http://wiki.openstreetmap.org/wiki/Planet.osm#Country_and_area_extracts

(09 Jul '14, 22:41) sesam
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×237
×36
×17
×14
×10

question asked: 30 Mar '12, 06:24

question was seen: 9,173 times

last updated: 09 Jul '14, 22:41

powered by OSQA