[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 20:18:02 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_01C46938.06C44E70
Content-Type: text/plain

Right, if I execute the command as a browser request I get a "CGI Error"
message instead of an image.  If, using the command line, I force the output
to a file I can see the garbled images I attached earlier... but only in
certain image programs.  Most software will crash when trying to open the
image. 

So I suppose some output is created, but it isn't anything usable.

This latest debug experience is my first brush with command line Mapserver
as well.  It brings up some intriguing possibilities for quasi-dynamic map
production... perhaps map creation triggered by system events, like data
downloads...

Thanks again for the help! 

Mike Davis
GIS Analyst
Fort Richardson, AK


-----Original Message-----
From: Ryan, Adam [mailto:ARyan at co.linn.or.us] 
Sent: Tuesday, July 13, 2004 4:10 PM
To: Davis Michael A DPW GIS TECH
Subject: RE: [Mapserver-users] Re: More info on strange mapserv - mode=map
behavior


Mike,

I've never seen this done on the command line.  It opens up a whole new box
for me.

You wrote that it failed but that you still got an image back.  I don't get
it.  Which is it?

Like Mr. Ramsey suggests, when you just typed
'//rpw-edms/crrel/usartrak/test.map&mode=map' in the browser address bar you
get a cgi failure, right? 

Adam
 
-----Original Message-----
From: Davis Michael A DPW GIS TECH
[mailto:michael.davis at richardson.army.mil] 
Sent: Tuesday, July 13, 2004 4:04 PM
To: Ryan, Adam
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Re: More info on strange mapserv - mode=map
behavior


Sure, in the mapserv.exe directory I ran the following commands: 
set "REQUEST_METHOD=GET" 
set "QUERY_STRING=map=//rpw-edms/crrel/usartrak/test.map&mode=map" 
mapserv.exe > c:\inetpub\scripts\test.gif 
This produced the image I sent out. 
-btw tried again with interlace set to OFF in the map file, still failed but
the resulting image looked a little different. (attached)
My relationship with the all powerful Essree has also been somewhat
love-hate lately.  Our web mapping tools are some of the last remaining
non-esri technologies we use, unfortunately. 
Mike Davis 
GIS Analyst 
Fort Richardson, AK 


-----Original Message----- 
From: Ryan, Adam [mailto:ARyan at co.linn.or.us] 
Sent: Tuesday, July 13, 2004 2:48 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 


Hey, saw my name and I figured I'd give it another shot, especially with my 
long-standing love-hate relationship with E.S.R.I. 
Can you send us your command line request? 
Adam 
  
-----Original Message----- 
From: Davis Michael A DPW GIS TECH 
[mailto:michael.davis at richardson.army.mil] 
Sent: Tuesday, July 13, 2004 2:59 PM 
To: mapserver-users at lists.gis.umn.edu 
Subject: [Mapserver-users] Re: More info on strange mapserv - mode=map 
behavior 


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_01C46938.06C44E70
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, if I execute the command as a browser request =
I get a &quot;CGI Error&quot; message instead of an image.&nbsp; If, =
using the command line, I force the output to a file I can see the =
garbled images I attached earlier... but only in certain image =
programs.&nbsp; Most software will crash when trying to open the image. =
</FONT></P>

<P><FONT SIZE=3D2>So I suppose some output is created, but it isn't =
anything usable.</FONT>
</P>

<P><FONT SIZE=3D2>This latest debug experience is my first brush with =
command line Mapserver as well.&nbsp; It brings up some intriguing =
possibilities for quasi-dynamic map production... perhaps map creation =
triggered by system events, like data downloads...</FONT></P>

<P><FONT SIZE=3D2>Thanks again for the help! </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: Ryan, Adam [<A =
HREF=3D"mailto:ARyan at co.linn.or.us">mailto:ARyan at co.linn.or.us</A>] =
</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, July 13, 2004 4:10 PM</FONT>
<BR><FONT SIZE=3D2>To: Davis Michael A DPW GIS TECH</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Mapserver-users] Re: More info on =
strange mapserv - mode=3Dmap behavior</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Mike,</FONT>
</P>

<P><FONT SIZE=3D2>I've never seen this done on the command line.&nbsp; =
It opens up a whole new box</FONT>
<BR><FONT SIZE=3D2>for me.</FONT>
</P>

<P><FONT SIZE=3D2>You wrote that it failed but that you still got an =
image back.&nbsp; I don't get</FONT>
<BR><FONT SIZE=3D2>it.&nbsp; Which is it?</FONT>
</P>

<P><FONT SIZE=3D2>Like Mr. Ramsey suggests, when you just typed</FONT>
<BR><FONT SIZE=3D2>'//rpw-edms/crrel/usartrak/test.map&amp;mode=3Dmap' =
in the browser address bar you</FONT>
<BR><FONT SIZE=3D2>get a cgi failure, right? </FONT>
</P>

<P><FONT SIZE=3D2>Adam</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Davis Michael A DPW GIS TECH</FONT>
<BR><FONT SIZE=3D2>[<A =
HREF=3D"mailto:michael.davis at richardson.army.mil">mailto:michael.davis at r=
ichardson.army.mil</A>] </FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, July 13, 2004 4:04 PM</FONT>
<BR><FONT SIZE=3D2>To: Ryan, Adam</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</FONT>
<BR><FONT SIZE=3D2>behavior</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Sure, in the mapserv.exe directory I ran the =
following commands: </FONT>
<BR><FONT SIZE=3D2>set &quot;REQUEST_METHOD=3DGET&quot; </FONT>
<BR><FONT SIZE=3D2>set =
&quot;QUERY_STRING=3Dmap=3D//rpw-edms/crrel/usartrak/test.map&amp;mode=3D=
map&quot; </FONT>
<BR><FONT SIZE=3D2>mapserv.exe &gt; c:\inetpub\scripts\test.gif </FONT>
<BR><FONT SIZE=3D2>This produced the image I sent out. </FONT>
<BR><FONT SIZE=3D2>-btw tried again with interlace set to OFF in the =
map file, still failed but</FONT>
<BR><FONT SIZE=3D2>the resulting image looked a little different. =
(attached)</FONT>
<BR><FONT SIZE=3D2>My relationship with the all powerful Essree has =
also been somewhat</FONT>
<BR><FONT SIZE=3D2>love-hate lately.&nbsp; Our web mapping tools are =
some of the last remaining</FONT>
<BR><FONT SIZE=3D2>non-esri technologies we use, unfortunately. </FONT>
<BR><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: Ryan, Adam [<A =
HREF=3D"mailto:ARyan at co.linn.or.us">mailto:ARyan at co.linn.or.us</A>] =
</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, July 13, 2004 2:48 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</FONT>
<BR><FONT SIZE=3D2>behavior </FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hey, saw my name and I figured I'd give it another =
shot, especially with my </FONT>
<BR><FONT SIZE=3D2>long-standing love-hate relationship with E.S.R.I. =
</FONT>
<BR><FONT SIZE=3D2>Can you send us your command line request? </FONT>
<BR><FONT SIZE=3D2>Adam </FONT>
<BR><FONT SIZE=3D2>&nbsp; </FONT>
<BR><FONT SIZE=3D2>-----Original Message----- </FONT>
<BR><FONT SIZE=3D2>From: Davis Michael A DPW GIS TECH </FONT>
<BR><FONT SIZE=3D2>[<A =
HREF=3D"mailto:michael.davis at richardson.army.mil">mailto:michael.davis at r=
ichardson.army.mil</A>] </FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, July 13, 2004 2:59 PM </FONT>
<BR><FONT SIZE=3D2>To: mapserver-users at lists.gis.umn.edu </FONT>
<BR><FONT SIZE=3D2>Subject: [Mapserver-users] Re: More info on strange =
mapserv - mode=3Dmap </FONT>
<BR><FONT SIZE=3D2>behavior </FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Pardon my reply to my own post, but I am starting to =
run out of ideas.&nbsp; </FONT>
<BR><FONT SIZE=3D2>I generated a test image (attached) from a map file =
containing two layers </FONT>
<BR><FONT SIZE=3D2>using the command line.&nbsp; </FONT>
<BR><FONT SIZE=3D2>It is viewable in Internet Explorer but all my other =
image software reports </FONT>
<BR><FONT SIZE=3D2>an error when opening it.&nbsp; Has anyone had =
issues with the .dll's included </FONT>
<BR><FONT SIZE=3D2>with the 4.2 binary?&nbsp; I am pretty confidant =
they aren't the problem, but at </FONT>
<BR><FONT SIZE=3D2>this point I am grasping at straws. </FONT>
<BR><FONT SIZE=3D2>Any and all assistance is greatly appreciated, =
unfortunately this is a </FONT>
<BR><FONT SIZE=3D2>make-or-break project for Mapserver within the U.S. =
Army Alaska.&nbsp; If I can't</FONT>
</P>

<P><FONT SIZE=3D2>resolve my issues, it will be a big the =
foot-in-the-door for the ArcIMS </FONT>
<BR><FONT SIZE=3D2>camp.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>Mike Davis </FONT>
<BR><FONT SIZE=3D2>GIS Analyst </FONT>
<BR><FONT SIZE=3D2>Fort Richardson, AK </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;Thanks to some great assistance from Adam =
Ryan, of Linn County, I have </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;been able to narrow down my issues with the =
mapserv cgi on Win2k+IIS.&nbsp; We </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;are using the latest 4.2 build.&nbsp; =
</FONT>
<BR><FONT SIZE=3D2>&gt;&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;Our problem has been occurring when we send =
a request in &quot;map&quot; mode.&nbsp; The </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;request will fail with a &quot;CGI =
Error...CGI application misbehaved&quot; error if</FONT>
</P>

<P><FONT SIZE=3D2>&gt;&gt;there is more than one layer set to default =
or requested through the URL. </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;The request will also fail if there is one =
layer with multiple classes set</FONT>
</P>

<P><FONT SIZE=3D2>&gt;&gt;to default. </FONT>
<BR><FONT SIZE=3D2>&gt;&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;All of the test .map files will work just =
fine in &quot;browse&quot; mode. </FONT>
<BR><FONT SIZE=3D2>&gt;&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;I am wondering if anyone in list land has =
had a similar experience, or if </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;anyone who uses Win2k+IIS can recommend web =
server settings to check or a </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;way to get more debug information out of the =
mapserv cgi.&nbsp; The standard </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;log file reports the bad requests as normal =
execution. </FONT>
<BR><FONT SIZE=3D2>&gt;&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;Thanks very much for all your continued =
help. </FONT>
<BR><FONT SIZE=3D2>&gt;&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;Mike Davis </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;GIS Analyst </FONT>
<BR><FONT SIZE=3D2>&gt;&gt;Fort Richardson, AK </FONT>
<BR><FONT SIZE=3D2>&nbsp; </FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C46938.06C44E70--




More information about the mapserver-users mailing list