[mapserver-users] no GIF
Pericles S. Nacionales
pnaciona at gis.umn.edu
Tue Aug 14 07:56:31 PDT 2001
Try adding a another slash "\" on your IMAGEPATH path.
> IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp"
IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp\"
Also make sure that your IMAGEURL is actually "/tmp/" and not
"/itasca/tmp/"
Good luck!
Perry Nacionales
On Tue, 14 Aug 2001 CurnewS at DFO-MPO.GC.CA wrote:
> I've just recently installed Mapserver ver. 3.5 with OGR and GIF support. I
> have also tried to install the demo for ver. 3.4 and 3.5. I have the new
> symbol file and have edited the appropriate files according to the
> readmes(see below). I am running Win NT 4.0 Server with Service Pack 6a and
> IIS 4.0.
>
> When I initialize the demo I get the Mapserver interface with a black
> screen. In the demo.map I have all the layers turned on. The GIF is not
> even generated in the "tmp" directory.
>
> I have included the demo_init.html, demo.html, and demo.map files. If
> anyone could help me with this it would be greatly appreciated.
>
> Thanks,
> Shannon
>
>
> --------------------
> demo.map
> --------------------
>
> #
> # Start of map file
> #
> NAME DEMO
> STATUS ON
> SIZE 600 600
> EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
> UNITS METERS
> SHAPEPATH "d:\inetpub\wwwroot\itasca\data\"
> IMAGECOLOR 255 255 255
> SYMBOLSET "d:\inetpub\wwwroot\itasca\symbols\symbols34.sym"
> #IMAGETYPE PNG
>
> #
> # Projection definition, consult the PROJ.4 documentation for parameter
> discussion
> #
> #PROJECTION
> # "proj=utm"
> # "ellps=GRS80"
> # "zone=15"
> # "north"
> # "no_defs"
> #END
>
> #
> # Start of web interface definition
> #
> WEB
> HEADER demo_header.html
> TEMPLATE demo.html
> FOOTER demo_footer.html
> MINSCALE 1000
> MAXSCALE 1550000
> IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp"
> IMAGEURL "/tmp/"
> # LOG "demo.log"
> END
>
> QUERYMAP
> SIZE 200 200
> STATUS ON
> STYLE HILITE
> COLOR 255 0 0
> END
>
> #
> # Start of reference map
> #
> REFERENCE
> IMAGE graphics/reference.gif
> EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127
> SIZE 120 120
> 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 255 255 255
> SIZE tiny
> END
> STYLE 1
> SIZE 50 2
> COLOR 255 255 255
> UNITS MILES
> INTERVALS 1
> TRANSPARENT TRUE
> STATUS TRUE
> END
>
> #
> # Start of symbol definitions (we're only using a few)
> #
> SYMBOL
> NAME 'circle'
> TYPE ELLIPSE
> POINTS 1 1 END
> FILLED
> END
>
> #
> # Start of layer definitions
> #
>
> LAYER
> NAME county
> TYPE POLYGON
> STATUS DEFAULT
> DATA ctybdpy2
> CLASSITEM 'cty_name'
> CLASS
> EXPRESSION 'Itasca'
> OUTLINECOLOR 128 128 128
> COLOR 225 225 185
> END
> CLASS # every other county in the state
> EXPRESSION /./
> OUTLINECOLOR 128 128 128
> COLOR 255 255 255
> END
> END
>
> LAYER
> NAME cities
> TYPE POLYGON
> DATA mcd90py2
> STATUS ON
> CLASSITEM city_name
> CLASS
> NAME "Cities & Towns"
> EXPRESSION /./
> COLOR 255 225 90
> END
> END
>
> LAYER
> NAME townships
> TYPE POLYLINE
> DATA twprgpy3
> STATUS ON
> CLASS
> SYMBOL 'circle'
> SIZE 2
> NAME 'Townships'
> COLOR 181 181 145
> END
> END
>
> LAYER
> NAME lakes
> TYPE POLYGON
> STATUS ON
> DATA lakespy2
>
> CLASS
> NAME 'Lakes & Rivers'
> TEMPLATE "lakespy2.html"
> COLOR 49 117 185
> END
>
> HEADER "lakespy2_header.html"
> FOOTER "lakespy2_footer.html"
>
> TOLERANCE 3
> END # lakes
>
> LAYER
> NAME streams
> TYPE LINE
> STATUS ON
> DATA dlgstln2
>
> CLASS
> NAME "Streams"
> TEMPLATE "dlgstln2.html"
> COLOR 49 117 185
> END
>
> HEADER "dlgstln2_header.html"
> FOOTER "dlgstln2_footer.html"
>
> TOLERANCE 5
> END # streams
>
> LAYER
> NAME roads
> MAXSCALE 300000
> STATUS ON
> DATA ctyrdln3
> TYPE LINE
> CLASS
> COLOR 0 0 0
> END
> END # county roads
>
> LAYER
> NAME roads
> MAXSCALE 300000
> STATUS ON
> DATA ctyrdln3
> TYPE ANNOTATION
> LABELITEM "road_name"
> CLASS
> COLOR 255 255 255
> SYMBOL 'symbols/images/ctyhwy.gif'
> LABEL
> MINFEATURESIZE 40
> MINDISTANCE 150
> POSITION CC
> SIZE TINY
> COLOR 0 0 0
> END
> END
> END # county road annotation
>
> LAYER
> NAME roads
> MAXSCALE 600000
> STATUS ON
> DATA majrdln3
> TYPE LINE
> CLASS
> NAME "Roads"
> COLOR 0 0 0
> END
> END # highways
>
> LAYER
> NAME roads
> MAXSCALE 600000
> STATUS ON
> DATA majrdln3
> TYPE ANNOTATION
> LABELITEM "road_num"
> CLASSITEM "road_class"
> CLASS
> EXPRESSION "3"
> COLOR 0 0 0 # dummy color
> SYMBOL 'symbols/images/sthwy.gif'
> LABEL
> MINFEATURESIZE 50
> MINDISTANCE 150
> POSITION CC
> SIZE TINY
> COLOR 0 0 0
> END
> END
> CLASS
> EXPRESSION "2"
> COLOR 0 0 0 # dummy color
> SYMBOL 'symbols/images/ushwy.gif'
> LABEL
> MINFEATURESIZE 50
> MINDISTANCE 150
> POSITION CC
> SIZE TINY
> COLOR 0 0 0
> END
> END
> CLASS
> EXPRESSION "1"
> COLOR 0 0 0 # dummy color
> SYMBOL 'symbols/images/interstate.gif'
> LABEL
> MINFEATURESIZE 50
> MINDISTANCE 150
> POSITION CC
> SIZE TINY
> COLOR 255 255 255
> END
> END
> END # highway annotation
>
> LAYER
> NAME cities
> TYPE ANNOTATION
> DATA mcd90py2
> STATUS ON
> LABELITEM "city_name"
> CLASSITEM "city_name"
> LABELMAXSCALE 500000
> CLASS
> EXPRESSION /./
> COLOR -1 -1 -1
> LABEL
> COLOR 0 0 0
> SHADOWCOLOR 218 218 218
> SHADOWSIZE 2 2
> TYPE BITMAP
> SIZE MEDIUM
> POSITION CC
> PARTIALS FALSE
> BUFFER 2
> END
> END
> END
>
> END
>
>
> ------------------------
> 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.exe">
>
> <input type="hidden" name="map" value="d:\inetpub\wwwroot\itasca\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>
>
> </body></html>
>
>
> ---------------------
> 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.exe">
>
> <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="[map]">
> <input type="hidden" name="savequery" value="true">
> <input type="hidden" name="mapext" value="shapes">
>
> </form>
>
> <p><hr><p>
>
> </body></html>
>
More information about the MapServer-users
mailing list