Is there a way to make it so that I can specify only a single layer for my tiles to be drawn on?<br><br>Thanks, S.D.<br><br><b><i>Paul Spencer <pspencer@dmsolutions.ca></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> That's probably about right ... the map would be redrawn only at the <br>refresh interval but the layers would be redrawn at the redraw <br>interval. You would typically get two redraws before the data would <br>change.<br><br>Cheers<br><br>Paul<br><br>On 31-Jul-06, at 4:24 PM, Samuel Doyle wrote:<br><br>> Hi I gave it another try and let it run for awhile and it appears <br>> to eventually work.<br>> I mean, I have set the redraw_interval to be 30 seconds and the <br>> refresh_interval to be 60 seconds. It takes usually three refreshes <br>> before the changes appear on the map.<br>><br>> S.D.<br>><br>> "Delfos, Jacob"
<Jacob.Delfos@maunsell.com> wrote:<br>> Samuel,<br>><br>> I didn't mean for you to make the "force_redraw" a permanent <br>> configuration, but just to test whether your site has a problem <br>> with overwiting tiles. Since it doesn't, it must mean there's <br>> something wrong with the reading/comparing of the timestamp.<br>><br>> I have just done some testing with the most recent CVS code, and on <br>> my side the redraw mechanism works fine; I used these settings in <br>> my metadata:<br>><br>> redraw_interval "60"<br>> tile_source "redraw"<br>><br>> After 1 minute, it would redraw, within one minute of the last <br>> redraw it would return the cached tiles.<br>><br>> Please bear in mind that these metadata values MUST be entered into <br>> the FIRST layer of the group. Only metadata from the first layer is <br>> used.<br>><br>> If you still run into issues, please enter this on line 171 of
<br>> tile.php, after " fclose($h) " :<br>> trigger_error("now: ".$now."; timestamp: ".$timestamp."; interval:". <br>> $interval."; meta_timestamp: ".$meta_timestamp,E_USER_WARNING);<br>><br>> Let us know what it says. Also, give an example URL of one of your <br>> tiles. In Firefox, use "page -> info", and look under the media tab.<br>><br>> regards,<br>><br>> Jacob<br>><br>><br>><br>><br>><br>><br>> From: ka-map-users-bounces@lists.maptools.org [mailto:ka-map-users- <br>> bounces@lists.maptools.org] On Behalf Of Samuel Doyle<br>> Sent: 29 July 2006 08:01<br>> To: Delfos, Jacob<br>> Cc: ka-map-users@lists.maptools.org<br>> Subject: RE: [ka-Map-users] Can someone answer this question please <br>> or tellmewho I should ask it to?<br>><br>> Hi,<br>> I played with the force option in tile.php which appeared to be <br>> very resource intensive. I extended upon this by adding another
<br>> 'force_redraw' field in the metadata section for each layer of <br>> interest in the map file. This resulted in the desired effect <br>> however, it is still very resource intensive even if I'm requesting <br>> just one layer. For every request my server ends up thrashing like <br>> mad. Does anyone have any insight they could provide?<br>><br>> Thanks, S.D.<br>><br>> "Delfos, Jacob" <Jacob.Delfos@maunsell.com> wrote:<br>> Samuel,<br>><br>> Have you checked whether the URL is actually different? Are you <br>> saying it serves out the same tiles, despite the different <br>> timestamp? Did you check whether any tiles actually get re-written?<br>> Have you tried playing with the "force" parameter of tile.php? If <br>> this creates a new tile, it means the problem is it decides it <br>> doesn't need to be re-created. If "force" doesn't work, it means it <br>> isn't able to re-create the tiles.<br>> Is
there a timestamp directory present?<br>><br>> regards,<br>><br>> Jacob<br>><br>><br>><br>> From: Samuel Doyle [mailto:sdoyle_2@yahoo.com]<br>> Sent: 28 July 2006 09:31<br>> To: Delfos, Jacob<br>> Subject: RE: [ka-Map-users] Can someone answer this question please <br>> or tell mewho I should ask it to?<br>><br>> Thanks for the repsonse.<br>><br>> Yes I have included the redraw_interval and have tried the various <br>> combinations even setting tile_source to nocache setting the <br>> redraw_interval to be both greater then and less then the <br>> refresh_inteval even though it looks as if it should be less then <br>> what you set for the refresh_interval. In the end In the end I <br>> always end up needing to delete the tiles directory populated by <br>> mapserver in order to get them regenerated again.<br>><br>> "Delfos, Jacob" <Jacob.Delfos@maunsell.com> wrote:<br>> Samuel,<br>><br>>
Have you looked at the redraw_interval, described in init.php? That <br>> appends a timestamp to the URL of the tile, to force redrawing of <br>> the tiles. refresh-interval only does a re-request, returning a <br>> cached tile.<br>><br>> regards,<br>><br>> Jacob<br>><br>><br>> From: ka-map-users-bounces@lists.maptools.org [mailto:ka-map-users- <br>> bounces@lists.maptools.org] On Behalf Of Samuel Doyle<br>> Sent: 28 July 2006 07:33<br>> To: ka-map-users@lists.maptools.org<br>> Subject: [ka-Map-users] Can someone answer this question please or <br>> tell mewho I should ask it to?<br>><br>> Sorry but I haven't received any answers for the questions I have <br>> posted here but this one is a bit important.<br>><br>> After poking around and guessing at based on what I noticed in the <br>> KaMap code I have place a refresh_interval value in a metadata <br>> section within a layer in my map file. Now, I
can see a periodic <br>> update on the map but the problem is when I have modifed a dbf file <br>> under mapserver those changes are not reflected. So the question <br>> is, is there something I need to do special to get <br>> MapServer or KaMap or whatever to detect an update done to a map so <br>> that it is served properly?? These changes to the map files are <br>> being done programatically and not by hand.<br>><br>> Thanks, S.D.<br>><br>><br>><br>> _______________________________________________<br>> ka-Map-users mailing list<br>> ka-Map-users@lists.maptools.org<br>> http://lists.maptools.org/mailman/listinfo/ka-map-users<br><br>+-----------------------------------------------------------------+<br>|Paul Spencer pspencer@dmsolutions.ca |<br>+-----------------------------------------------------------------+<br>|Applications & Software Development
|<br>|DM Solutions Group Inc http://www.dmsolutions.ca/|<br>+-----------------------------------------------------------------+<br><br><br><br><br></Jacob.Delfos@maunsell.com></Jacob.Delfos@maunsell.com></Jacob.Delfos@maunsell.com></blockquote><br>