[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:28:01 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_01C46939.6C0907C0
Content-Type: text/plain

Unfortunately this is more difficult than it might seem.  The US Army has
decided that IE is the ONLY browser allowed on our network... there are a
few copies of Firefox floating around but those are only on the IT guys
machines (do as I say not as I do, I suppose...).

I have tried a variety of different machines around the office, and they all
produce the same result.  Unfortunately they are also all basically the same
configuration of IE.  On the plus side it is a very clean configuration of
IE, ad blockers/filters/etc... are not permitted.

The images I sent out were produced by a command line Mapserver request
piped to a file.  The only output I get through a browser request are the
previously mentioned error messages.

I will take your advice and chase down one of the elusive IT people to do
some debugging for me in Firefox.  Perhaps if I pester them with
compatibility checks enough they will let me install an alternative browser.


Mike Davis
GIS Analyst
Fort Richardson, AK


-----Original Message-----
From: Ed McNierney [mailto:ed at topozone.com] 
Sent: Tuesday, July 13, 2004 4:10 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

Mike -

Are you able to reproduce this symptom using more than one client
browser?  Are the images you've been emailing the files produced on disk
by MapServer, or the things viewed in your browser and then emailed?

You're getting some strange behavior, and I'm beginning to wonder if it
might be a hosed-up *browser*.  Can you test this on another browser,
preferably on another machine?  Do you have any ad-blockers, filters, or
other browser-altering substances installed?

If the culprit's not your browser this should at least nail that down.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Davis
Michael A DPW GIS TECH
Sent: Tuesday, July 13, 2004 6:41 PM
To: Stephen Woodbridge
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Re: More info on strange mapserv -
mode=map behavior

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_01C46939.6C0907C0
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>Unfortunately this is more difficult than it might =
seem.&nbsp; The US Army has decided that IE is the ONLY browser allowed =
on our network... there are a few copies of Firefox floating around but =
those are only on the IT guys machines (do as I say not as I do, I =
suppose...).</FONT></P>

<P><FONT SIZE=3D2>I have tried a variety of different machines around =
the office, and they all produce the same result.&nbsp; Unfortunately =
they are also all basically the same configuration of IE.&nbsp; On the =
plus side it is a very clean configuration of IE, ad =
blockers/filters/etc... are not permitted.</FONT></P>

<P><FONT SIZE=3D2>The images I sent out were produced by a command line =
Mapserver request piped to a file.&nbsp; The only output I get through =
a browser request are the previously mentioned error =
messages.</FONT></P>

<P><FONT SIZE=3D2>I will take your advice and chase down one of the =
elusive IT people to do some debugging for me in Firefox.&nbsp; Perhaps =
if I pester them with compatibility checks enough they will let me =
install an alternative browser.</FONT></P>
<BR>

<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: Ed McNierney [<A =
HREF=3D"mailto:ed at topozone.com">mailto:ed at topozone.com</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>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>Mike -</FONT>
</P>

<P><FONT SIZE=3D2>Are you able to reproduce this symptom using more =
than one client</FONT>
<BR><FONT SIZE=3D2>browser?&nbsp; Are the images you've been emailing =
the files produced on disk</FONT>
<BR><FONT SIZE=3D2>by MapServer, or the things viewed in your browser =
and then emailed?</FONT>
</P>

<P><FONT SIZE=3D2>You're getting some strange behavior, and I'm =
beginning to wonder if it</FONT>
<BR><FONT SIZE=3D2>might be a hosed-up *browser*.&nbsp; Can you test =
this on another browser,</FONT>
<BR><FONT SIZE=3D2>preferably on another machine?&nbsp; Do you have any =
ad-blockers, filters, or</FONT>
<BR><FONT SIZE=3D2>other browser-altering substances installed?</FONT>
</P>

<P><FONT SIZE=3D2>If the culprit's not your browser this should at =
least nail that down.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>- =
Ed</FONT>
</P>

<P><FONT SIZE=3D2>Ed McNierney</FONT>
<BR><FONT SIZE=3D2>President and Chief Mapmaker</FONT>
<BR><FONT SIZE=3D2>TopoZone.com</FONT>
<BR><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: mapserver-users-admin at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>[<A =
HREF=3D"mailto:mapserver-users-admin at lists.gis.umn.edu">mailto:mapserver=
-users-admin at lists.gis.umn.edu</A>] On Behalf Of Davis</FONT>
<BR><FONT SIZE=3D2>Michael A DPW GIS TECH</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, July 13, 2004 6:41 PM</FONT>
<BR><FONT SIZE=3D2>To: Stephen Woodbridge</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 -</FONT>
<BR><FONT SIZE=3D2>mode=3Dmap behavior</FONT>
</P>

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

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

<P><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 </FONT>
<BR><FONT SIZE=3D2>&gt; .dll's included with the 4.2 binary?&nbsp; I am =
pretty confidant they </FONT>
<BR><FONT SIZE=3D2>&gt; aren't the 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>
</P>

<P><FONT SIZE=3D2>&gt; make-or-break project for Mapserver within the =
U.S. Army Alaska.&nbsp; If I</FONT>
</P>

<P><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 </FONT>
<BR><FONT SIZE=3D2>&gt; have&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;</FONT>
<BR><FONT SIZE=3D2>mode.&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; The &gt;&gt;request will fail with a &quot;CGI =
Error...CGI application</FONT>
<BR><FONT SIZE=3D2>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.</F=
ONT>
<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>
</P>

<P><FONT SIZE=3D2>&gt; or if &gt;&gt;anyone who uses Win2k+IIS can =
recommend web server settings to</FONT>
</P>

<P><FONT SIZE=3D2>&gt; check or a &gt;&gt;way to get more debug =
information out of the mapserv cgi.</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_01C46939.6C0907C0--




More information about the mapserver-users mailing list