Re: [OSM-talk] how to make renderd.py render more than 18 levels
On Wednesday 18 Nov 2009 1:01:45 pm Peter Körner wrote: Nothing in the apache error log, I guess..? Maybe you changed sth. you better shouldn't touch. Can you make a diff against the original checkout and post it here, so we can see what you changed? the diff is attached - I also changed some C thing into long int, but it wasn't working even before that. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ Only in mod_tile/: convert_meta diff mod_tile/convert_meta.c modtile/convert_meta.c 36c36 static int maxZoom = 20; --- static int maxZoom = 18; 123,124c123,124 if (minZoom 0 || minZoom 20) { fprintf(stderr, Invalid minimum zoom selected, must be between 0 and 20\n); --- if (minZoom 0 || minZoom 18) { fprintf(stderr, Invalid minimum zoom selected, must be between 0 and 18\n); 130,131c130,131 if (maxZoom 0 || maxZoom 20) { fprintf(stderr, Invalid maximum zoom selected, must be between 0 and 20\n); --- if (maxZoom 0 || maxZoom 18) { fprintf(stderr, Invalid maximum zoom selected, must be between 0 and 18\n); 154c154 fprintf(stderr, -Z, --max-zoom only process tiles less than or equal to this zoom level (default is 20)\n); --- fprintf(stderr, -Z, --max-zoom only process tiles less than or equal to this zoom level (default is 18)\n); Common subdirectories: mod_tile/debian and modtile/debian Only in mod_tile/: dir_utils.lo Only in mod_tile/: dir_utils.o Only in mod_tile/: dir_utils.slo diff mod_tile/gen_tile.cpp modtile/gen_tile.cpp 44c44 static const int maxZoom = 20; --- static const int maxZoom = 18; 64c64 SphericalProjection(int levels=20) { --- SphericalProjection(int levels=18) { Common subdirectories: mod_tile/iniparser3.0b and modtile/iniparser3.0b Only in mod_tile/: .libs diff mod_tile/Makefile modtile/Makefile 39c39 RENDER_LDFLAGS += -lmapnik -L/usr/local/lib -Liniparser3.0b -liniparser --- RENDER_LDFLAGS += -lmapnik -L/usr/local/lib64 -Liniparser3.0b -liniparser diff mod_tile/mod_tile.c modtile/mod_tile.c 57,65c57,65 long int noResp200; long int noResp304; long int noResp404; long int noResp5XX; long int noRespOther; long int noFreshCache; long int noFreshRender; long int noOldCache; long int noOldRender; --- apr_uint64_t noResp200; apr_uint64_t noResp304; apr_uint64_t noResp404; apr_uint64_t noResp5XX; apr_uint64_t noRespOther; apr_uint64_t noFreshCache; apr_uint64_t noFreshRender; apr_uint64_t noOldCache; apr_uint64_t noOldRender; Only in mod_tile/: mod_tile.c~ Only in mod_tile/: mod_tile.la Only in mod_tile/: mod_tile.lo Only in mod_tile/: mod_tile.o Only in mod_tile/: mod_tile.slo Common subdirectories: mod_tile/munin and modtile/munin diff mod_tile/render_all modtile/render_all 3c3 for z in `seq 0 20` --- for z in `seq 0 18` diff mod_tile/render_config.h modtile/render_config.h 4c4 #define MAX_ZOOM 20 --- #define MAX_ZOOM 18 34c34 #define MAPNIK_PLUGINS /usr/local/lib/mapnik/input --- #define MAPNIK_PLUGINS /usr/local/lib64/mapnik/input 37c37 #define FONT_DIR /usr/local/lib/mapnik/fonts --- #define FONT_DIR /usr/local/lib64/mapnik/fonts Only in mod_tile/: renderd diff mod_tile/renderd.conf modtile/renderd.conf 8,9c8,9 plugins_dir=/usr/local/lib/mapnik/input font_dir=/usr/local/lib/mapnik/fonts --- plugins_dir=/usr/local/lib64/mapnik/input font_dir=/usr/local/lib64/mapnik/fonts 14,15c14,15 XML=/home/lawgon/install/mapnik/india.xml :HOST=tile.openstreetmap.org --- XML=/home/jburgess/osm/svn.openstreetmap.org/applications/rendering/mapnik/osm-local.xml HOST=tile.openstreetmap.org diff mod_tile/renderd.py modtile/renderd.py 42c42 MAX_ZOOM = 20 --- MAX_ZOOM = 18 164c164 def __init__(self,levels=20): --- def __init__(self,levels=18): 551c551 num_threads=16 --- num_threads=4 Only in mod_tile/: render_list diff mod_tile/render_list.c modtile/render_list.c 34c34 static int maxZoom = 20; --- static int maxZoom = 18; 399,400c399,400 if (minZoom 0 || minZoom 20) { fprintf(stderr, Invalid minimum zoom selected, must be between 0 and 20\n); --- if (minZoom 0 || minZoom 18) { fprintf(stderr, Invalid minimum zoom selected, must be between 0 and 18\n); 406,407c406,407 if (maxZoom 0 || maxZoom 20) { fprintf(stderr, Invalid maximum zoom selected, must be between 0 and 20\n); --- if (maxZoom 0 || maxZoom 18) { fprintf(stderr, Invalid maximum zoom selected, must be between 0 and 18\n); 422c422 fprintf(stderr, -Z, --max-zoom=ZOOM filter input to only render tiles less than or equal to this zoom level (default is 20)\n); ---
Re: [OSM-talk] how to make renderd.py render more than 18 levels
Kenneth Gonsalves schrieb: On Wednesday 18 Nov 2009 1:01:45 pm Peter Körner wrote: Nothing in the apache error log, I guess..? Maybe you changed sth. you better shouldn't touch. Can you make a diff against the original checkout and post it here, so we can see what you changed? the diff is attached - I also changed some C thing into long int, but it wasn't working even before that. Just another idea: did you create the zoomlevel dirs: diff mod_tile/update modtile/update 44,45c44,45 rm -fR `seq 0 20` mkdir `seq 0 20` --- rm -fR `seq 0 18` mkdir `seq 0 18` Peter ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] how to make renderd.py render more than 18 levels
On Wed, 2009-11-18 at 06:58 +0530, Kenneth Gonsalves wrote: hi, I edited renderd.py and changed MAX_ZOOM=20 and levels=20. But it is still not rendering more than 18 levels - where else do I change it? I am using mod_tile. I tried the plain C renderd and it looked like it was working at zoom 20 with the changes from the patch you supplied. If have updated to the very latest mod_tile code then I suspect the problem is nothing to do with the zoom range. It is that the renderd.py has not been updated to understand the two new types of request: priority bulk. At the moment all these requests are being dropped by the python code. You might want to downgrade your code back to before r17688 which added these two new render commands rebuild. We should probably rev the protocol version because of the new enum values. Jon ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] how to make renderd.py render more than 18 levels
On Thursday 19 Nov 2009 5:14:41 am Jon Burgess wrote: On Wed, 2009-11-18 at 06:58 +0530, Kenneth Gonsalves wrote: hi, I edited renderd.py and changed MAX_ZOOM=20 and levels=20. But it is still not rendering more than 18 levels - where else do I change it? I am using mod_tile. I tried the plain C renderd and it looked like it was working at zoom 20 with the changes from the patch you supplied. w00t - renderd works perfectly upto zoom 20 -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] how to make renderd.py render more than 18 levels
On Wednesday 18 Nov 2009 1:38:52 pm Peter Körner wrote: Just another idea: did you create the zoomlevel dirs: diff mod_tile/update modtile/update 44,45c44,45 rm -fR `seq 0 20` mkdir `seq 0 20` --- rm -fR `seq 0 18` mkdir `seq 0 18` check the diff - it is there -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] how to make renderd.py render more than 18 levels
I edited renderd.py and changed MAX_ZOOM=20 and levels=20. But it is still not rendering more than 18 levels - where else do I change it? I am using mod_tile. Just a guess: http://svn.openstreetmap.org/applications/utils/mod_tile/render_config.h #define MAX_ZOOM 18 maybe you could do a grep on all source-files in mod_tile, searching for 18? Peter ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] how to make renderd.py render more than 18 levels
On Wednesday 18 Nov 2009 12:48:53 pm Peter Körner wrote: I edited renderd.py and changed MAX_ZOOM=20 and levels=20. But it is still not rendering more than 18 levels - where else do I change it? I am using mod_tile. Just a guess: http://svn.openstreetmap.org/applications/utils/mod_tile/render_config.h #define MAX_ZOOM 18 maybe you could do a grep on all source-files in mod_tile, searching for 18? I did that - changed 18 everywhere to 20. Did a make clean, make and make install. mod_tile appears to work, renderd.py is sending the correct file names to the server, but it is not writing the tiles to the directory and I get nothing rendered - at any zoom. Any clues as to why it should not write to the directory? the permissions are correct and it was doing it before the new make. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] how to make renderd.py render more than 18 levels
maybe you could do a grep on all source-files in mod_tile, searching for 18? I did that - changed 18 everywhere to 20. Did a make clean, make and make install. mod_tile appears to work, renderd.py is sending the correct file names to the server, but it is not writing the tiles to the directory and I get nothing rendered - at any zoom. Any clues as to why it should not write to the directory? the permissions are correct and it was doing it before the new make. Nothing in the apache error log, I guess..? Maybe you changed sth. you better shouldn't touch. Can you make a diff against the original checkout and post it here, so we can see what you changed? Peter ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk