<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.0.2">
</HEAD>
<BODY>
Thanks for you help Daniel.
<BR>
I found the problem was the same as what Jean-Francois was having, the libmap.a file being in /usr/local/lib.
<BR>
I deleted the file, recompiled and everything is now sweet.
<BR>
<BR>
Thanks again
<BR>
Steve
<BR>
<BR>
<BR>
On Fri, 2002-10-11 at 01:17, Daniel Morissette wrote:
<BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>> Steven Bowden wrote:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Daniel,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> I have got IMAGEPATH and IMAGETMP set in the map file. Here is the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> extract from my map file</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> WEB</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> LOG /var/www/html/blis/blis.log</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> IMAGEPATH "/var/www/html/tmp/"</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> IMAGEURL "/tmp/"</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> METADATA</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> WMS_TITLE "BLIS"</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> WMS_ABSTRACT "This is the BLIS (Bundaberg Land Information</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> System)."</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> WMS_ACCESSCONSTRAINTS none</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> END</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> END</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> I changed the working path (/var/www/html/blis) to writable and it</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> then saved the tmp images to this directory even though IMAGEPATH was</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> was set to /var/www/html/tmp/ in the map file.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Any thoughts?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Steve</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>This is very odd. Can you check that you don't have a second IMAGEPATH</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>further down in your mapfile?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Also, try printing the value of $map->web->imagepath immediately after</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>the call to ms_newMapObj() to find out if it reads the right value. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Then print this value again just before the call to SaveWebImage() ...</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>if the value is empty before saveWebImage() then it must be your script</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>that changed the value somewhere. If the value is still valid then it</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>is likely a bug in MapScript and the best way to troubleshoot this for</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>us would be to get a small sample app with scripts and data that</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>reproduces this. But since nobody else ran into that, it seems unlikely</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>to be a bug and I would check for a problem in the mapfile or PHP script</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>first.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Daniel </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>-- </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>------------------------------------------------------------</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> Daniel Morissette morissette@dmsolutions.ca</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> DM Solutions Group http://www.dmsolutions.ca/</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>------------------------------------------------------------</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> Don't put for tomorrow what you can do today, because if </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> you enjoy it today you can do it again tomorrow.</FONT></FONT></I>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>