Hi Kai,<br><br>This is pretty interesting. Thanks for setting this up.<br><br>How does this whole thing handle the coastlines?<br><br>Thanks,<br>Eugene<br><br><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 6:13 AM, Kai Krueger <span dir="ltr"><<a href="mailto:kakrueger@gmail.com">kakrueger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello everyone,<br>
<br>
with the recent need to crack down on tile scrapers and apps to not over<br>
tax the main OSM tileservers and hosting, there has been a lot of talk<br>
trying to convince people to set up their own tileserver.<br>
<br>
Although that is of cause by far not the only hurdle to set up your own<br>
tileserver, one barrier is perhaps the perceived complicated procedure<br>
to set up all the elements necessary. Although there are a number of<br>
decent howtos already available on the wiki (perhaps even to many, each<br>
containing slightly different advice...), it is perhaps still more<br>
effort than people want to get into.<br>
<br>
In the hope to make this process even simpler, I have created a bunch of<br>
packages for Ubuntu containing all the necessary software, as well as<br>
glue packages to deal with the necessary setup and interaction between<br>
the different components.<br>
<br>
The packages aren't perfect yet, but hopefully sufficiently helpful<br>
already to be of use to others who are interested in playing around with<br>
their own tileserver.<br>
<br>
A simple standard tileserver can now be setup in 5 commands in a terminal:<br>
<br>
sudo add-apt-repository ppa:kakrueger/openstreetmap<br>
sudo apt-get install libapache2-mod-tile<br>
wget <a href="http://download.geofabrik.de/osm/north-america/us/colorado.osm.pbf%0Aosm2pgsql" target="_blank">http://download.geofabrik.de/osm/north-america/us/colorado.osm.pbf<br>
osm2pgsql</a> -C 1500 colorado.osm.pbf<br>
sudo /etc/init.d/renderd restart<br>
<br>
At the end you should have a working tileserver based on mod_tile and<br>
renderd with the standerd OSM-mapnik stylesheet.<br>
<br>
You can test it out by opening the installed slippymap at<br>
<a href="http://localhost/osm/slippymap.html" target="_blank">http://localhost/osm/slippymap.html</a><br>
<br>
You will of cause want to replace the above lines with the downloading<br>
and importing of an extract with the extract you care about.<br>
<br>
Although for smaller areas hardware requirements aren't too bad, they<br>
quickly go up beyond what can be handled by a standard desktop computer.<br>
My rough guestimate of what a typical desktop / laptop can handle is<br>
about an extract of 100 - 300 Mb (no more than an hours worth of<br>
import). This covers most of the US and German states, as well as many<br>
of the other less densely mapped countries.<br>
<br>
If you are more serious about your tileserver, you will need to tune the<br>
various configuration settings, but just to play around and for personal<br>
use, the default settings should work reasonable.<br>
<br>
More information can be found on yet another wiki-page... (<br>
<a href="http://wiki.openstreetmap.org/wiki/Ubuntu_tile_server" target="_blank">http://wiki.openstreetmap.org/wiki/Ubuntu_tile_server</a> )<br>
<br>
Any comments or feedback are welcome,<br>
<br>
Kai<br>
</blockquote></div><br>