Hi, I am trying to develop an offline application using OSM. I downloaded some OSM data and imported to my local server. First i downloaded Amsterdam map and imported to my server it works fine. I need the same thing for other few areas too. When i import other areas the map doesn't display in certain zoom level. But my previous amsterdam maps is displayed without any problem. What is the solution for this problem.

image link: http://imageshack.us/a/img706/7272/screenshotfrom201301021.png

asked 04 Jan '13, 04:42

asfer%20mohamed's gravatar image

asfer mohamed
11114
accept rate: 0%

edited 05 Jan '13, 01:58

1

Hi Asfer! Maybe it would help to better describe your problem if you would mention which server software you use. Do I understand it right that you have downloaded and imported data and rendered your own tiles?

(04 Jan '13, 16:04) aseerel4c26 ♦

Hi , Yes .. I downloaded map from osm export option and imported to my local server. I am using mapnik for render my maps. Do you have any solution for my problem?

(04 Jan '13, 16:19) asfer mohamed

First of all, if you are starting to need more data than a small box you will need to find another way to download data. The "export" option on osm.org has some limitations on it because it uses the API that is intended for mappers to use in editing the map, not for bulk downloads of map data. If you need more data, please take a look at this page on the wiki:
http://wiki.openstreetmap.org/wiki/Planet.osm#Country_and_area_extracts
There are several providers of city and country extracts which are more suited than the export option on osm.org.

As for your tile problem, it is probably because renderd is caching the tiles. When your browser requests a map tile from the web server, the request is handled by mod_tile which first checks to see if there is a cached version of the tile. If so, it serves it up from the cache. Otherwise it calls renderd/mapnik to render the tile and then puts it in the tile cache so it can be served more quickly next time.

To flush the cache you can try this command:

touch /var/lib/mod_tile/planet-import-complete

You might need to restart renderd as well.

Alternatively, you can just delete the tile cache on disk. I think it keeps them in /var/lib/mod_tile by default.

And even after all that, remember that your browser caches images as well and may take some coaxing to force a reload.

permanent link

answered 04 Jan '13, 21:02

ToeBee's gravatar image

ToeBee
976920
accept rate: 27%

I managed to solve my problem. Problem was with my data. I imported full country map and it solved my problem

permanent link

answered 24 Jan '13, 06:23

asfer%20mohamed's gravatar image

asfer mohamed
11114
accept rate: 0%

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:

×552
×109
×95
×86
×23

question asked: 04 Jan '13, 04:42

question was seen: 3,630 times

last updated: 24 Jan '13, 06:23

powered by OSQA