image maps - gif file not created

Sarah Parrott parrott.sarah at GOOGLEMAIL.COM
Wed Sep 27 09:36:12 PDT 2006


Hi,

 I'm trying to generate an image map so that the user can click on a point
and then (at the moment) display the name of the point they clicked on. It
all seems to work - the html of the generated page is what I'm expecting,
but the actual gif file is not created anywhere - I've looked in every
possible directory on my server and cannot find it! Does anyone know why or
had a similar problem?

I have tried uncommenting the web template (page.htm is at the bottom) and
with this I get the image but the html for the imagemap is not gnerated.

Thanks in advance,
Sarah

Map File:

MAP
    NAME DARTMOOR
    STATUS ON
    SHAPEPATH "/usr/local/apache-tomcat-5.5.17/webapps/image_maps_2/"
    EXTENT 249998.750000 60001.250000 279998.750000 90001.250000
    SIZE 400 400
    UNITS METERS

    WEB
        #TEMPLATE "page.htm"
        IMAGEPATH "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/temp/"
        IMAGEURL "/temp/"
    END

    LAYER
        NAME "dartmoor_index"
        STATUS ON
        TILEINDEX "dartmoor_index.shp"
        TILEITEM "Location"
        TYPE RASTER
    END


    SYMBOL
        NAME "circle"
        TYPE ellipse
        FILLED true
        POINTS
            1 1
        END
    END



    LAYER
        NAME "test_gis"
        STATUS ON
        TYPE POINT
        CONNECTIONTYPE OGR
        CONNECTION "test_gis.ovf"
            #TEMPLATE "template.htm"
        CLASS
            NAME "boxes"
            SYMBOL 'circle'
            COLOR 255 0 0
            SIZE 10
            #TEMPLATE "html/template.htm"
            #HEADER "html/header.htm"
            #FOOTER "html/footer.htm"
        END

        DATA "test_gis"
            TEMPLATE "html/template.htm"
            HEADER "html/header.htm"
            FOOTER "html/footer.htm"
        END

    END

header.htm:

<html><head></head><body>

<img src="[img]" usemap="#points"/>
<map id="mymap_id" name="points">

footer.htm:

</map>
</body>
</html>

template.htm

<area shape="circle" coords="[shpxy precision=0 proj=image yf=",7" xf=","]"
href="http://localhost:8080/image_maps_2/displayServlet.do?region=[name]"
title="[name]" alt="[name]" />

page.htm

<html>
<head><title>Hello</title></head>
<body>
<form method="GET" action="[program]">
    <input name="img" type="image" src="[img]" usemap="#points"/>
</form>
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060927/cc51d174/attachment.htm>


More information about the MapServer-users mailing list