<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&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></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> </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><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/db.map&layer=states&layer=state&layer=stat&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></DIV>
<DIV> <!-- 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 --></DIV>
<DIV> <p align="left">Now, have a look at the mapfile:<br><BR> <BR> <iframe width="100%" src="db.map"></iframe></p><BR> <BR> </td><BR> </tr><BR></body><BR></html><BR>----------------------------------------------------------------------------------------------------------------------------------------<BR>my mapfile is:<BR>MAP<BR>NAME db<BR> IMAGETYPE PNG<BR> EXTENT 246658.296875 56638.5 246745 56743.30078125 <BR> <BR> SIZE 800 600<BR> IMAGECOLOR 255 255 255<BR> FONTSET "C:/ms4w/Apache/htdocs/chk/fonts/fonts.list"<BR> WEB<BR>
TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html'<BR> IMAGEPATH 'c:/ms4w/tmp/ms_tmp/'<BR> IMAGEURL '/ms_tmp/'<BR> #IMAGEPATH '/C:/ms4w/Apache/htdocs/chk/tmp/ms_tmp/'<BR> #IMAGEURL '/C:/ms4w/Apache/htdocs/chk/tmp/ms_tmp/'<BR> 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> # Start of LAYER DEFINITIONS ---------------------------------------------<BR> LAYER # States polygon layer begins here<BR> NAME states<BR> CONNECTIONTYPE postgis<BR> CONNECTION "user=***** password=****** dbname=***** host=localhost port=5432"</DIV>
<DIV> DATA "geom from table"<BR> TYPE POLYGON<BR> <BR> <BR> STATUS OFF</DIV>
<DIV><BR>CLASS<BR> NAME "buildings"<BR>EXPRESSION ('[var]' = 'Buildings')</DIV>
<DIV> STYLE<BR> COLOR 255 193 132<BR> OUTLINECOLOR 255 0 0<BR> END<BR> END</DIV>
<DIV><BR> <BR> END # States polygon layer ends here<BR> # End of LAYER DEFINITIONS <BR>#____________________________________________________________________________</DIV>
<DIV> </DIV>
<DIV>END # All map files must come to an end just as all other things must come to...</DIV>
<DIV>-----------------------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV> </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>