[mapserver-users] has problem on browse mode

Larry Wong csgwong328 at yahoo.com.hk
Wed Jun 25 13:56:32 EDT 2008


Dear Sir/Madam,
I am new to map server.  I has problem with tutorial 1.9 & 2.0; and can not see what's wrong with my code, Can you help me please.  below is the code for your reference
Code for map file (test.map)
MAP
  NAME           test_
  IMAGETYPE      JPEG
  EXTENT         841625 820100 842000 820400
  SIZE           400 300
  IMAGECOLOR     255 255 255
  FONTSET        "fonts/fonts.list"
  SYMBOLSET      "symbols/symbols35.sym"
  SHAPEPATH      "data"
  TEMPLATEPATTERN "test*"
  WEB
    TEMPLATE  "test.html"
    IMAGEPATH "d:/ms4w/tmp/"
    IMAGEURL  "d:/ms4w/tmp/"
  END
  # Start of LAYER DEFINITIONS ---------------------------------------------
  LAYER # States polygon layer begins here
    NAME         pbldgpoly
    DATA         pbldgpoly
    STATUS       DEFAULT
    TYPE         POLYGON
  END # States polygon layer ends here
END # end of map file

Code for html template (test.html)
<html>
<head>
<title>Test.html</title>
</head>
<body bgcolor="#00FFFF" text="#FF0000">
<table align="center" width="400" border="0">
<tr> 
<td> 
      <form name="mapserv" method="get" action="/cgi-bin/mapserv.exe">
        <input type="hidden" name="map" value="[map]">
        <input type="hidden" name="imgext" value="[mapext]">
        <input type="hidden" name="imgxy" value="199.5 149.5">
 <input type="hidden" name="mode" value="browse">
 <div align="center">
  <input type="image" name="img" src="[img]" width="400" height="300">
 </div>
      </form>
      <div align="center">
   <img border="1" src="/cgi-bin/mapserv.exe?map=D:/ms4w/apps/tutorial/test.map&mode=map" />
      </div>
</td> 
</tr>
</table>
</body>
</html>
 
Thank you
Cheers
Larry

_______________________________________
 YM - 離線訊息
 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
 http://messenger.yahoo.com.hk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080625/f529976c/attachment.html


More information about the mapserver-users mailing list