NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello, I bulid my own tile server using mod_tile, mapnik, PostgreSql, osm2psql, Apache2, leaflet based on ubuntu16.04. But after I used the command "osm2pgsql --slim -d gis -C 3600 --hstore -S openstreetmap-carto-2.41.0/openstreetmap-carto.style chongqing_china.osm.pbf" to update my database. I was sure that the database was updated. But when I typed my ip in my broswer, what I could see wes my previous mapdata not my new data. What should I do to see my new imported mapdata?

asked 25 Nov '17, 04:43

gleide's gravatar image

gleide
797712
accept rate: 50%

First time I use the command I can see the map that is what i imported, But when I use the command to import a different area to the same database, I still only see the previous map. I did renderded again and restarted apache. Hope someone could help me! Thanks very much.

(25 Nov '17, 11:55) gleide

You'll need to stop and restart renderd and apache

sudo /etc/init.d/renderd restart
sudo /etc/init.d/apache2 restart

you'll want to remove old tiles:

sudo rm -rf /var/lib/mod_tiles/wherever/?
sudo rm -rf /var/lib/mod_tiles/wherever/??

and the first time you view the new area in a web browser you'll need to clear-cache or "shift-refresh" to force load a new tile.

permanent link

answered 25 Nov '17, 12:02

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

2

Thank you very much. That solved my problem!

(25 Nov '17, 13:08) gleide

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:

×37
×3
×3
×3

question asked: 25 Nov '17, 04:43

question was seen: 1,936 times

last updated: 25 Nov '17, 13:08

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum