[Mapserver-users] Re: More info on strange mapserv - mode=map behavior

Davis Michael A DPW GIS TECH michael.davis at richardson.army.mil
Tue Jul 13 18:41:20 EDT 2004


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C4692A.8468CC60
Content-Type: text/plain

Right, I am trying to nail down where the error is coming from.  If I
generate the image using a "mode=browse" request the image returned in the
web page is perfect.  The mangled image occurs only when requesting images
with mode=map.

So, What is Mapserver doing differently during a "map" request?
	*It is not writing the map to a file.
	*It is outputting a raw image, instead of an html page.
	*????????

Mike Davis
GIS Analyst
Fort Richardson, AK


-----Original Message-----
From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] 
Sent: Tuesday, July 13, 2004 2:32 PM
To: Davis Michael A DPW GIS TECH
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Re: More info on strange mapserv - mode=map
behavior

I can open it in Microsoft Imaging and the it looks like the image is 
interlaced, but did not get all of it written to the image file. It has 
all of one interlace drawn about only half of the second interlace drawn.

The image hangs PhotoShop.

-Steve W.

Davis Michael A DPW GIS TECH wrote:

> 
> 
> Pardon my reply to my own post, but I am starting to run out of ideas. 
> 
> I generated a test image (attached) from a map file containing two 
> layers using the command line. 
> 
> It is viewable in Internet Explorer but all my other image software 
> reports an error when opening it.  Has anyone had issues with the .dll's 
> included with the 4.2 binary?  I am pretty confidant they aren't the 
> problem, but at this point I am grasping at straws.
> 
> Any and all assistance is greatly appreciated, unfortunately this is a 
> make-or-break project for Mapserver within the U.S. Army Alaska.  If I 
> can't resolve my issues, it will be a big the foot-in-the-door for the 
> ArcIMS camp.     
> 
> Mike Davis
> GIS Analyst
> Fort Richardson, AK
> 
>  >>Thanks to some great assistance from Adam Ryan, of Linn County, I have
>  >>been able to narrow down my issues with the mapserv cgi on 
> Win2k+IIS.  We >>are using the latest 4.2 build. 
>  >>
>  >>Our problem has been occurring when we send a request in "map" mode.  
> The >>request will fail with a "CGI Error...CGI application misbehaved" 
> error if >>there is more than one layer set to default or requested 
> through the URL.  >>The request will also fail if there is one layer 
> with multiple classes set >>to default.
> 
>  >>
>  >>All of the test .map files will work just fine in "browse" mode.
>  >>
>  >>I am wondering if anyone in list land has had a similar experience, 
> or if >>anyone who uses Win2k+IIS can recommend web server settings to 
> check or a >>way to get more debug information out of the mapserv cgi.  
> The standard >>log file reports the bad requests as normal execution.
> 
>  >>
>  >>Thanks very much for all your continued help.
>  >>
>  >>Mike Davis
>  >>GIS Analyst
>  >>Fort Richardson, AK
> 
>  
> 

------_=_NextPart_001_01C4692A.8468CC60
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Mapserver-users] Re: More info on strange mapserv - =
mode=3Dmap behavior</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Right, I am trying to nail down where the error is =
coming from.&nbsp; If I generate the image using a =
&quot;mode=3Dbrowse&quot; request the image returned in the web page is =
perfect.&nbsp; The mangled image occurs only when requesting images =
with mode=3Dmap.</FONT></P>

<P><FONT SIZE=3D2>So, What is Mapserver doing differently during a =
&quot;map&quot; request?</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>*It is =
not writing the map to a file.</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>*It is =
outputting a raw image, instead of an html page.</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>*????????</FONT>
</P>

