<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">I've been playing with precache.php this week and have tips for Ana and a question of my own.<br><br>My question: <br><ul><li>How do I pass map extents into precache.php? By default it wants to precache everything, which is not practical for the volume of map data I have. I'm using Openlayers to clip the end users map to a subset of the Mapserver map file coverage. Now I want to precache my data to match. Any suggestions on how to approach this problem?<br></li></ul>Regarding Ana's post, <br><ol><li>If you are getting a visible map, you have a valid tile.php and config.php. Change your precache.php to reference the config.php that works. Otherwise, edit your config.php or precache.php and fix the line with " $szPHPMapScriptModule =
'php_mapscript_46.'.PHP_SHLIB_SUFFIX;" to match the ".dll" or ".so" file in your mapserver distribution. If using ms4w, you can find the relevant file in ms4w\Apache\php\ext.</li><li>One of the most critical pieces to getting started with this stuff was learning to directly load "tile.php" in the browser. When I had a php syntax error or map configuration problem, this was how I could see a human readable error message.</li><li>When I started using precache.php with ms4w on windows, it took me a while to figure out that I had to copy \ms4w\proj to \proj to get it work. precache.php would not respect or use the PROJ_LIB environment variable as advertised.</li></ol>----- Original Message ----<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">From: ana kando <anakando@yahoo.com><br>To:
ka-map-users@lists.maptools.org<br>Subject: [ka-Map-users] slow loading<br><br><div>hi guys</div> <div>i'm newbie here..i have 1question here..</div> <div> i have a very large of shape file to load to kamap.it take more than 30second to load all my 27 layers into kamap..i have read about precache to optimize my kamap performance and i tried to use this stuff but i received like this error msg "unable to load php_mapscript_48"..can anybody tell tell me what is going on?and how to solve this problem? is there any ways to optimize my kamap performance?</div></div><br></div></div></body></html>