[Mapserver-west] Web Mapping Illustrated Demo
Dave Murray
ddmurray1 at comcast.net
Sun Jan 29 01:19:14 EST 2006
I am using the "Web Mapping Illustrated" book by Tyler Mitchell to learn
Mapserver. I'm on page 181 of the book an my global.html map does not
display from the index.html page. I am on a Windows 2000 computer with
all the demo application files and the countries shape file are in:
C:\ms4w\Apache\htdocs
Apache is running as evidenced by the Apache.exe window persisting.
Below is the contents of the global.map file:
MAP # Start of MAP object
SIZE 600 300
EXTENT -180 -90 180 90
IMAGECOLOR 180 180 250
UNITS DD
SCALEBAR
STATUS EMBED
UNITS KILOMETERS
INTERVALS 3
TRANSPARENT TRUE
OUTLINECOLOR 0 0 0
END
LEGEND
STATUS EMBED
POSITION LR
TRANSPARENT TRUE
END
WEB
TEMPLATE global.html
IMAGEPATH "C:\ms4w\tmp\ms_tmp\"
IMAGEURL "\ms_tmp\"
END
LAYER # Start of LAYER object
NAME countries
TYPE POLYGON
STATUS DEFAULT
DATA countries_simpl
LABELITEM 'NAME'
LABELMAXSCALE 50000000
CLASSITEM 'NAME'
CLASS # Start of CLASS object
NAME 'Bulgaria'
EXPRESSION 'Bulgaria'
OUTLINECOLOR 100 100 100
COLOR 255 255 150
LABEL
SIZE LARGE
OUTLINECOLOR 255 255 255
MINFEATURESIZE 40
END
END
CLASS
NAME 'All Countries'
EXPRESSION ('[NAME]' ne 'Bulgaria')
OUTLINECOLOR 100 100 100
COLOR 200 200 200
END
END
END
The index.html file is:
<HTML>
<HEAD><TITLE>MapServer Test</TITLE></HEAD>
<CENTER><H2>MapServer Test</H2>
<FORM method=GET action="/cgi-bin/mapserv">
<INPUT type="hidden" name="map"
value="C:\ms4w\apache\htdocs\global.map">
<INPUT type="hidden" name="layer" value="countries">
<INPUT type="hidden" name="zoomdir" value=1>
<INPUT type="hidden" name="zoomsize" value=2>
<INPUT type="hidden" name="program" value="/cgi-bin/mapserv">
<INPUT type="submit" value="Start MapServer">
</FORM></CENTER></BODY></HTML>
The global.html file is:
<HTML>
<HEAD><TITLE>MapServer Test</TITLE></HEAD>
<CENTER><H2>MapServer Test</H2>
<HR>
<FORM method=GET action="/cgi-bin/mapserv">
<INPUT NAME="img" TYPE="image" SRC="[img]" width=600 height=300
border=0 ALT="Map Image">
<INPUT type=hidden name=zoomdir value=1 [zoomdir_1_check] >
<INPUT type=hidden name=zoomsize size=4 value=[zoomsize]>
<INPUT type="hidden" name="imgxy" value="[center_x] [center_y]">
<INPUT type="hidden" name="imgext" value="[mapext]">
<INPUT type="hidden" name="map" value="[map]">
<INPUT type="hidden" name="savequery" value="true">
<INPUT type="hidden" name="mapext" value="shapes">
</FORM></CENTER></BODY></HTML>
Any help would be appreciated.
Thank you,
Dave Murray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/mapserver-west/attachments/20060128/69746d1e/attachment-0001.html
More information about the Mapserver-west
mailing list