Vewing Image in "Browse" mode

Jacob Delfos jacob.delfos at MAUNSELL.COM
Tue Jul 26 23:29:59 EDT 2005


Kichi,

Please check out the following line:

<input type="image" name="img"src="\mapexamples\temp\" width="800" height="900">

The src of the image should point to the map image. So set the src as follows:
SRC="[img]"

The [img] will be substituted with the URL. Also make sure there is a space between "img" and src, because it doesn't like like you have it.

regards,

Jacob






--------------------------------------------------------------------------------
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of krishnaa sridharan
Sent: 27 July 2005 11:15
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Vewing Image in "Browse" mode


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


JACOB DELFOS
SPATIAL INFORMATION ANALYST
Maunsell Australia Pty Ltd
629 Newcastle Street, WA 6007
PO Box 81, WA 6902
Leederville 
Western Australia
ABN 20 093 846 925

Tel     + 61 8 9281 6185
Fax    + 61 8 9281 6297
jacob.delfos at maunsell.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050727/65a2474c/attachment.html


More information about the mapserver-users mailing list