Vewing Image in "Browse" mode
krishnaa sridharan
kichi at REDIFFMAIL.COM
Tue Jul 26 20:14:47 PDT 2005
Hi all,
I am a new user of mapserver and was going throught the tutorial in the documentation section.
When i was trying create a html file which display the map in the browse mode, I am not able to view the image though mapserver creates temporary PNG files in the directory were i wanted it too. I tried opening the map in 'map' mode and i could get the image .
here is my html code
<form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe">
<!-- HIDDEN MAPSERVER CGI VARIABLES -->
<input type="hidden" name="map" value="\mapexamples\1.map">
<input type="hidden" name="imgext" value="-2217.186321 -3797.903064 1468.370211 -24.437500">
<input type="hidden" name="imgxy" value="800 900">
<input type="hidden" name="zoom" value="0">
<input type="hidden" name="layer" value="SID">
<input type="hidden" name="mode" value="BROWSE">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP -->
<input type="image" name="img"src="\mapexamples\temp\"
width="800" height="900">
</td>
</tr>
</table>
</div>
</form>
I am sure the mapserver initiates well as it creates temp images. I also made sure that the folder had full read/write acess. this is the map file i tried to acess.
MAP
IMAGETYPE PNG24
EXTENT -2217.186321 -3797.903064 1468.370211 -24.437500
SIZE 800 900
SHAPEPATH "\data"
IMAGECOLOR 251 251 251
SYMBOLSET "\symbols\SYMBOLS35.SYM"
WEB
TEMPLATE '\mapexamples\map1.html'
IMAGEPATH '\mapexamples\temp\'
IMAGEURL '\mapexamples\temp\'
END
LAYER
NAME SID
DATA Da06
STATUS on
.....
...
..
.
.
.
.
END
Please help!
Thanks for your help in advance
Kichi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050727/23156229/attachment.htm>
More information about the MapServer-users
mailing list