[OSM-talk] Installing your own tileserver on Ubuntu

Kai Krueger kakrueger at gmail.com
Tue Oct 18 16:59:10 BST 2011


On 10/18/11 9:31 AM, Joseph Reeves wrote:
> Hi Kai,
>
>> The pre-rendered tiles are stored in /var/lib/mod_tile/default. You can
>> simply delete those files and they will automatically get rerendered the
>> next time you view them.
> Great, thanks, that's working great.
>
>> I have seen that you appear to need to restart renderd (sudo
>> /etc/init.d/renderd restart) after a new import, as it otherwise appears to
>> still use old data (It is kind of odd, so I might have the wrong impression
>> here).
> Sorry, I should've said in my previous email - I was assuming this to
> be the case. Out of interest, is there any log output from renderd?
sudo tail -f /var/log/syslog

should give you some output of what renderd is doing, including which 
tiles it is rendering and when it has completed them
> I'm running this on a netbook so tiles take a while to be produced;
I'd imagine a netbook might struggle a little with rendering tiles on 
the fly... ;-) But eventually they should be done.
>   it
> would be interesting to see some logs so that I know it's all working
> as I expect.
>
>> However, what you are trying to do is as far as I know not supported by
>> osm2pgsql. Although it seems to be a much requested feature, I don't think
>> osm2pgsql currently handles importing of multiple extracts. The --append
>> option doesn't really do what you would think it does.
> I tried the append flag and got an error about an already existing way
> - it would be good if osm2pgsql would simply ignore any ways that
> already exist in the database. I re-ran osm2pgsql without the --slim
> option, however, and the import was successful. I currently have
> Bulgaria and Romania working on my netbook :)
Interesting that the non-slim mode works with appending multiple extracts.

It is possible that one could catch the errors in slim mode and then 
only do the expensive diff processing for those node / ways that are 
duplicate in the extracts.
>
> Am trying to re-import Turkey now, then onwards with bits of Europe!
> If it all works out do you mind if I do a bit of wiki fiddling on your
> instructions?
No go ahead and improve the instructions
>
> Thanks again,
>
> Joseph
>




More information about the talk mailing list