in renderd.conf we a same thing as in render_config.h ; ------------- renderd.conf------------ [mapnik] plugins_dir=/usr/local/lib64/mapnik/input font_dir=/usr/local/lib64/mapnik/fonts font_dir_recurse=1 ------------------------------------------------
------------------ render_config.h ---------- // Mapnik input plugins (will need to adjust for 32 bit libs) #define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input" // Default directory to search for fonts. Recursion can be enabled if desired. #define FONT_DIR "/usr/local/lib64/mapnik/fonts" #define FONT_RECURSE 1 ---------------------------------------------------------------- I guess the .h file just helps putting default values in the mod_tile library/executable, overridden by what's in the .conf file... 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). 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... Jonathan On Fri, Jan 15, 2010 at 3:26 PM, Jonathan-David SCHRODER < jonathan.schro...@gmail.com> wrote: > Hello, > this relates to a feature request as to mod tile concerning path variables. > I stumbled upon this because I need to edit several files before starting > to compile. > > In mod_tiles from http://svn.openstreetmap.org/applications/utils/mod_tile > many paths are hardcoded in separate files > it would be nice: > a) to have them written in a single file... > 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). > > Take care > > Jonathan > > r...@domu-12-31-39-00-5d-87:~/mod_tile# grep "#define" * -R | grep "\"/" > daemon.c:#define PIDFILE "/var/run/renderd/renderd.pid" > mysql2file.c:#define WWW_ROOT "/var/www/html" > mysql2file.c:#define TILE_PATH "/osm_tiles2" > protocol.h:#define RENDER_SOCKET "/tmp/osm-renderd" > render_config.h:#define HASH_PATH "/var/lib/mod_tile" > render_config.h://#define TILE_PATH "/var/www/html/osm_tiles2" > render_config.h:#define RENDERD_CONFIG "/etc/renderd.conf" > render_config.h:#define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input" > render_config.h:#define FONT_DIR "/usr/local/lib64/mapnik/fonts" > render_config.h:#define PLANET_TIMESTAMP "/planet-import-complete" > render_config.h.mine:#define HASH_PATH "/var/lib/mod_tile" > render_config.h.mine://#define TILE_PATH "/var/www/html/osm_tiles2" > render_config.h.mine:#define RENDERD_CONFIG "/etc/renderd.conf" > render_config.h.mine:#define MAPNIK_PLUGINS "/usr/local/lib/mapnik/input" > render_config.h.mine:#define FONT_DIR "/usr/local/lib32/mapnik/fonts" > render_config.h.mine:#define PLANET_TIMESTAMP "/planet-import-complete" > >
_______________________________________________ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev