<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Paul,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The version handling is something that must be in
the url, maybe as a number behind the layername, with a rare
delimeter (e.g. drainage~03). This avoids the browser caching issue.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When the application initialises, something must
determine whether a new version is to be used. Maybe this could be specified in
the mapfile somewhere, on an individual layer basis. We actually already use a
"lastupdate" metadata attribute, for other purposes. This could be read in
init.php, line 72 somewhere. If the version number is to be increased, it can
read the previous version number from a version text file (once only on
initialisation) or also from the metadata, delete the outdated tiles, and add
the new version number to the layername in the url's.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I may have a look at implementing this, if I can
find time.....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</A>
[mailto:ka-map-users-bounces@lists.maptools.org] On Behalf Of Paul
Spencer<BR>Sent: 6 July 2005 08:48<BR>To: <A
href="mailto:maik@maitro.de">maik@maitro.de</A><BR>Cc: <A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A><BR>Subject:
Re: [ka-Map-users] <kein Betreff></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>there is nothing right now unfortunately. We
discussed several ways of <BR>handling this, the most likely being to include a
version number for a <BR>map in the configuration file and to use this version
number somehow in <BR>the tile caching system to indicate that a tile is expired
and to delete it.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The reason you probably don't have permission to
delete the cached files <BR>is that they are created by the apache (or iis) user
account. By <BR>including the capability to regenerate tiles based on a
map version, the <BR>apache process could take care of deleting cached tiles and
would have <BR>the necessary permissions to do so. tile.php already
contains the <BR>necessary code to force tile regeneration, so it would just be
a matter <BR>of adding the version check. Ideally, a version file would
get written <BR>into the meta folder for each metatile containing the version
number. <BR>This would add overhead to tile.php and cause the whole application
to <BR>slow down because every tile access would have additional file i/o
<BR>tests. Perhaps there is a smarter way?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Alternately, a new script could be written to scan
the cache directory <BR>and cause all existing tiles to be regenerated.
This would help with <BR>the performance issue by eliminating unnecessary tests
in the <BR>performance critical code, and optimize tile generation to only those
<BR>tiles that have been previously generated (and therefore most likely to
<BR>be needed)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This being said, I have no plans to add this
capability at this time due <BR>to lack of resources. If someone wants to
tackle this issue, I would be <BR>willing to incorporate the results into the
cvs version though :)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Paul</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><A href="mailto:maik@maitro.de">maik@maitro.de</A>
wrote:<BR>> Hello,<BR>> <BR>> we have a little problem with
ka-Map!<BR>> ka-Map creates for every scale an own folder on the server. When
we change our mapfile ka-Map doesn`t create a new map. It takes the cashed map
from the created folder. The problem is, that we use a dynamic mapfile an we
have no rights to delete the folders every time. Is there a solution to solve
this problem?<BR>> <BR>> Thanks a lot and greetings from Karlsruhe,
Germany<BR>> <BR>> Hans-Peter Hebel &<BR>> Maik Trömel<BR>>
<BR>> _______________________________________________<BR>> ka-Map-users
mailing list<BR>> <A
href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</A><BR>>
<A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</A><BR>>
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>--
<BR>+-----------------------------------------------------------------+<BR>|Paul
Spencer
<A href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>
|<BR>+-----------------------------------------------------------------+<BR>|Applications
& Software
Development
|<BR>|DM Solutions Group
Inc
<A
href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>|<BR>+-----------------------------------------------------------------+<BR>_______________________________________________<BR>ka-Map-users
mailing list<BR><A
href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</A><BR></FONT></DIV></BODY></HTML>