[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 17:18:02 PDT 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 "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. =
</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.  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.  =
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.  I don't get</FONT>
<BR><FONT SIZE=3D2>it.  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&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> </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 "REQUEST_METHOD=3DGET" </FONT>
<BR><FONT SIZE=3D2>set =
"QUERY_STRING=3Dmap=3D//rpw-edms/crrel/usartrak/test.map&mode=3D=
map" </FONT>
<BR><FONT SIZE=3D2>mapserv.exe > 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.  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>  </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.  </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.  </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.  Has anyone had =
issues with the .dll's included </FONT>
<BR><FONT SIZE=3D2>with the 4.2 binary?  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.  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.      </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>>>Thanks to some great assistance from Adam =
Ryan, of Linn County, I have </FONT>
<BR><FONT SIZE=3D2>>>been able to narrow down my issues with the =
mapserv cgi on Win2k+IIS.  We </FONT>
<BR><FONT SIZE=3D2>>>are using the latest 4.2 build.  =
</FONT>
<BR><FONT SIZE=3D2>>> </FONT>
<BR><FONT SIZE=3D2>>>Our problem has been occurring when we send =
a request in "map" mode.  The </FONT>
<BR><FONT SIZE=3D2>>>request will fail with a "CGI =
Error...CGI application misbehaved" error if</FONT>
</P>

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

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

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




More information about the MapServer-users mailing list