basic configuration

Albert Garcia gis at ROSES.ES
Thu Mar 9 07:51:19 PST 2006


Hello,
I have a mapserver 3.6.7 application. I try to migrate to the last version
of mapserver and I have installed the ms4w pack with the default directory
structure. (using windows and apache).
To learn about this new version I have installed the mapserver tutorial too
(http://mapserver.gis.umn.edu/docs/tutorial/tutorial) . The section1, static
maps runs ok. I have a problem in section 2 with the html templates:
mapserver create the maps in the tmp directory: C:\ms4w\tmp\ms_tmp> but it
not appears in the application html.

This is the command line I use:
http://gis002/cgi-bin/mapserv.exe?root=%2Ftutorial&program=%2Fcgi-bin%2Fmaps
erv.exe&map_web_template=example2-2.html&map=%2Fms4w%2Fapps%2Ftutorial%2Fhtd
ocs%2Fexample2.map&imgext=510141+4676372+519900+4683247&imgxy=400.0+300.0&la
yer=orto&mode=browse&submit=Refresh&zoom=0 (intranet only)

This is the section of map file:
WEB
    TEMPLATE  'example2-2.html'
    IMAGEPATH '/tmp/ms_tmp/'
    IMAGEURL  '/tmp/'
  END # Every object in MapServer must have an END.

and this is the section of the html:

<form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe">

<!-- HIDDEN MAPSERVER CGI VARIABLES -->
    <input type="hidden" name="root" value="/tutorial">
    <input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
    <input type="hidden" name="map_web_template" value="example2-2.html">
    <input type="hidden" name="map"
value="/ms4w/apps/tutorial/htdocs/example2.map">
    <input type="hidden" name="imgext" value="510141 4676372 519900
4683247">
    <input type="hidden" name="imgxy" value="400.0 300.0">

...

<!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE -->
	    <td colspan="3" align="center" valign="top">
	      <input type="image" name="img" src="http://tmp/EX2.5_11415303.png"
                     width="400" height="300" border="0" />
	    </td>


Thanks for all!!!



More information about the MapServer-users mailing list