<!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.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ken,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I think this is the mystery described in <A
href="http://www.maptools.org/bugzilla/show_bug.cgi?id=654">http://www.maptools.org/bugzilla/show_bug.cgi?id=654</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>When I use a TIFF, it occurs far more often.
Perhaps because it takes longer to read from the disk. Are you able to test your
website in IIS? Because I think it only happens with Apache.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@maptools.org">chameleon-bounces@maptools.org</A>
[mailto:chameleon-bounces@maptools.org] On Behalf Of Ken-ichi<BR>Sent: 8
December 2004 06:03<BR>To: <A
href="mailto:chameleon@maptools.org">chameleon@maptools.org</A><BR>Subject: Re:
[Chameleon] tiff hang</DIV>
<DIV> </DIV>
<DIV><BR>Thanks Paul. I tried loading drawmap.php directly, and that
usually <BR>renders the map even when the Chameleon app hangs (though sometimes
it <BR>hangs too), so I guess drawmap.php may not actually be the culprit.
I <BR>made another, minimal app with just the ZoomIn, ZoomOut, Recenter, and
<BR>MapDHTML widgets, and it still hangs on the tiffs, so I don't think it's
<BR>any of my custom widgets that are mucking things up either.</DIV>
<DIV> </DIV>
<DIV>I am really at a loss here. The strangest thing about this is that if
I <BR>convert the TIFF to an Erdas Imagine file (either in Erdas or with
<BR>gdal_translate) everything works fine. What is it about tiffs that
<BR>could possibly hang up Chameleon? Why would Chameleon even be aware of
<BR>input file format? Don't MapServer and GDAL handle that? I know
<BR>they're fine because a non-Chameleon phpMapScript app renders the map
<BR>fine, as does the CGI.</DIV>
<DIV> </DIV>
<DIV>Argh.</DIV>
<DIV> </DIV>
<DIV>-Ken-ichi</DIV>
<DIV> </DIV>
<DIV>Paul Spencer wrote:</DIV>
<DIV> </DIV>
<DIV>> Ken,<BR>><BR>> to debug drawmap.php, you need to grab the URL
from the image in the <BR>> chameleon app and load it directly in your
browser. You should then <BR>> see any error messages or debug output
directly. Often, problems with <BR>> a broken map image are related to
error messages (or notices) being <BR>> output before the image contents,
thus creating a corrupt image.<BR>><BR>> If nothing shows up immediately
on viewing the drawmap.php url, you <BR>> can then start to add some
debugging code (echo) to drawmap.php to try <BR>> to discover what is going
on.<BR>><BR>> Cheers,<BR>><BR>> Paul<BR>><BR>> Ken-ichi
wrote:<BR>><BR>>> Hi list. A while ago I posted an issue I'd been
having with <BR>>> rendering TIFFs in Chameleon <BR>>> (<A
href="http://lists.maptools.org/pipermail/chameleon/2004-August/thread.html#1245">http://lists.maptools.org/pipermail/chameleon/2004-August/thread.html#1245</A>),
<BR>>> but I never really resolved it. Essentially, whenever I zoom
in on a <BR>>> GeoTIFF so that the TIFF fills the whole map, Chameleon
hangs and <BR>>> never displays the map image (I just get the spinner icon
<BR>>> indefinitely and then a broken image icon behind it. Try
zooming in <BR>>> on the DRG (Test Raster) at<BR>>><BR>>> <A
href="http://fisher.cnr.berkeley.edu/vtm/data/mapbrowse/">http://fisher.cnr.berkeley.edu/vtm/data/mapbrowse/</A><BR>>><BR>>>
to see what I'm talking about. I'm fairly sure this is a Chameleon
<BR>>> issue, most likely with drawmap.php, because this mapfile renders
<BR>>> just fine via the CGI, and with a rudimentary phpMapScript app like
<BR>>> this one:<BR>>><BR>>> <A
href="http://fisher.cnr.berkeley.edu/~kueda/mapscript_browse.phtml">http://fisher.cnr.berkeley.edu/~kueda/mapscript_browse.phtml</A><BR>>><BR>>>
The DRG is a 16M GeoTIFF from the California Spatial Information <BR>>>
Library, so I don't think it's to blame. You can check out my php
<BR>>> and MapScript config at<BR>>><BR>>> <A
href="http://fisher.cnr.berkeley.edu/~kueda/phpinfo_mapscript.phtml">http://fisher.cnr.berkeley.edu/~kueda/phpinfo_mapscript.phtml</A><BR>>><BR>>>
I'm running MapServer 4.4.0, GDAL 1.2.5, and PHP 4.3.9. Can anyone
<BR>>> think of a reason this could be happening, or recommend a way to
<BR>>> troubleshoot drawmap.php?<BR>>><BR>>>
-Ken-ichi<BR>>><BR>>><BR>>><BR>>><BR>>>
_______________________________________________<BR>>> Chameleon mailing
list<BR>>> <A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR>>>
<A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR>>><BR>></DIV>
<DIV> </DIV>
<DIV>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV></BODY></HTML>