<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>[UMN_MAPSERVER-USERS] Please look at this</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText67027 dir=ltr>
<DIV dir=ltr><FONT color=#000000>So my understand from the your many threads 
this week you are using mapscript to generate mapfiles. This is cofirmed by the 
clearly temporary name you've given the map file when I visited your link below: 
/tmp/file6XWjI2.map.</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>So why are you using mode=browse? mode=map is what you need. The 
output of your cgi has the following line:</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>&lt;input type="hidden" name="mode" 
value="browse"&gt;</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>I entered the following in my browser:</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><A 
href="http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs/mco.communityservers.com/htdocs/tmp/file6XWjI2.map&amp;mode=map">http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs/mco.communityservers.com/htdocs/tmp/file6XWjI2.map&amp;mode=map</A></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>and it worked.&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>The other thing which took me a while to realize is if you're using 
mapscript, you should consider the mapfile input instead of output. Once you 
make this connection you won't ever use calls directly to the mapserv 
executable.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>-e</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List on behalf of 
Joseph Norris<BR><B>Sent:</B> Fri 11/19/2004 5:34 PM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] Please 
look at this<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Everybody,<BR><BR><A 
href="http://mco.communityservers.com/cgi-bin/teacher/makmap.cgi">http://mco.communityservers.com/cgi-bin/teacher/makmap.cgi</A><BR><BR>I 
still can not figure out why when I click on a polygon I get the 
error<BR>message.&nbsp; The map_web_template is there - everything that I have 
read about<BR>to do this is there. All I want it to do is to be able to zoom in 
to a<BR>polygon when someone clicks on it.&nbsp; What am I doing 
wrong?<BR><BR>Thanks.<BR><BR>#Joseph Norris (Perl - what else is 
there?/Linux/CGI/Mysql) print @c=map 
chr<BR>$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-<BR>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);<BR></FONT></P></DIV>

</BODY>
</HTML>