<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&layer=states&layer=modis">http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&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>
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>
<BR>
my mapfile is:<BR>
MAP<BR> NAME EX1.9_<BR> IMAGETYPE PNG24<BR> EXTENT 246033.25 53055.59765625 250754.625 57199.203125<BR> SIZE 400 300<BR> <BR> WEB<BR> TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html'<BR> IMAGEPATH 'c:/ms4w/tmp/ms_tmp/'<BR> IMAGEURL 'c:/ms_tmp/'<BR> END<BR> <BR> # Start of LAYER DEFINITIONS ---------------------------------------------<BR> LAYER # States polygon layer begins here<BR> NAME states<BR> CONNECTIONTYPE postgis<BR> CONNECTION "user=kk password=kk dbname=kk host=localhost port=5432"<BR> DATA "geom from topographicarea"<BR> TYPE POLYGON<BR> STATUS OFF<BR>
CLASS<BR> NAME "land"<BR>EXPRESSION ('[theme]' = 'Land')<BR>
STYLE<BR> COLOR 255 0 0<BR> OUTLINECOLOR 255 0 0<BR> END<BR> END<BR> <BR> END # States polygon layer ends here<BR> # End of LAYER DEFINITIONS <BR>
END # end of mapfile <BR>-------------------------------#<BR>
my html page is:<BR>
<html><BR> <head><BR> <title>MapServer 5.x Tutorial</title><BR> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><BR> <link type="text/css" rel="stylesheet" href="ms35.css" /><BR> </head><BR>
<body bgcolor="#FFFFFF" text="#000000"><BR>
<table align="center" width="680" border="0"><BR> <tr><BR> <td><BR> <h3 align="center"><BR> Example 1.9: Interactive Maps and the Browse Mode<BR> </h3><BR> <div align="center"><BR>
<img border="1" src="/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/chk/example1-9.map&layer=states&mode=map" /><BR> </div><BR> <p align="left">The map above was created in "map" mode. It is<BR> a static map (it doesn't change when you click on it).<BR> </p><BR>
<!-- START OF MAPSERVER FORM --><BR> <form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe"><BR> <!-- HIDDEN MAPSERVER CGI VARIABLES --><BR> <input type="hidden" name="map" value="[map]"><BR> <input type="hidden" name="imgext" value="[mapext]"><BR> <input type="hidden" name="imgxy" value="[center]"><BR> <input type="hidden" name="zoom" value="0"><BR> <input type="hidden" name="layer" value="states"><BR> <input type="hidden" name="mode" value="browse"><BR> <div align="center"><BR> <table border="1" cellpadding="0" cellspacing="0"><BR> <tr><BR> <td><BR> <!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP --><BR> <input type="image" name="img" src="[img]"<BR> width="400" height="300"><BR> </td><BR> </tr><BR> </table><BR> </div><BR> </form><BR> <!-- END OF MAPSERVER FORM --><BR> <BR></table><BR></body><BR></html><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> <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>