Basic Problem

Pablo Rodríguez Madroño prodriguez at ADASASISTEMAS.COM
Thu Mar 29 01:39:53 PDT 2007


Hi, Arul

I am also quite new to MapServer, so may the veterans out there excuse me if I say silly things.

I think you should include the html page as a TEMPLATE in the WEB section of your mapfile:

WEB
     TEMPLATE "whatever/hi.html"
     IMAGEPATH "/tmp/ms_tmp/"
     IMAGEURL "/ms_tmp/"
END 

Bye,

Pablo Rodríguez Madroño
División de Sistemas de Información
ADASA Sistemas
93.264.06.02
600.92.65.10
-----Mensaje original-----
De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de SUBSCRIBE MAPSERVER-USERS Arulraj.M
Enviado el: jueves, 29 de marzo de 2007 6:31
Para: MAPSERVER-USERS at LISTS.UMN.EDU
Asunto: [UMN_MAPSERVER-USERS] Basic Problem

Dear friends,

i  am very new to this UMN map server. I have installed the mapserver 
windows edition and checked with gmap75 application. Its working fine. when i 
tried with one small example, its not working . 

the codes are
---------------------------------- 
hi.html

<html>
<head> <title>hi</title></head>
<body>
    <form method=POST action="/cgi-bin/mapserv">
        <input type="submit" value="Click Me">
        <input type="hidden" name="map" value="/home/mapdata/hi.map">
        <input type="hidden" name="map_web_imagepath"
               value="/tmp/ms_tmp/">
    </form>
    <IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>
----------------------------------------------
hi.map

NAME "hi"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.0 -1.0 1.0 1.0
WEB
     
     IMAGEPATH "/tmp/ms_tmp/"
     IMAGEURL "/ms_tmp/"
END
LAYER					 
     STATUS default
     TYPE point
     FEATURE
          POINTS  0.00 0.00 END
          TEXT "hi"
     END # end feature
     CLASS
          STYLE
               COLOR 255 0 0
          END
          LABEL
               TYPE bitmap
          END
     END
END
END
------------------------------

when i am click my event it is passing into mapserv.exe , but it neither creates 
a image nor dipalying a image. It s not generating a image. i have physically 
verified int he folder too. So . where is the error in the code, please help me.

Arul.



More information about the MapServer-users mailing list