[mapserver-users] demo on Mac X
Marcel v d Bilt
M.v.d.Bilt@chello.nl
Tue, 11 Jun 2002 13:26:50 +0200
--Apple-Mail-2-390453897
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Well it is still not working i got the itasca3.5 demo
the demo_init produces this on mac osX
msLoadMap(): General error message. Undefined symbol
"symbols/ctyhwy.gif" in class 0 of layer roads.
and demo.html produces
msLoadMap(): Unable to access file. Illegal mapfile name.
This tmp directory has to have write permissions but for who? i gave it
user www rwx group www rwx others r x
maybe i need user nobody i dont't know how httpd deals with its www
documents?
On maandag, juni 10, 2002, at 02:04 , Pushkar Pradhan wrote:
> I don't think there is problem in demo_init.html but in the mapfile :
> SHADESET (6) means there is problem on the 6th line of your map file or
> on
> the 6th line of your shade set file, don't remember which one.
> MAybe you supplied illegal keywords in the files.
>> 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=GET action="/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=GET action="/cgi-bin/mapserv.cgi">
>>
>> <center>
>> <table border=0 cellspacing=0 cellpadding=4 bgcolor="#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=600 height=600 border=0></td></tr>
>> <tr>
>> <td> <font size=-1 face="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 multiple name="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=radio name=zoomdir value=1
>> [zoomdir_1_check]>
>> Pan <input type=radio name=zoomdir value=0 [zoomdir_0_check]>
>> Zoom Out <input type=radio name=zoomdir value=-1
>> [zoomdir_-1_check]>
>> <p>
>> Zoom Size <input type=text name=zoomsize size=4
>> value=[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@geoanalytics.com>
>>
>>
>>
>>
>
> -Pushkar S. Pradhan
>
--Apple-Mail-2-390453897
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
charset=US-ASCII
Well it is still not working i got the itasca3.5 demo
the demo_init produces this on mac osX
<fontfamily><param>Lucida Grande</param><bigger>msLoadMap(): General
error message. Undefined symbol "symbols/ctyhwy.gif" in class 0 of
layer roads.
and demo.html produces
msLoadMap(): Unable to access file. Illegal mapfile name.
This tmp directory has to have write permissions but for who? i gave
it
user www rwx group www rwx others r x
maybe i need user nobody i dont't know how httpd deals with its www
documents?
</bigger></fontfamily>
On maandag, juni 10, 2002, at 02:04 , Pushkar Pradhan wrote:
<excerpt>I don't think there is problem in demo_init.html but in the
mapfile :
SHADESET (6) means there is problem on the 6th line of your map file
or on
the 6th line of your shade set file, don't remember which one.
MAybe you supplied illegal keywords in the files.
<excerpt>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=GET action="/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=GET action="/cgi-bin/mapserv.cgi">
<<center>
<<table border=0 cellspacing=0 cellpadding=4 bgcolor="#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=600 height=600 border=0><</td><</tr>
<<tr>
<<td> <<font size=-1 face="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 multiple name="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=radio name=zoomdir value=1
[zoomdir_1_check]>
Pan <<input type=radio name=zoomdir value=0 [zoomdir_0_check]>
Zoom Out <<input type=radio name=zoomdir value=-1
[zoomdir_-1_check]>
<<p>
Zoom Size <<input type=text name=zoomsize size=4
value=[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@geoanalytics.com>
</excerpt>
-Pushkar S. Pradhan
</excerpt>
--Apple-Mail-2-390453897--