Why not ask your question on the new OpenStreetMap Community Forum?


I have the idea to setup my own Server with osm data so i dont have to take the server power from osm to download my maps to my android phone (locus). as an "output" i want to use the data on locus in sqlite format, not tiles.

i tried to set up an ubuntu machine with help of the following instructions: http://wiki.openstreetmap.org/wiki/The_Rails_Port http://wiki.openstreetmap.org/wiki/Rails_on_Ubuntu http://weait.com/content/build-your-own-openstreetmap-server

all i get to now is what you can see here: im kinda stuck now and hope to get some help over here

asked 13 May '11, 16:39

sebbo's gravatar image

accept rate: 0%

so i just need this: http://weait.com/content/build-your-own-openstreetmap-server

but how do i continue after that. i dont get it on how to use the generate_tiles.py

permanent link

answered 13 May '11, 18:10

sebbo's gravatar image

accept rate: 0%

I cant remember if you change the params in the file or add them on the command line, but basically you choose a bounding box + two tile levels and it will generate all the tiles for those levels & bbox. You need to say which directory to use (usually tiles in the mapnik root). A useful set might be from z10 to z13 for a 1 degree square.

(13 May '11, 19:01) SK53 ♦

As I understand it Locus caches tiles rather than vector data in its sqlite database. You do not need the rails port to render tiles, just Postgres+Postgis and Mapnik are required.

For a limited area you might choose to generate all tiles using the generate_tiles.py python script provided with mapnik. For larger areas some kind of selectivity for tile generation is useful using mod_tile and renderd/tirex.

permanent link

answered 13 May '11, 17:37

SK53's gravatar image

SK53 ♦
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 13 May '11, 16:39

question was seen: 16,039 times

last updated: 13 May '11, 19:01

powered by OSQA