Hello,<br>for our project (Geopard) which does indoor & outdoor mapping, we need zoom levels up to 24 or so.<br>mod_tile's svn's render_config.h defines a constand #define MAX_ZOOM 18 (and also MIN_ZOOM)<br>but this constant is used in only 2 or so files and the rest of max zoom values are hardcoded (just grep for 18 in the svn and you will find them)...<br>
<br>so I changed the code a little so that all harcoded max_zoom values are MAX_ZOOM instead...<br><br>the executables are such that the maxZoom variable can be reset to something different than 18 (but that must be still lower than 18 (= harcoded max_zoom))...<br>
<br>there's still minimum zoom values hardcoding (value is 0) in several files...<br><br>I have no svn write access. Quite frankly, I know that I could look for all hardcoded values that should refer to defines in render_config.h though.. that's not a sufficient step... it would nice to just edit renderd.conf or override that with Apache mod_tile's mod_tile.conf options, instead of having to recompile the full mod_tile directory.<br>
<br>I could implement code changes so that the executables effectively rely on only .conf files max, min zoom (and maybe other) parameters, and have a fallback .conf file for default values that can't be found and are removed from render_config.h such as mod_tile.conf.defaults and renderd.conf.defaults.... maybe there could be a compile option that enables or disables use render_config.h's #define'd constants / use of .conf files (with their .defaults counterpart when user forgets to provide vital options).<br>
<br>I have to rush for now to provide a prototype, so will just the render_config.h #define MAX_ZOOM <nb greater than 18> 's way to recompile mod_tile for now.<br><br>Take care,<br><br>Jonathan<br><br><div class="gmail_quote">
On Fri, Jan 15, 2010 at 4:11 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;">
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)<div class="im"><br>#define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"<br>
<br></div>// Default directory to search for fonts. Recursion can be enabled if desired.<div class="im"><br>#define FONT_DIR "/usr/local/lib64/mapnik/fonts"<br></div>#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"><div class="im">On Fri, Jan 15, 2010 at 3:26 PM, Jonathan-David SCHRODER <span dir="ltr"><<a href="mailto:jonathan.schroder@gmail.com" target="_blank">jonathan.schroder@gmail.com</a>></span> wrote:<br>
</div><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.<div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>
</blockquote></div><br>