in renderd.conf we a same thing as in render_config.h ;<br>------------- renderd.conf------------<br>[mapnik]<br>plugins_dir=/usr/local/lib64/mapnik/input<br>font_dir=/usr/local/lib64/mapnik/fonts<br>font_dir_recurse=1<br>
------------------------------------------------<br><br>------------------ render_config.h ----------<br>// Mapnik input plugins (will need to adjust for 32 bit libs)<br>#define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"<br>
<br>// Default directory to search for fonts. Recursion can be enabled if desired.<br>#define FONT_DIR "/usr/local/lib64/mapnik/fonts"<br>#define FONT_RECURSE 1<br>----------------------------------------------------------------<br>
<br>I guess the .h file just helps putting default values in the mod_tile
library/executable, overridden by what's in the .conf file...<br>It would be nice to have a script generating this in both files or just in the .conf file (and make .conf validate for mod_tile to work).<br><br><br>It would be nice to have a ./boostrap script that changes the lib64 in lib on 32 bit machines in the files ... and why not detects where mapnik's /input/ folder is...<br>
<br>Jonathan<br><br><div class="gmail_quote">On Fri, Jan 15, 2010 at 3:26 PM, Jonathan-David SCHRODER <span dir="ltr"><<a href="mailto:jonathan.schroder@gmail.com">jonathan.schroder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>this relates to a feature request as to mod tile concerning path variables.<br>I stumbled upon this because I need to edit several files before starting to compile.<br><br>In mod_tiles from <a href="http://svn.openstreetmap.org/applications/utils/mod_tile" target="_blank">http://svn.openstreetmap.org/applications/utils/mod_tile</a><br>

many paths are hardcoded in separate files<br>it would be nice:<br>a) to have them written in a single file...<br>b) have them loaded at runtime by mod_tile so as to be able to change them and restart mod_tile/apache to work on new paths (eg. just in the mod_tile.conf or a mod_tile_more_config.conf file).<br>

<br>Take care<br><br>Jonathan<br><br>root@domU-12-31-39-00-5D-87:~/mod_tile# grep "#define" * -R | grep "\"/"<br>daemon.c:#define PIDFILE "/var/run/renderd/renderd.pid"<br>mysql2file.c:#define WWW_ROOT "/var/www/html"<br>

mysql2file.c:#define TILE_PATH "/osm_tiles2"<br>protocol.h:#define RENDER_SOCKET "/tmp/osm-renderd"<br>render_config.h:#define HASH_PATH "/var/lib/mod_tile"<br>render_config.h://#define TILE_PATH "/var/www/html/osm_tiles2"<br>

render_config.h:#define RENDERD_CONFIG "/etc/renderd.conf"<br>render_config.h:#define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"<br>render_config.h:#define FONT_DIR "/usr/local/lib64/mapnik/fonts"<br>

render_config.h:#define PLANET_TIMESTAMP "/planet-import-complete"<br>render_config.h.mine:#define HASH_PATH "/var/lib/mod_tile"<br>render_config.h.mine://#define TILE_PATH "/var/www/html/osm_tiles2"<br>

render_config.h.mine:#define RENDERD_CONFIG "/etc/renderd.conf"<br>render_config.h.mine:#define MAPNIK_PLUGINS "/usr/local/lib/mapnik/input"<br>render_config.h.mine:#define FONT_DIR "/usr/local/lib32/mapnik/fonts"<br>

render_config.h.mine:#define PLANET_TIMESTAMP "/planet-import-complete"<br><br>
</blockquote></div><br>