[Mapserver-users] Question about <input type="image" name="img" src="[img]">

Richard Kingston richard at geography.leeds.ac.uk
Fri Apr 25 10:36:03 EDT 2003


Hi,

I've recently started using mapserver and I'm getting persistent 
problems with displaying my rendered map images.  For some reason the 
image gets generated and put into the /tmp directory of my web server 
but it won't appear in the cgi generated web page.  

I've stripped down my test.map file and template.html file and can't 
spot the problem. Have I missed something really obvious?  Any help 
would be a useful.

I initially run the map from this link:
<A 
HREF="/cgi-bin/mapserv?map=/home/karl/ccgweb/web/richard/wms/test/test.map">Test 
map</A>

Here's my html template:
<html>
<head>
<title>Map template</title>
</head>
<body>
<form method="GET" action="/cgi-bin/mapserv">
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="imgext" value="[mapext]">
<table border="1">
<tr>
<td align=center>
<input type="image" name="img" src="[img]">
</td>
</tr>
</table>
</form>
</body>
</html>

Here's test.map file
#
# Start of map file
#
NAME "Maptest"
STATUS ON
SIZE 400 500
EXTENT 160000.0 820000.0 240000.0 920000.0
UNITS METERS
SHAPEPATH "maps"
IMAGECOLOR 0 204 204
INTERLACE OFF

WEB
  TEMPLATE "template.html"
  IMAGEPATH "/home/karl/ccgweb/web/tmp/"
  IMAGEURL "/home/karl/ccgweb/web/tmp/"
END

# Start of layer definitions
LAYER
  NAME Boundary
  TYPE POLYGON
  STATUS DEFAULT
  DATA boundary
 
  CLASS
    OUTLINECOLOR 0 0 0
    COLOR 255 255 0
  END
END

END # Map File

-- 
___________________________________________________
  Richard Kingston
  Centre for Computational Geography,
  School of Geography, University of Leeds,
  England. LS2 9JT
  Tel: +44(0)113-34-33286 Fax: +44(0)113-34-33308
  http://www.ccg.leeds.ac.uk/democracy/
___________________________________________________





More information about the mapserver-users mailing list