Hi,<br>for the render_expired.c program (;-) )..<br>maximum zoom values all equal 18 and are hardcoded<br>this namely also concerns the twopow[18] array<br><br>thus the following macros give a segfault if all values 18 are replaced by something > 18 ; but it works ok for values <= 18 (tested with 16)<br>
#define TILE_REQUESTED(z,x,y) \<br>   (tile_requested[z][((x)*twopow[z]+(y))/(8*sizeof(int))]>>(((x)*twopow[z]+(y))%(8*sizeof(int))))&0x01<br>#define SET_TILE_REQUESTED(z,x,y) \<br>   tile_requested[z][((x)*twopow[z]+(y))/(8*sizeof(int))] |= (0x01 << (((x)*twopow[z]+(y))%(8*sizeof(int))));<br>
<br>this expression : tile_requested[z][((x)*twopow[z]+(y))/(8*sizeof(int))] alone has been tested to be enough to trigger a segfault when function pipe's parameter z=30-3=27<br><br>I apologize to not be able to dig further...<br>
<br>can someone help remove the segfault if all 18 values are replaced by MAX_ZOOM (<=define included from render_config.h) and MAZ_ZOOM is different from 18 ?<br><br>Thanks so much in advance !!<br><br>Jonathan-David Schröder<br>
<br><div class="gmail_quote">On Fri, Jan 22, 2010 at 5:18 PM, Lennard <span dir="ltr"><<a href="mailto:ldp@xs4all.nl">ldp@xs4all.nl</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;">
<div class="im">Jonathan-David SCHRODER wrote:<br>
<br>
> for our project (Geopard) which does indoor & outdoor mapping, we need<br>
> zoom levels up to 24 or so.<br>
> mod_tile's svn's render_config.h defines a constand #define MAX_ZOOM 18<br>
> (and also MIN_ZOOM)<br>
> but this constant is used in only 2 or so files and the rest of max zoom<br>
> values are hardcoded (just grep for 18 in the svn and you will find them)...<br>
<br>
</div>The only 2 hardcoded z18 references I could find for renderd/mod_tile<br>
proper were in gen_tile.cpp. The other references are in the python<br>
support scripts, none of which play a crucial role in normal renderd<br>
operation.<br>
<br>
Unless you use renderd.py instead of renderd, that is. There is another<br>
hardcoded 18 in there.<br>
<br>
I increased my renderd to z19 for haiti related tiles, and that was as<br>
easy as changing those 2 hardcoded '18' occurences and the MAX_ZOOM<br>
define to 19.<br>
<br>
--<br>
<font color="#888888">Lennard<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</div></div></blockquote></div><br>