[mapserver-users] demo on Mac X

Stephen Woodbridge woodbri at swoodbridge.com
Sun Jun 9 15:08:45 PDT 2002


You are using the 3.4 demo with MS 3.5 get the 3.5 demo files.

-Steve

Marcel v d Bilt wrote:
> 
> Hi all i am finally busy with the map sever but
> have some troubles to set the demo up
> I spend now several hours to find out what is going wrong
> changing directories etc
> OS X keeps the web documents in
> /Library/WebServer/Documents
> and cgi in
> /Library/WebServer/CGI-Executables with an script alias in httpd.conf cgi-bin
> 
> this is the terminal output ./mapserv.cgi -v
> 
> localhost:/Library/WebServer/CGI-Executables] orangebo% ./mapserv.cgi -v
> MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE
> [localhost:/Library/WebServer/CGI-Executables] orangebo%
> 
> i get this error from the demo_init.html
> 
> msLoadMap(): Unknown identifier. (SHADESET):(6)
> 
> This is in the demo_init.html
> 
> <html>
> <head><title>MapServer Demo Interface</title></head>
> <body bgcolor="#FFFFFF">
> 
> <center><h2>MapServer Demo Interface</h2></center>
> <p><hr><p>
> Click on the initialize button to fire up the demo with 3 layers turned on will be accessible for browsing. The
> data are of Itasca County, MN and were derived, for the most part, from USGS 1:24,000 quadrangles. Some things to note are:
> 
> <form method=GETaction="/cgi-bin/mapserv.cgi">
> 
> <input type="hidden"name="map"value="/Library/WebServer/Documents/ms_demo/demo.map">
> <input type="hidden"name="layer"value="lakes">
> <input type="hidden"name="layer"value="streams">
> <input type="hidden"name="zoomsize"value=2>
> 
> <center><input type="submit"value="Initialize"></center>
> 
> </form>
> 
> <p><hr><p>
> 
> This is in the demo.map file
> 
> #
> # Start of web interface definition
> #
> WEB
> HEADER demo_header.html
> TEMPLATE demo.html
> FOOTER demo_footer.html
> MINSCALE 1000
> MAXSCALE 1550000
> IMAGEPATH "/Library/WebServer/Documents/ms_demo/tmp/"
> IMAGEURL "/ms_demo/tmp/"
> # LOG "/Library/WebServer/Documents/ms_demo/demo.log"
> END
> 
> QUERYMAP
> 
> i specialy created this tmp dir the server needs it probably to store the produced image?
> 
> and this is the demo.html
> 
> <html>
> <head><title>MapServer Demo Interface</title></head>
> <body bgcolor=#FFFFFF>
> 
> <center><h1>MapServer Demo Interface</h1></center>
> <hr>
> <form method=GETaction="/cgi-bin/mapserv.cgi">
> 
> <center>
> <table border=0cellspacing=0cellpadding=4bgcolor="#000000">
> <tr>
> <td valign="top"align=center>
> <table cellpadding="0"cellspacing="0"border="0">
> <tr><td colspan="2"><INPUT NAME="img"TYPE="image"SRC="[img]"width=600height=600border=0></td></tr>
> <tr>
> 
> <td> <font size=-1face="arial,helvetica"color="#FFFFFF"><b>Powered by MapServer</b></font></td>
> <td align="right"><img src="[scalebar]"></td>
> </tr>
> </table>
> </td>
> <td valign="top"bgcolor=#ffffff>
> <table cellpadding="5"cellspacing="0"border="0"bgcolor="#ffffff">
> <tr><td>
> <center><input type="submit"value="Refresh/Query"></center>
> <p>
> 
> <input type="radio"name="mode"value="browse"checked> <b>Browse map</b><br>
> <input type="radio"name="mode"value="query"> <b>Query feature</b><br>
> <input type="radio"name="mode"value="nquery"> <b>Query multiple features</b>
> 
> <hr>
> 
> <p>
> <b>Select Layers to Display: </b><br>
> <select multiplename="layer"size=3>
> <option value="cities"[cities_select]> Cities
> <option value="lakes"[lakes_select]> Lakes & Rivers
> <option value="streams"[streams_select]> Streams
> <option value="roads"[roads_select]> Roads
> <option value="townships"[townships_select]> Townships
> </select>
> 
> <p>
> Zoom In <input type=radioname=zoomdirvalue=1[zoomdir_1_check]>
> Pan <input type=radioname=zoomdirvalue=0[zoomdir_0_check]>
> Zoom Out <input type=radioname=zoomdirvalue=-1[zoomdir_-1_check]>
> <p>
> Zoom Size <input type=textname=zoomsizesize=4value=[zoomsize]>
> <p>
> 
> <font size=+1><b>Legend</b></font><br><hr>
> <img src="[legend]"><hr>
> 
> <p>
> <center><INPUT NAME="ref"TYPE="image"SRC="[ref]"border="0"></center>
> </td></tr></table>
> 
> </td></tr>
> </table>
> </center>
> 
> <input type="hidden"name="imgxy"value="299.5 299.5">
> <input type="hidden"name="imgext"value="[mapext]">
> <input type="hidden"name="map"value="[/Library/Webserver/Documents/ms_demo/demo.map]">
> <input type="hidden"name="savequery"value="true">
> <input type="hidden"name="mapext"value="shapes">
> 
> </form>
> 
> <p><hr><p>
> 
> </body></html>
> 
> and it produces this error
> msLoadMap(): Unable to access file. Illegal mapfile name.
> 
> I hope some one can point me out on this i got a compiled version 3.5 from
> Puneet Kishor <pkishor at geoanalytics.com>



More information about the MapServer-users mailing list