<!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.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Well..... If I look at the individual images, they
seem OK (they're overlayed alright, and quality is good). But I don't actually
get to see those through the browser. But the images seem fine.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Based on the tile URL's, it seems they are suitable
for adding a random seed at the end of them. Or better: a version number, which
is only changed when the info in the site is changed (so the developer gets to
choose whether a user sees a cached version or not). Would that fix
it?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Sorry I can't give more specific debug information,
but unfortunately every time the application crashes I have to reboot my
computer, because my Apache crashed and I have about 100 stuck PHP processes.
It's slow debugging that way, and I can't get much other work done if I keep
rebooting :)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>-----Original Message-----<BR>From: Paul Spencer
[mailto:pspencer@dmsolutions.ca] <BR>Sent: 19 May 2005 19:52<BR>To: Delfos,
Jacob<BR>Cc: <A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A><BR>Subject:
Re: [ka-Map-users] JPEG output (and caching)</DIV>
<DIV> </DIV>
<DIV>Um. I haven't acctually tried JPEG output I guess. You should
have <BR>been able to do this by adjusting the image format in the maps array in
<BR>config.php and then it would choose the appropriate format in
<BR>setOutputFormat().</DIV>
<DIV> </DIV>
<DIV>There is nothing on the client side that indicates the file type, so it
<BR>is likely that if you change the file format, your browser will find the
<BR>tile in its cache rather than requesting it from the server.</DIV>
<DIV> </DIV>
<DIV>Tile urls are something like:</DIV>
<DIV> </DIV>
<DIV>tile.php?l=<left pixel value>&t=<top pixel
value>&s=<scale>&map=<map></DIV>
<DIV> </DIV>
<DIV>and the image headers are modified in tile.php to include aggressive,
<BR>long term caching in the browser (at least as best as I know how to) so
<BR>if you changed anything on the server without clearing the browser
<BR>cache, you would still see the browser cache version I think.</DIV>
<DIV> </DIV>
<DIV>This version is targetted at a more static installation ... if anyone
<BR>has hints on how to make the browser ignore the browser cache on demand,
<BR>I would be interested.</DIV>
<DIV> </DIV>
<DIV>Do the jpeg images that get produced actually look right?</DIV>
<DIV> </DIV>
<DIV>Paul</DIV>
<DIV> </DIV>
<DIV>Delfos, Jacob wrote:<BR>> I tried to configure it to output JPEG, having
set the type to JPEG, and <BR>> changed imagepng to imagejpeg. But I only get
broken images (both <BR>> explorer and firefox), even at the first load
(where PNG did work). <BR>> Looking in the directory, it does seem to have
created a number of jpeg <BR>> images, but these did not appear in the
browser.<BR>> <BR>> Another thing I can into: after changing to JPEG, I
had to force the <BR>> browser to delete all temp files, because even with a
shift-refresh it <BR>> was showing the old PNG files (which were not even in
the temp directory <BR>> anymore). I can see how that would be a problem if
the map content is <BR>> updated.<BR>> <BR>> Regards,<BR>> <BR>>
Jacob<BR>> <BR>> <BR>> <BR>> *JACOB DELFOS<BR>> SPATIAL
INFORMATION ANALYST<BR>> *Maunsell Australia Pty Ltd<BR>> 629 Newcastle
Street, Leederville, WA 6007<BR>> PO Box 81, Leederville, WA 6902<BR>>
Western Australia<BR>> ABN 20 093 846 925<BR>> <BR>>
Tel + 61 8 9281 6185<BR>> Fax + 61
8 9281 6297<BR>> <A
href="mailto:_jacob.delfos@maunsell.com">_jacob.delfos@maunsell.com</A>_<BR>>
<BR>> <BR>>
------------------------------------------------------------------------<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></DIV>
<DIV> </DIV>
<DIV>--
<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></FONT></DIV></BODY></HTML>