Hi list,<br><br>everytime, when I try to change the cgi parameter by a html document, the browser wants me to download "mapserv.exe".<br>I test the itasca demo.<br><br><br clear="all">thanks for help!<br><br>#<br>
# Start of map file<br>#<br>NAME DEMO<br>STATUS ON<br>SIZE 600 600<br>EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897<br>UNITS METERS<br>SHAPEPATH "data"<br>IMAGECOLOR 255 255 255<br><br>
<br># you may need to change this to match your MapServer build<br>#IMAGETYPE PNG<br><br>#<br># Projection definition, consult the PROJ.4 documentation for parameter discussion<br>#<br>#PROJECTION<br># "proj=utm"
<br># "ellps=GRS80"<br># "zone=15"<br># "north"<br># "no_defs"<br>#<br># OR: <br>#<br># "init=epsg:26915"<br>#END<br><br>#<br># Start of web interface definition (including WMS enabling metadata)
<br>#<br>WEB<br> HEADER demo_header.html<br> TEMPLATE demo.html<br> FOOTER demo_footer.html<br> MINSCALE 1000<br> MAXSCALE 1550000<br> IMAGEPATH "set in demo_init.html"<br> IMAGEURL "set in demo_init.html"
<br> METADATA<br> WMS_TITLE "UMN MapServer Itasca Demo"<br> WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota."<br> #WMS_ACCESSCONSTRAINTS none
<br><br> # change this value to match your setup<br> WMS_ONLINERESOURCE "<a href="http://localhost/demo_init.html">http://localhost/demo_init.html</a>"<br><br> WMS_SRS "EPSG:26915"<br> END<br>
END<br><br>QUERYMAP<br> SIZE 200 200<br> STATUS ON<br> STYLE HILITE<br> COLOR 255 0 0<br>END<br><br>#<br># Start of reference map<br>#<br>REFERENCE<br> IMAGE graphics/reference.png<br> EXTENT 393234.393701263 5205405.16440722
495769.579718949 5307959.02579127<br> SIZE 120 120<br> STATUS ON<br> COLOR -1 -1 -1<br> OUTLINECOLOR 255 0 0<br>END<br><br>#<br># Start of legend<br>#<br>LEGEND<br> KEYSIZE 18 12<br> LABEL<br> TYPE BITMAP<br> SIZE MEDIUM
<br> COLOR 0 0 89<br> END<br> STATUS ON<br>END<br><br>#<br># Start of scalebar<br>#<br>SCALEBAR<br> IMAGECOLOR 255 255 255<br> LABEL<br> COLOR 255 255 255<br> SIZE tiny <br> END<br> STYLE 1<br> SIZE 80 2
<br> COLOR 255 255 255<br> UNITS MILES<br> INTERVALS 1<br> TRANSPARENT TRUE<br> STATUS TRUE<br>END<br><br>#<br># Start of symbol definitions (we're only using a few)<br>#<br>SYMBOL<br> NAME 'circle'<br> TYPE ELLIPSE
<br> POINTS 1 1 END<br> FILLED TRUE<br>END<br><br>#<br># Start of layer definitions<br>#<br><br>LAYER<br> NAME ctybdpy2<br> TYPE POLYGON<br> STATUS DEFAULT<br> DATA ctybdpy2<br> <br> CLASSITEM 'cty_name'<br>
CLASS<br> EXPRESSION 'Itasca'<br> OUTLINECOLOR 128 128 128<br> COLOR 225 225 185<br> END<br> CLASS # every other county in the state<br> EXPRESSION /./ <br> OUTLINECOLOR 128 128 128<br> COLOR 255 255 255
<br> END<br> METADATA<br> WMS_TITLE "County Boundary"<br> WMS_ABSTRACT "Itasca County boundary shapefile. See <a href="http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html">http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html
</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END<br><br>LAYER<br> NAME mcd90py2<br> GROUP cities<br> TYPE POLYGON<br> DATA mcd90py2<br> STATUS OFF<br> CLASSITEM city_name <br>
CLASS<br> NAME "Cities & Towns"<br> EXPRESSION /./<br> COLOR 255 225 90<br> TEMPLATE "mcd90py2.html"<br> END<br><br> HEADER "mcd90py2_header.html"<br> FOOTER "mcd90py2_footer.html"
<br><br> DUMP TRUE # allow GML export<br><br> METADATA<br> WMS_TITLE "Minor Civil Divisions"<br> WMS_ABSTRACT "Minor civil divisions for Itasca County. (boundaries only)"<br> WMS_SRS "EPSG:26915"
<br> END<br>END<br><br>LAYER<br> NAME twprgpy3<br> TYPE POLYGON<br> DATA twprgpy3<br> STATUS OFF<br> CLASS<br> SYMBOL 'circle'<br> SIZE 2<br> NAME 'Townships'<br> OUTLINECOLOR 181 181 145
<br> END<br> METADATA<br> WMS_TITLE "Township Boundaries"<br> WMS_ABSTRACT "Pulic Land Survey (PLS) township boundaries for Itasca County. See <a href="http://deli.dnr.state.mn.us/metadata/full/twprgne2.html">
http://deli.dnr.state.mn.us/metadata/full/twprgne2.html</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END<br><br>LAYER<br> NAME lakespy2<br> TYPE POLYGON<br> STATUS OFF<br> DATA lakespy2
<br><br> CLASS<br> NAME 'Lakes & Rivers'<br> TEMPLATE "lakespy2.html"<br> COLOR 49 117 185 <br> END<br><br> HEADER "lakespy2_header.html"<br> FOOTER "lakespy2_footer.html"
<br> <br> TOLERANCE 3<br><br> DUMP TRUE # allow GML export<br><br> METADATA<br> WMS_TITLE "Lakes and Rivers"<br> WMS_ABSTRACT "DLG lake and river polygons for Itasca County. See <a href="http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html">
http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END # lakes<br><br>LAYER<br> NAME dlgstln2<br> TYPE LINE<br> STATUS OFF<br> DATA dlgstln2
<br><br> CLASS<br> NAME "Streams"<br> TEMPLATE "dlgstln2.html" <br> COLOR 49 117 185<br> END<br><br> HEADER "dlgstln2_header.html"<br> FOOTER "dlgstln2_footer.html"<br>
<br> TOLERANCE 5 <br><br> DUMP TRUE # allow GML export<br><br> METADATA<br> WMS_TITLE "Streams"<br> WMS_ABSTRACT "DLG streams for Itasca County. See <a href="http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html">
http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END # streams<br><br>LAYER<br> NAME ctyrdln3<br> GROUP roads<br> MAXSCALE 300000
<br> STATUS OFF<br> DATA ctyrdln3<br> TYPE LINE<br> CLASS<br> COLOR 0 0 0<br> END<br><br> METADATA<br> WMS_TITLE "County Roads"<br> WMS_ABSTRACT "County roads. (lines only) Derived from MNDOT roads layer, see
<a href="http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html">http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END # county roads
<br><br>LAYER<br> NAME ctyrdln3_anno<br> GROUP roads<br> MAXSCALE 300000<br> STATUS OFF<br> DATA ctyrdln3<br> TYPE ANNOTATION<br> LABELITEM "road_name"<br> CLASS<br> COLOR 255 255 255<br> SYMBOL 'symbols/ctyhwy.png'
<br> LABEL<br> MINFEATURESIZE 40<br> MINDISTANCE 150<br> POSITION CC<br> SIZE TINY<br> COLOR 0 0 0<br> END<br> END<br> <br> METADATA<br> WMS_TITLE "County Roads"<br> WMS_ABSTRACT "County roads. (shields only) Derived from MNDOT roads layer, see
<a href="http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html">http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END # county road annotation
<br><br>LAYER<br> NAME majrdln3<br> GROUP roads<br> MAXSCALE 600000<br> STATUS OFF<br> DATA majrdln3<br> TYPE LINE<br> CLASS<br> NAME "Roads"<br> COLOR 0 0 0<br> END<br><br> METADATA<br> WMS_TITLE "Highways"
<br> WMS_ABSTRACT "Highways- state, US and interstate. (lines only) Derived from MNDOT roads layer, see <a href="http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html">http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html
</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END # highways<br><br>LAYER<br> NAME majrdln3_anno<br> GROUP roads<br> MAXSCALE 600000<br> STATUS OFF<br> DATA majrdln3<br> TYPE ANNOTATION
<br> LABELITEM "road_num" <br> CLASSITEM "road_class"<br> CLASS<br> EXPRESSION "3"<br> COLOR 0 0 0 # dummy color<br> SYMBOL 'symbols/sthwy.png'<br> LABEL<br> MINFEATURESIZE 50
<br> MINDISTANCE 150<br> POSITION CC<br> SIZE TINY<br> COLOR 0 0 0<br> END<br> END<br> CLASS<br> EXPRESSION "2" <br> COLOR 0 0 0 # dummy color<br> SYMBOL 'symbols/ushwy.png'
<br> LABEL<br> MINFEATURESIZE 50<br> MINDISTANCE 150<br> POSITION CC<br> SIZE TINY<br> COLOR 0 0 0<br> END<br> END<br> CLASS<br> EXPRESSION "1" <br> COLOR 0 0 0 # dummy color
<br> SYMBOL 'symbols/interstate.png'<br> LABEL<br> MINFEATURESIZE 50<br> MINDISTANCE 150<br> POSITION CC<br> SIZE TINY<br> COLOR 255 255 255<br> END<br> END<br><br> METADATA<br>
WMS_TITLE "Highways"<br> WMS_ABSTRACT "Highways- state, US and interstate. (shields only) Derived from MNDOT roads layer, see <a href="http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html">http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html
</a> for more information."<br> WMS_SRS "EPSG:26915"<br> END<br>END # highway annotation<br><br>LAYER<br> NAME airports<br> TYPE POINT<br> DATA airports<br> STATUS OFF<br> CLASS<br> NAME 'Airports'
<br> COLOR 128 255 164<br> SYMBOL 'circle'<br> SIZE 7<br> TEMPLATE "airports.html"<br> END<br><br> HEADER "airports_header.html"<br> FOOTER "airports_footer.html"<br><br>
TOLERANCE 5<br><br> METADATA<br> WMS_TITLE "Airports"<br> WMS_ABSTRACT "Airport runways for Itasca County."<br> WMS_SRS "EPSG:26915"<br> END<br>END<br><br>LAYER<br> #NAME mcd90py2_anno
<br> NAME cities<br> TYPE ANNOTATION<br> DATA mcd90py2<br> STATUS OFF<br> LABELITEM "city_name"<br> CLASSITEM "city_name"<br> LABELMAXSCALE 500000<br> CLASS<br> EXPRESSION /./<br> COLOR -1 -1 -1
<br> LABEL<br> COLOR 0 0 0<br> SHADOWCOLOR 218 218 218<br> SHADOWSIZE 2 2<br> TYPE BITMAP<br> SIZE MEDIUM<br> POSITION CC<br> PARTIALS FALSE<br> BUFFER 2<br> END<br> END<br><br>
METADATA<br> WMS_TITLE "Minor Civil Divisions"<br> WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation only)"<br> WMS_SRS "EPSG:26915"<br> END<br>END<br><br>END # Map File
<br><br><br><html><br><head><title>MapServer Demo Interface</title></head><br><body bgcolor=#FFFFFF><br><br><center><h1>MapServer Demo Interface</h1></center><br>
<hr><br><form method=GET action="D:\Programme\Apache Group\Apache2\cgi-bin\mapserv.exe?map=D:\htdocs\demo.map"><br><br><center><br><table border=0 cellspacing=0 cellpadding=4 bgcolor="#000000">
<br><tr><br><td valign="top" align=center><br> <table cellpadding="0" cellspacing="0" border="0"><br> <tr><td colspan="2"><INPUT NAME="img" TYPE="image" SRC="[img]" width=600 height=600 border=0></td></tr>
<br> <tr><br> <td> <font size=-1 face="arial,helvetica" color="#FFFFFF"><b>Powered by MapServer</b></font></td><br> <td align="right"><img src="[scalebar]"></td>
<br> </tr><br> </table><br></td><br><td valign="top" bgcolor=#ffffff><br> <table cellpadding="5" cellspacing="0" border="0" bgcolor="#ffffff">
<br> <tr><td><br> <center><input type="submit" value="Refresh/Query"></center><br> <p><br><br> <input type="radio" name="mode" value="browse" checked> <b>Browse map</b><br>
<br> <input type="radio" name="mode" value="query"> <b>Query feature</b><br><br> <input type="radio" name="mode" value="nquery"> <b>Query multiple features</b>
<br><br> <hr><br><br> <p><br> <b>Select Layers to Display: </b><br><br> <select multiple name="layer" size=3><br> <option value="airports" [airports_select]> Airports
<br> <option value="cities" [cities_select]> Cities<br> <option value="lakespy2" [lakespy2_select]> Lakes & Rivers<br> <option value="dlgstln2" [dlgstln2_select]> Streams
<br> <option value="roads" [roads_select]> Roads<br> <option value="twprgpy3" [twprgpy3_select]> Townships<br> </select><br><br> <p><br> Zoom In <input type=radio name=zoomdir value=1 [zoomdir_1_check]>
<br> Pan <input type=radio name=zoomdir value=0 [zoomdir_0_check]><br> Zoom Out <input type=radio name=zoomdir value=-1 [zoomdir_-1_check]><br> <p><br> Zoom Size <input type=text name=zoomsize size=4 value=[zoomsize]>
<br> <p><br><br> <font size=+1><b>Legend</b></font><br><hr><br> <img src="[legend]"><hr><br><br> <p><br> <center><INPUT NAME="ref" TYPE="image" SRC="[ref]" border="0"></center>
<br> </td></tr></table><br><br> </td></tr><br></table><br></center><br><br><input type="hidden" name="imgxy" value="299.5 299.5"><br><!-- <input type="hidden" name="imgext" value="[mapext]"> -->
<br><input type="hidden" name="map" value="demo.map"><br><input type="hidden" name="layer" value="airports"><br><input type="hidden" name="layer" value="dlgstln2">
<br><input type="hidden" name="layer" value="lakespy2"><br><input type="hidden" name="layer" value="mcd90py2"><br><input type="hidden" name="layer" value="twprgpy3">
<br><input type="hidden" name="layer" value="ctyrdln3"><br><input type="hidden" name="zoomsize" value=2><br><br><input type="hidden" name="savequery" value="true">
<br><br><input type="hidden" name="program" value=\cgi-bin\mapserv.exe"><br><input type="hidden" name="map_web_imagepath" value="/tmp/"><br><input type="hidden" name="map_web_imageurl" value="/tmp/">
<br><br></form><br><br><p><hr><p><br><br></body></html><br><br><br>