<P><FONT SIZE=3D2>Mike Davis</FONT>
<BR><FONT SIZE=3D2>GIS Analyst</FONT>
<BR><FONT SIZE=3D2>Fort Richardson, AK</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Stephen Woodbridge [<A =
HREF=3D"mailto:woodbri at swoodbridge.com">mailto:woodbri at swoodbridge.com</=
A>] </FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, July 13, 2004 2:32 PM</FONT>
<BR><FONT SIZE=3D2>To: Davis Michael A DPW GIS TECH</FONT>
<BR><FONT SIZE=3D2>Cc: mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [Mapserver-users] Re: More info on =
strange mapserv - mode=3Dmap behavior</FONT>
</P>

<P><FONT SIZE=3D2>I can open it in Microsoft Imaging and the it looks =
like the image is </FONT>
<BR><FONT SIZE=3D2>interlaced, but did not get all of it written to the =
image file. It has </FONT>
<BR><FONT SIZE=3D2>all of one interlace drawn about only half of the =
second interlace drawn.</FONT>
</P>

<P><FONT SIZE=3D2>The image hangs PhotoShop.</FONT>
</P>

<P><FONT SIZE=3D2>-Steve W.</FONT>
</P>

<P><FONT SIZE=3D2>Davis Michael A DPW GIS TECH wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Pardon my reply to my own post, but I am =
starting to run out of ideas. </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I generated a test image (attached) from a map =
file containing two </FONT>
<BR><FONT SIZE=3D2>&gt; layers using the command line. </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It is viewable in Internet Explorer but all my =
other image software </FONT>
<BR><FONT SIZE=3D2>&gt; reports an error when opening it.&nbsp; Has =
anyone had issues with the .dll's </FONT>
<BR><FONT SIZE=3D2>&gt; included with the 4.2 binary?&nbsp; I am pretty =
confidant they aren't the </FONT>
<BR><FONT SIZE=3D2>&gt; problem, but at this point I am grasping at =
straws.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Any and all assistance is greatly appreciated, =
unfortunately this is a </FONT>
<BR><FONT SIZE=3D2>&gt; make-or-break project for Mapserver within the =
U.S. Army Alaska.&nbsp; If I </FONT>
<BR><FONT SIZE=3D2>&gt; can't resolve my issues, it will be a big the =
foot-in-the-door for the </FONT>
<BR><FONT SIZE=3D2>&gt; ArcIMS camp.&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Mike Davis</FONT>
<BR><FONT SIZE=3D2>&gt; GIS Analyst</FONT>
<BR><FONT SIZE=3D2>&gt; Fort Richardson, AK</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;Thanks to some great assistance =
from Adam Ryan, of Linn County, I have</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;been able to narrow down my =
issues with the mapserv cgi on </FONT>
<BR><FONT SIZE=3D2>&gt; Win2k+IIS.&nbsp; We &gt;&gt;are using the =
latest 4.2 build. </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;Our problem has been occurring =
when we send a request in &quot;map&quot; mode.&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; The &gt;&gt;request will fail with a &quot;CGI =
Error...CGI application misbehaved&quot; </FONT>
<BR><FONT SIZE=3D2>&gt; error if &gt;&gt;there is more than one layer =
set to default or requested </FONT>
<BR><FONT SIZE=3D2>&gt; through the URL.&nbsp; &gt;&gt;The request will =
also fail if there is one layer </FONT>
<BR><FONT SIZE=3D2>&gt; with multiple classes set &gt;&gt;to =
default.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;All of the test .map files will =
work just fine in &quot;browse&quot; mode.</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;I am wondering if anyone in list =
land has had a similar experience, </FONT>
<BR><FONT SIZE=3D2>&gt; or if &gt;&gt;anyone who uses Win2k+IIS can =
recommend web server settings to </FONT>
<BR><FONT SIZE=3D2>&gt; check or a &gt;&gt;way to get more debug =
information out of the mapserv cgi.&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; The standard &gt;&gt;log file reports the bad =
requests as normal execution.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;Thanks very much for all your =
continued help.</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;Mike Davis</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;GIS Analyst</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; &gt;&gt;Fort Richardson, AK</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C4692A.8468CC60--




More information about the mapserver-users mailing list