<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>hi, <BR>i am still not getting onto the interactive map, Example1-9.html of tutorial, link is:</DIV>
<DIV><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></DIV>
<DIV>i have checked the "imagepath" and "imageurl" for mapfile. i can get the image file if i use a static map with mode set to "browse" at the specified location in "imagepath". i think there is something wrong with the "imageurl" may be. </DIV>
<DIV>i have my <BR>1. html page and mapfile at location ="C:\ms4w\Apache\htdocs\chk\*.html/map"<BR>2. the tmp directory at location = "C:\ms4w\tmp"</DIV>
<DIV>In ms4w/apache/log/error.log i get:</DIV>
<DIV>[Thu Jan 10 09:19:31 2008] [error] [client 127.0.0.1] File does not exist: C:/ms4w/Apache/htdocs/chk/[img], referer: <A href="http://localhost/chk/example1-9.html">http://localhost/chk/example1-9.html</A></DIV>
<DIV><BR>i access the page as: "<A href="http://localhost/chk/example1-9.html">http://localhost/chk/example1-9.html</A>"</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>please have a look at this, really concerned. i think the problem is with imageurl tag, i hope i have written it correctly.<BR>thanks<BR>map.user<BR></DIV></DIV>
<DIV>my html page is:<BR>-----------------------------------------------------------------------------------------------------------------------------------<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/db.map&amp;layer=states&amp;layer=state&amp;layer=stat&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;</DIV>
<DIV>&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;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p align="left"&gt;Now, have a look at the mapfile:&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;iframe width="100%" src="db.map"&gt;&lt;/iframe&gt;&lt;/p&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR>----------------------------------------------------------------------------------------------------------------------------------------<BR>my mapfile is:<BR>MAP<BR>NAME db<BR>&nbsp; IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG<BR>&nbsp; EXTENT 246658.296875 56638.5 246745 56743.30078125 <BR>&nbsp; <BR>&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 800 600<BR>&nbsp; IMAGECOLOR&nbsp;&nbsp;&nbsp;&nbsp; 255 255 255<BR>&nbsp;FONTSET "C:/ms4w/Apache/htdocs/chk/fonts/fonts.list"<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; '/ms_tmp/'<BR>&nbsp;&nbsp;&nbsp; #IMAGEPATH '/C:/ms4w/Apache/htdocs/chk/tmp/ms_tmp/'<BR>&nbsp;&nbsp;&nbsp; #IMAGEURL&nbsp; '/C:/ms4w/Apache/htdocs/chk/tmp/ms_tmp/'<BR>&nbsp; END</DIV>
<DIV>PROJECTION<BR>"proj=tmerc"<BR>"lat_0=49"<BR>"lon_0=-2"<BR>"k=0.999601"<BR>"x_0=400000" <BR>"y_0=-100000"<BR>"ellps=airy"<BR>"units=m"<BR>"no_defs "<BR>END #end projection</DIV>
<DIV>#____________________________________________________________________<BR>&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=***** password=****** dbname=***** host=localhost port=5432"</DIV>
<DIV>&nbsp;&nbsp;&nbsp; DATA "geom from table"<BR>&nbsp;&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFF</DIV>
<DIV><BR>CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "buildings"<BR>EXPRESSION ('[var]' = 'Buildings')</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255 193 132<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; END</DIV>
<DIV><BR>&nbsp; <BR>&nbsp; END # States polygon layer ends here<BR>&nbsp; # End of LAYER DEFINITIONS <BR>#____________________________________________________________________________</DIV>
<DIV>&nbsp;</DIV>
<DIV>END # All map files must come to an end just as all other things must come to...</DIV>
<DIV>-----------------------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>&nbsp;</DIV></div><br>
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a></body></html>