<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>Samuel,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>I didn't mean for you to make the "force_redraw" a
permanent configuration, but just to test whether your site has a problem with
overwiting tiles. Since it doesn't, it must mean there's something wrong with
the reading/comparing of the timestamp.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>I have just done some testing with the most recent CVS
code, and on my side the redraw mechanism works fine; I used these settings in
my metadata:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>redraw_interval "60"<BR>tile_source
"redraw"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>After 1 minute, it would redraw, within one minute of the
last redraw it would return the cached tiles. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>Please bear in mind that these metadata values MUST be
entered into the FIRST layer of the group. Only metadata from the first layer is
used.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>If you still run into issues, please enter this on line 171
of tile.php, after " fclose($h) " :</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>trigger_error("now: ".$now."; timestamp: ".$timestamp.";
interval:".$interval."; meta_timestamp:
".$meta_timestamp,E_USER_WARNING);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>Let us know what it says. Also, give an example URL of one
of your tiles. In Firefox, use "page -> info", and look under the media
tab.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=209211923-30072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ka-map-users-bounces@lists.maptools.org
[mailto:ka-map-users-bounces@lists.maptools.org] <B>On Behalf Of </B>Samuel
Doyle<BR><B>Sent:</B> 29 July 2006 08:01<BR><B>To:</B> Delfos,
Jacob<BR><B>Cc:</B> ka-map-users@lists.maptools.org<BR><B>Subject:</B> RE:
[ka-Map-users] Can someone answer this question please or tellmewho I should
ask it to?<BR></FONT><BR></DIV>
<DIV></DIV>Hi, <BR>I played with the force option in tile.php which appeared
to be very resource intensive. I extended upon this by adding another
'force_redraw' field in the metadata section for each layer of interest in the
map file. This resulted in the desired effect however, it is still very
resource intensive even if I'm requesting just one layer. For every request my
server ends up thrashing like mad. Does anyone have any insight they could
provide?<BR><BR>Thanks, S.D.<BR><BR><B><I>"Delfos, Jacob"
<Jacob.Delfos@maunsell.com></I></B> wrote:
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006>Samuel,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006>Have you checked whether the URL is actually
different? Are you saying it serves out the same tiles, despite the
different timestamp? Did you check whether any tiles actually get
re-written?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006>Have you tried playing with the "force" parameter
of tile.php? If this creates a new tile, it means the problem is it decides
it doesn't need to be re-created. If "force" doesn't work, it means it isn't
able to re-create the tiles. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006>Is there a timestamp directory
present?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006>regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=704143101-28072006>Jacob</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Samuel Doyle
[mailto:sdoyle_2@yahoo.com] <BR><B>Sent:</B> 28 July 2006
09:31<BR><B>To:</B> Delfos, Jacob<BR><B>Subject:</B> RE: [ka-Map-users]
Can someone answer this question please or tell mewho I should ask it
to?<BR></FONT><BR></DIV>
<DIV></DIV>Thanks for the repsonse.<BR><BR>Yes I have included the
redraw_interval and have tried the various combinations even setting
tile_source to nocache setting the redraw_interval to be both greater then
and less then the refresh_inteval even though it looks as if it should be
less then what you set for the refresh_interval. In the end In the end I
always end up needing to delete the tiles directory populated by mapserver
in order to get them regenerated again.<BR><BR><B><I>"Delfos, Jacob"
<Jacob.Delfos@maunsell.com></I></B> wrote:
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2>Samuel,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2>Have you looked at the redraw_interval, described
in init.php? That appends a timestamp to the URL of the tile, to
force redrawing of the tiles. refresh-interval only does a
re-request, returning a cached tile.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=081521701-28072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
ka-map-users-bounces@lists.maptools.org
[mailto:ka-map-users-bounces@lists.maptools.org] <B>On Behalf Of
</B>Samuel Doyle<BR><B>Sent:</B> 28 July 2006 07:33<BR><B>To:</B>
ka-map-users@lists.maptools.org<BR><B>Subject:</B> [ka-Map-users] Can
someone answer this question please or tell mewho I should ask it
to?<BR></FONT><BR></DIV>
<DIV></DIV>Sorry but I haven't received any answers for the questions
I have posted here but this one is a bit important.<BR><BR>After
poking around and guessing at based on what I noticed in the KaMap
code I have place a refresh_interval value in a metadata section
within a layer in my map file. Now, I can see a periodic update on the
map but the problem is when I have modifed a dbf file under mapserver
those changes are not reflected. So the question is, is there
something I need to do special to get MapServer or KaMap or whatever
to detect an update done to a map so that it is served properly??
These changes to the map files are being done programatically and not
by hand.<BR><BR>Thanks,
S.D.<BR></BLOCKQUOTE></BLOCKQUOTE><BR></BLOCKQUOTE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>