<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
hi,<BR>as i am new to the mapserver, and find it good for the pdf outputs. i have installed the ms4w package and tutorial for mapserver version 5. i have tried the tutorial as well, but getting some problem.<BR>
i have copied my mapfile and an html page on the path "C:\ms4w\Apache\htdocs\chk" and got it running in the browser as "<A href="http://localhost:82/chk/example1-9.html">http://localhost:82/chk/example1-9.html</A>". but the problem is with browser output. i m unable to see the image when the mode is set to browse. i have followed the link <BR>
<A href="http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&amp;layer=states&amp;layer=modis">http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&amp;layer=states&amp;layer=modis</A><BR>
in the log file i am getting an error "[Mon Jan 07 10:39:28 2008] [error] [client 127.0.0.1] File does not exist: C:/ms4w/Apache/htdocs/chk/[img], referer: <A href="http://localhost:82/chk/example1-9.html">http://localhost:82/chk/example1-9.html</A>"<BR>
when i checked the tmp\ms_tmp\ i found no image there. <BR>
&nbsp;also when i click on the place of the image it give me the error :<BR>
"msEvalRegex(): Regular expression error. String ([map]) failed expression test."<BR>
&nbsp;<BR>
my mapfile is:<BR>
MAP<BR>&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EX1.9_<BR>&nbsp; IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG24<BR>&nbsp; EXTENT 246033.25 53055.59765625 250754.625 57199.203125<BR>&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 400 300<BR>&nbsp; <BR>&nbsp; WEB<BR>&nbsp;&nbsp;&nbsp; TEMPLATE&nbsp; 'C:/ms4w/Apache/htdocs/chk/example1-9.html'<BR>&nbsp;&nbsp;&nbsp; IMAGEPATH 'c:/ms4w/tmp/ms_tmp/'<BR>&nbsp;&nbsp;&nbsp; IMAGEURL&nbsp; 'c:/ms_tmp/'<BR>&nbsp; END<BR>&nbsp;<BR>&nbsp;&nbsp; # Start of LAYER DEFINITIONS ---------------------------------------------<BR>&nbsp; LAYER # States polygon layer begins here<BR>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; states<BR>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE postgis<BR>&nbsp;&nbsp;&nbsp; CONNECTION "user=kk password=kk dbname=kk host=localhost port=5432"<BR>&nbsp;&nbsp;&nbsp; DATA "geom from topographicarea"<BR>&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFF<BR>
CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "land"<BR>EXPRESSION ('[theme]' = 'Land')<BR>
&nbsp;&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; <BR>&nbsp; END # States polygon layer ends here<BR>&nbsp; # End of LAYER DEFINITIONS <BR>
END # end of mapfile <BR>-------------------------------#<BR>
my html page is:<BR>
&lt;html&gt;<BR>&nbsp; &lt;head&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;title&gt;MapServer 5.x Tutorial&lt;/title&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;link type="text/css" rel="stylesheet" href="ms35.css" /&gt;<BR>&nbsp; &lt;/head&gt;<BR>
&nbsp; &lt;body bgcolor="#FFFFFF" text="#000000"&gt;<BR>
&nbsp; &lt;table align="center" width="680" border="0"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h3 align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example 1.9: Interactive Maps and the Browse Mode<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/h3&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div align="center"&gt;<BR>
&nbsp;&nbsp; &lt;img border="1" src="/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/chk/example1-9.map&amp;layer=states&amp;mode=map" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p align="left"&gt;The map above was created in &amp;quot;map&amp;quot; mode. It is<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a static map (it doesn't change when you click on it).<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- START OF MAPSERVER FORM --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- HIDDEN MAPSERVER CGI VARIABLES --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="map" value="[map]"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="imgext" value="[mapext]"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="imgxy" value="[center]"&gt;<BR>&nbsp;&nbsp; &lt;input type="hidden" name="zoom" value="0"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="layer" value="states"&gt;<BR>&nbsp; &lt;input type="hidden" name="mode" value="browse"&gt;<BR>&nbsp;&nbsp; &lt;div align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;table border="1" cellpadding="0" cellspacing="0"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;input type="image" name="img" src="[img]"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width="400" height="300"&gt;<BR>&nbsp;&nbsp;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/table&gt;<BR>&nbsp;&nbsp; &lt;/div&gt;<BR>&nbsp;&lt;/form&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- END OF MAPSERVER FORM --&gt;<BR>&nbsp;<BR>&lt;/table&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR>
can you please tell where i am getting problem in the form section of my html page. the static map image works fine. thanks for any help.<BR>&nbsp;<BR>zaidi.<BR><BR><BR><BR>
<DIV></DIV><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>