[OSM-dev] Mod_tile problem
Hari Novferdianto
novferdianto at gmail.com
Wed Dec 19 08:08:53 GMT 2012
Hi all, I wanna know why my mod_tile not rendering anyhing.
I already install osm2pgsql, mapnik, mod_tile.
My /etc/renderd.conf is :
[renderd]
socketname=/var/run/renderd/renderd.sock
num_threads=4
;tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET
tile_dir=/usr/local/www/apache2/data/osm_tiles2
stats_file=/var/run/renderd/renderd.stats
[mapnik]
plugins_dir=/usr/local/lib/mapnik2/input
font_dir=/usr/local/lib/mapnik2/fonts
font_dir_recurse=1
[default]
URI=/osm_tiles2/
XML=/usr/home/ferdi/mapnik/osm.xml
HOST=localhost
My httpd.conf is :
LoadModule tile_module libexec/apache22/mod_tile.so
Alias /osm_tiles2/ /usr/local/www/apache2/data/osm_tiles2/
<Directory "/usr/local/www/apache2/data/osm_tiles2/">
Options All
AllowOverride All
Order deny,allow
Allow from All
SetHandler DefaultHandler
LoadTileConfigFile /etc/renderd.conf
ModTileRenderdSocketName /var/run/renderd/renderd.sock
ModTileRequestTimeout 60
ModTileMissingRequestTimeout 60
ModTileCacheDurationMax 604800
ModTileCacheDurationDirty 900
ModTileCacheDurationMinimum 10800
ModTileCacheDurationMediumZoom 14 86400
ModTileCacheDurationLowZoom 9 518400
ModTileCacheLastModifiedFactor 0.20
</Directory>
When I reload my apache, I've got this note :
Performing sanity check on apache22 configuration:
[Wed Dec 19 15:02:27 2012] [notice] Committing tile config default
[Wed Dec 19 15:02:27 2012] [notice] Loading tile config default at
/osm_tiles2/ for zooms 0 - 18 from tile directory /var/lib/mod_tile with
extension .png and mime type image/png
Syntax OK
Then, I run renderd on foreground ' renderd -f '
This is my output :
renderd[63859]: Rendering daemon started
renderd[63859]: Parsing section renderd
renderd[63859]: Parsing render section 0
renderd[63859]: Parsing section mapnik
renderd[63859]: Parsing section default
renderd[63859]: config renderd: unix
socketname=/var/run/renderd/renderd.sock
renderd[63859]: config renderd: num_threads=4
renderd[63859]: config renderd: num_slaves=0
renderd[63859]: config renderd:
tile_dir=/usr/local/www/apache2/data/osm_tiles2
renderd[63859]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[63859]: config mapnik: plugins_dir=/usr/local/lib/mapnik2/input
renderd[63859]: config mapnik: font_dir=/usr/local/lib/mapnik2/fonts
renderd[63859]: config mapnik: font_dir_recurse=1
renderd[63859]: config renderd(0): Active
renderd[63859]: config renderd(0): unix
socketname=/var/run/renderd/renderd.sock
renderd[63859]: config renderd(0): num_threads=4
renderd[63859]: config renderd(0):
tile_dir=/usr/local/www/apache2/data/osm_tiles2
renderd[63859]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[63859]: config map 0: name(default)
file(/usr/home/ferdi/mapnik/osm.xml) uri(/osm_tiles2/) htcp()
host(localhost)
renderd[63859]: Initialising unix server socket on
/var/run/renderd/renderd.sock
renderd[63859]: Created server socket 4
renderd[63859]: Renderd is using mapnik version 2.0.0
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSans-Bold.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSans-BoldOblique.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSans-ExtraLight.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSans-Oblique.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSans.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansCondensed-Bold.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansCondensed-BoldOblique.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansCondensed-Oblique.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansCondensed.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansMono-Bold.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansMono-BoldOblique.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansMono-Oblique.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSansMono.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerif-Bold.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerif-BoldItalic.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerif-Italic.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerif.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerifCondensed-Bold.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerifCondensed-BoldItalic.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerifCondensed-Italic.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/DejaVuSerifCondensed.ttf
renderd[63859]: DEBUG: Loading font:
/usr/local/lib/mapnik2/fonts/unifont-5.1.20080907.ttf
Running in foreground mode...
renderd[63859]: Starting stats thread
and I copy map.html from this link
http://wiki.openstreetmap.org/wiki/HowTo_mod_tile
But I didn't see anything when I visit http://172.16.0.9/osm_tiles2/map.html
Can you help me to solve this problem.. ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20121219/601e833d/attachment.html>
More information about the dev
mailing list