Hi, I have a local tile server. I use osm2pgsql to import the osm map data to local server. I want to clean up all the existing data and import fresh data. How can i do it? asked 09 Feb '16, 11:21 Reshma Maner aseerel4c26 ♦ |
If you run osm2pgsql without answered 09 Feb '16, 11:31 Frederik Ramm ♦ I executed following commands. But still map is not correctly displayed. Upper zoom level map is not displayed. On detailed zoom level only map shows. sudo -u www-data osm2pgsql -C 2048 --slim --number-processes 4 india-latest.osm.pbf --cache-strategy sparse touch /mod_tile/planet-import-complete /etc/init.d/renderd restart Path of my mod_tile directory is different than /var/lib. This path is mentioned in renderd.conf. Do I need to mention the path in osm2pgsql command also? Also, after i execute above command, data of other countries which was renered previously should have been cleaned up. But it is not. It shows on map.
(09 Feb '16, 11:34)
Reshma Maner
1
There are at least three places that "old data" can lurk. One is in the database; as Frederik has said osm2pgsql without --append will empty that and replace with whatever you're replacing it with. The next is the metatile cache. If you look in "/var/lib/mod_tile" you'll see directories for each style you're displaying; if you haven't changed the name from "default" you'll see a directory called "default". Below there you'll see subdirectories for each zoom level, perhaps something like this:
Below each subdirectory you'll eventually find ".meta" files such as:
To remove this cache, just delete these files. Finally, there's the cache in your browser itself - usually a refresh will sort things out there.
(09 Feb '16, 13:35)
SomeoneElse ♦
|