demo problem

sara yurman syurman at mindspring.com
Sat Apr 22 15:27:34 PDT 2000


I've just installed mapserv 3.3.010, and have been trying to make the
demo work.  I am having trouble getting mapserv to display.  The .gif
files generate, but don't come up.  Unlike the online demo, they
generate in the ms_demo directory rather than the /tmp directory. I was
trying to just display a county outline for starters.  At times, I've
turned the logging function on, and it runs frustratingly clean.  My
Apache error log, however, shows the following:

script not found or unable to stat:
/home/httpd/cgi-bin/DEMO956440138790.gif
script not found or unable to stat:
/home/httpd/cgi-bin/DEMOsb956441272848.gif
script not found or unable to stat:
/home/httpd/cgi-bin/DEMOleg956441272848.gif
script not found or unable to stat:
/home/httpd/cgi-bin/DEMOref956441272848.gif

The extents were derived using shpinfo.pl in the
../mapscript/perl/examples directory.  I changed the units to DD
(decimal degrees) to match the shape file.

I've listed the following below:

* the forms section of my demo_init.html 
* my demo.map file
* my demo.html file

I am running Mandrake Linux 6.1 on an intel box, with a 2.2.14 kernel,
using Apache 1.3.9. and Perl 5.6.0.

Many thanks for your help.

Cheers,

Sara


********************Forms section, demo_init.html

 <form method=GET action="/cgi-bin/mapserv">

 <input type="hidden" name="map"
value="/home/httpd/html/ms_demo/demo.map">
 <input type="hidden" name="layer" value="county">
 <input type="hidden" name="zoomsize" value=2>

 <center><input type="submit" value="Initialize"></center>

 </form>

********************demo.map
#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600
SHADESET /home/httpd/html/ms_demo/symbols/shade.sym
MARKERSET /home/httpd/html/ms_demo/symbols/marker.sym
LINESET symbols/line.sym
EXTENT -81.456505 35.148420 -80.922882 35.419616
UNITS DD
SHAPEPATH "/home/httpd/html/ms_demo/data"
IMAGECOLOR 255 255 255


#
# Start of web interface definition
#
WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  MINSCALE 1000
  MAXSCALE 1550000
END

#
# Start of reference map
#
#REFERENCE
#  IMAGE graphics/reference_base.gif
#  EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184
#  STATUS ON
#  COLOR -1 -1 -1
#  OUTLINECOLOR 255 0 0
#END
#
#
# Start of legend
#
LEGEND
  KEYSIZE 18 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 0 0 0
    SIZE SMALL
  END
  SIZE 350 5
  COLOR 255 255 255
  BACKGROUNDCOLOR 0 0 0
  OUTLINECOLOR 0 0 0
  UNITS MILES
  INTERVALS 5
  STATUS ON
END

#
# Start of layer definitions
#

LAYER
  NAME county
  TYPE POLYGON
  STATUS DEFAULT
  DATA county
  CLASS
    SYMBOL 0
    OUTLINECOLOR 0 0 0
    COLOR 248 248 95
  END
END

END # Layer

END # Map File

****************************************demo.html
******************************While I obviously don't have all this
stuff, I thought 
******************************what I did have would display.  Oh well. 
<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">

<center>
<table border=2 cellpadding=10 width=100%>
<tr>
<td align=center>
<INPUT NAME="img" TYPE="image" SRC="[img]" width=600 height=600></A><p>
<img src="[scalebar]">
</td>
<td>

<input type="submit" value="Refresh/Query"><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>
<center><a
href="/cgi-bin/mapserv?map=[map]&mapext=[minx]+[miny]+[maxx]+[maxy]&mode=nquery&[get_layers
]">summarize</a></center>
<hr>

<p>
<b>Select Layers to Display: </b><br>
<select multiple name="layer" size=3>
<option value="cities" [cities_select]> City Names
<option value="lakes" [lakes_select]> Lakes
<option value="streams" [streams_select]> Streams
<option value="primary_roads" [primary_roads_select]> Primary Roads
<option value="secondary_roads" [secondary_roads_select]> Secondary
Roads
<option value="railroad" [railroad_select]> Railroads
<option value="runways" [runways_select]> Airport Runways
<option value="landsat" [landsat_select]> Landsat TM Image
</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>
<INPUT NAME="ref" TYPE="image" SRC="[ref]" border="0"></A><p>

</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="[map]">

</form>

<p><hr><p>

</body>

</HTML>
-- 

Sara W. Yurman
Spatial Focus, Inc.

email: syurman at spatialfocus.com
voice: (404) 378-0989
fax:   (209) 254-9531



More information about the MapServer-users mailing list