[Mapserver-users] Question about <input type="image" name="img" src="[img]">
Eric Bridger
eric at gomoos.org
Mon Apr 28 06:36:36 PDT 2003
In your map file IMAGEURL, unlike IMGPATH, should be a path relative to
the web server document root. In your case that would appear to be just
/tmp/
On Fri, 2003-04-25 at 14:36, Richard Kingston wrote:
> 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/
> ___________________________________________________
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list