Map Refresh, Reference Zoom, and Radio Button problems
Geographic Resource Solutions
grs at GRSGIS.COM
Tue Nov 2 15:27:57 PST 2004
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041102/91c88df5/attachment.htm>
-------------- next part --------------
MAP
NAME CoEZoning
STATUS ON
#
SIZE 600 500 # map size
# SIZE 150 150 # reference image size
#
# EXTENT 5915000.00 2130000.00 6015000.00 2230000.00
EXTENT 5950000.00 2162000.00 5980000.00 2190000.00
UNITS FEET
IMAGECOLOR 255 255 255
IMAGETYPE PNG
SHAPEPATH "data"
SYMBOLSET "symbols\symbols35.sym"
FONTSET "fonts\fonts.list"
RESOLUTION 128
SCALE 100000.0
#
PROJECTION
"init=epsg:2225"
END
#
WEB
IMAGEPATH "scratch\"
IMAGEURL "\\10.53.0.16\gisms\scratch\"
LOG "tmp\webimage.log"
# TEMPLATE "COEexample2-4.html"
TEMPLATE "COEZI.html"
MINSCALE 40
MAXSCALE 144000
END
#
# Start of reference map
#
REFERENCE
STATUS ON
IMAGE 'image\coeZoning_ref.png'
SIZE 150 150
EXTENT 5950000.00 2162000.00 5980000.00 2190000.00
MINBOXSIZE 11
MAXBOXSIZE 100
COLOR -1 -1 -1
OUTLINECOLOR 255 255 0
MARKERSIZE 10
MARKER 'star'
END
#
# Start of legend
#
LEGEND
KEYSIZE 15 10
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
OUTLINECOLOR 0 0 0
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE TINY
END
STYLE 1
SIZE 150 3
COLOR 0 0 0
UNITS FEET
INTERVALS 3
TRANSPARENT FALSE
STATUS ON
END
#
# Start of the querymap object
#
QUERYMAP
SIZE 200 150
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
#
# Start of layer definitions
#
LAYER
NAME "Zoning"
DATA "zoning_polygon" #shapefile name
TYPE POLYGON
STATUS DEFAULT
CLASSITEM "DESIGNATIO"
CLASS
NAME "A"
EXPRESSION "A"
STYLE
COLOR 76 230 0
OUTLINECOLOR 255 255 0
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "AC"
EXPRESSION "AC"
STYLE
COLOR 205 245 122
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME 'CC-AR'
EXPRESSION 'CC-AR'
STYLE
COLOR 168 56 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CC-LW"
EXPRESSION "CC-LW"
STYLE
COLOR 168 56 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CN"
EXPRESSION "CN"
STYLE
COLOR 255 0 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CP"
EXPRESSION "CP"
STYLE
COLOR 188 68 101
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CS"
EXPRESSION "CS"
STYLE
COLOR 115 0 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CS-AR"
EXPRESSION "CS-AR"
STYLE
COLOR 115 0 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CS-AR-LW"
EXPRESSION "CS-AR-LW"
STYLE
COLOR 115 0 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CS-LW"
EXPRESSION "CS-LW"
STYLE
COLOR 115 0 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CS-PD"
EXPRESSION "CS-PD"
STYLE
COLOR 115 0 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CS-Q"
EXPRESSION "CS-Q"
STYLE
COLOR 115 0 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "CW"
EXPRESSION "CW"
STYLE
COLOR 233 22 224
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "HM"
EXPRESSION "HM"
STYLE
COLOR 115 255 223
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "MC"
EXPRESSION "MC"
STYLE
COLOR 102 152 141
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "MG"
EXPRESSION "MG"
STYLE
COLOR 130 130 130
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "ML"
EXPRESSION "ML"
STYLE
COLOR 178 178 178
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "NR"
EXPRESSION "NR"
STYLE
COLOR 115 115 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "OR"
EXPRESSION "OR"
STYLE
COLOR 230 152 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "OR-AR"
EXPRESSION "OR-AR"
STYLE
COLOR 230 152 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "P"
EXPRESSION "P"
STYLE
COLOR 0 169 230
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "PF-M"
EXPRESSION "PF-M"
STYLE
COLOR 244 160 189
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RM-1-AR-LW"
EXPRESSION "RM-1-AR-LW"
STYLE
COLOR 115 76 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RM-1000"
EXPRESSION "RM-1000"
STYLE
COLOR 115 76 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RM-1000-AR"
EXPRESSION "RM-1000-AR"
STYLE
COLOR 115 76 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RM-2500"
EXPRESSION "RM-2500"
STYLE
COLOR 255 170 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RM-2500-AR"
EXPRESSION "RM-2500-AR"
STYLE
COLOR 255 170 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RS-12000"
EXPRESSION "RS-12000"
STYLE
COLOR 255 235 175
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RS-6000"
EXPRESSION "RS-6000"
STYLE
COLOR 255 255 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "RS-6000-PD"
EXPRESSION "RS-6000-PD"
STYLE
COLOR 255 255 0
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "WC"
EXPRESSION "WC"
STYLE
COLOR 76 0 115
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
CLASS
NAME "WD"
EXPRESSION "WD"
STYLE
COLOR 190 210 155
OUTLINECOLOR 50 50 50
SIZE 2
END
TEMPLATE "templates/zoning_query.html"
END
END
LAYER
NAME "WaterBodies"
Group "Water"
DATA "city_limits_polygon" #shapefile name
TYPE POLYGON
STATUS OFF
CLASS
NAME "Water"
STYLE
COLOR 0 0 255
END
END
END
LAYER
NAME "CityLimits"
DATA "city_limits_polygon" #shapefile name
TYPE LINE
STATUS ON
CLASS
NAME "City Limits"
STYLE
COLOR 0 0 0
SYMBOL "ldashdash"
SIZE 3
END
END
END
LAYER
NAME "Hydrology"
GROUP "Water"
DATA "city_limits_polygon" #shapefile name
TYPE LINE
STATUS OFF
CLASS
NAME "Streams and Rivers"
STYLE
COLOR 0 0 255
SYMBOL "dashed3dot"
SIZE 1
END
END
END
LAYER
NAME "CoastalZone"
DATA "coastal_zone_polygon" #shapefile name
TYPE LINE
STATUS OFF
CLASS
NAME "Coastal Zone Boundary"
STYLE
COLOR 0 0 0
SIZE 2
SYMBOL "dasheddot"
END
END
END
LAYER
NAME "Streets"
DATA "ekactrlnsp83c_arc" #shapefile name
TYPE LINE
STATUS OFF
CLASSITEM 'MAJOR_ROAD'
CLASS
EXPRESSION 'y'
NAME "Major Streets & Highways"
TEMPLATE "templates/street_query.html"
STYLE
COLOR 255 0 255
SIZE 3
SYMBOL "dasheddot"
END
END
CLASS
NAME "Streets"
TEMPLATE "templates/street_query.html"
STYLE
COLOR 150 150 150
SIZE 1
END
END
END
#
# next layer is for use in generation of reference map
#
LAYER
NAME "MajorStreets"
DATA "ekactrlnsp83c_arc" #shapefile name
TYPE LINE
STATUS OFF
FILTERITEM 'MAJOR_ROAD'
FILTER 'y'
CLASS
NAME "Major Streets & Highways"
TEMPLATE "templates/street_query.html"
STYLE
COLOR 255 0 255
SIZE 3
# SYMBOL "dasheddot"
END
END
END
LAYER
NAME "Parcels"
DATA "parcels_polygon" #shapefile name
TYPE LINE
STATUS OFF
CLASS
NAME "Parcels"
TEMPLATE "templates/parcel_query.html"
STYLE
COLOR 200 200 200
SIZE 1
END
END
END
LAYER
NAME "ZoningBoundaries"
DATA "zoning_polygon" #shapefile name
TYPE LINE
STATUS DEFAULT
CLASS
STYLE
SIZE 2
COLOR 50 50 50
END
END
END
LAYER
NAME "ZoningLabels"
DATA "zoning_polygon" #shapefile name
STATUS ON
TYPE ANNOTATION
CLASSITEM "DESIGNATIO"
LABELITEM "DESIGNATIO"
CLASS
# NAME "Zoning Designation"
COLOR -1 -1 -1
LABEL
COLOR 132 31 31
SHADOWCOLOR 218 218 218
SHADOWSIZE 2 2
TYPE TRUETYPE
FONT arial-bold
SIZE 8
ANTIALIAS TRUE
POSITION CC
PARTIALS TRUE
MINDISTANCE 200
BUFFER 4
END # end of label
END
END
END # end of map file
-------------- next part --------------
<html>
<head>
<title>City of Eureka GIS - Zoning Information</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link type="text/css" rel="stylesheet" href="coe.css" />
</head>
<body bgcolor="#FFFFFF" text="#000000">
<!-- START OF MAPSERVER FORM -->
<form name=mapserv method=get action=/scripts/mapserv.exe>
<!-- HIDDEN MAPSERVER CGI VARIABLES -->
<input type="hidden" name="imgxy" value="[center]">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="savequery" value="true">
<h2 align="center">City of Eureka GIS - Zoning Information/Query</h2>
<HR>
<table width="860" border="0" cell padding=4 cell spacing=0 align="center">
<tbody>
<tr>
<td bgColor=#ffffff vAlign=top>
<table bgColor=#ffffff border="0" cell padding=5 width=150>
<tr>
<td>
<!-- SPECIFY MAP MODE and ZOOM/PAN Controls-->
<center><font size=-1><b>View/Browse Control</b><br></center>
<!--
<INPUT type=radio value=1 name=zoomdir> Zoom In<BR>
<INPUT type=radio value=-1 name=zoomdir> Zoom Out<BR>
<B>Zoom Factor=</B> <INPUT name=zoomsize size=4 value=2>
<HR>
<INPUT type=radio CHECKED value=0 name=zoomdir> View Center<BR>
-->
<INPUT name="mode" type="radio" value="zoomin" [mode_zoomin_check]> Zoom In<BR>
<INPUT name="mode" type="radio" value="zoomout" [mode_zoomout_check]> Zoom Out<BR>
<B>Zoom Factor</B> <INPUT name="zoomsize" size="4" value="2">
<HR>
<INPUT CHECKED name="mode" type="radio" value="browse" [mode_browse_check]> View Center<BR>
<!-- -->
<HR>
<INPUT type=radio value=query name=mode [mode_query_check]> Query Feature<BR>
<INPUT type=radio value=nquery name=mode [mode_nquery_check]> Query Feature<u>s</u><BR>
<HR><br>
<!-- FORM SUBMIT BUTTON -->
<center>
<input type=submit name=submit value="Update View">
</center>
<br>
<hr>
<!-- SPECIFY VECTOR LAYERS -->
<center><br><b>Select Layers</b><br></center>
<input type="checkbox" name="layer" value="Zoning" [Zoning_check] checked>
Zoning <br>
<input type="checkbox" name="layer" value="ZoningLabels" [ZoningLabels_check]>
Zoning Labels <br>
<input type="checkbox" name="layer" value="Parcels" [Parcels_check]>
Parcels <br>
<input type="checkbox" name="layer" value="CoastalZone" [CoastalZone_check]>
Coastal Zone <br>
<input type="checkbox" name="layer" value="CityLimits" [CityLimits_check]>
City Limits <br>
<input type="checkbox" name="layer" value="Water" [Water_check]>
Water <br>
<input type="checkbox" name="layer" value="Streets" [Streets_check]>
Streets </font>
<br><br>
<!-- SPECIFY RASTER LAYERS -->
<!--
<div align="center"><b>Background</b><br></div>
<select name="layer">
<option value=" " [ _select]>No Background</option>
<option value="imagery" [imagery_select]>Panchromatic Imagery</option>
</select>
-->
<br>
<hr>
</td>
</tr>
</table>
</td>
<TD align=middle vAlign=top>
<TABLE bgColor=#000000 border=0 cellPadding=4 cellSpacing=0 width=600>
<TR>
<!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE -->
<TD colSpan=3>
<INPUT type="image" name="img" src="[img]" width="[mapwidth]" height="[mapheight]" border="0">
<!-- <INPUT type=image width=595 src="samples\City of Eureka GIS - Zoning Information_files/CoEZoning10989896373108.png" border=0 name=img> -->
</TD>
</TR>
<TR>
<TD> <FONT color=#aaaaaa face=arial,helvetica
size=-1><B>MapServer v4.2.3</B></FONT></TD>
<TD align="center"> <FONT color=#000000 face=arial,helvetica
size=-1><B>Scale= 1: </B></FONT><INPUT name="scale" size="8" value="[scale]">
</TD>
<TD align="right">
<img name="scalebar" src="[scalebar]">
</TD>
</TR>
</TABLE>
</td>
<TD align=left vAlign=top>
<table bgColor=#ffffff border="0" cell padding=5 width=130>
<tr>
<!-- REFERENCE AND LEGEND COLUMN -->
<td rowspan="1" valign="top" align="center">
<b>Reference Map</b><br>
<input src="[ref]" name="ref" width=125 type="image" >
<!-- <INPUT src="image/CoEZoning_ref.png" name="ref" width=125 type="image"> -->
</p><hr><br>
<b>Map Legend</b><br>
<img name="legend" src="[legend]">
<!-- <img src="samples/City of Eureka GIS - Zoning Information_files/CoEZoningleg10989896373108.png"> -->
<br><hr>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<hr>
</form>
<p class="Small" align="center">
<a href="http://eurekawebserver/GISMS/COEWEBGISindex.html">GIS Home Page</a>  
<A href="http://10.53.0.16/scripts/mapserv.exe?map=D:/Inetpub/wwwroot/GISMS/COEPAR.map&mode=browse">Parcel Information/Query</A>  
<A href="http://10.53.0.16/scripts/mapserv.exe?map=D:/Inetpub/wwwroot/GISMS/COEFRA.map&mode=browse">Fire Response Area Information/Query</A>  
<A href="http://10.53.0.16/scripts/mapserv.exe?map=D:/Inetpub/wwwroot/GISMS/COELUPI.map&mode=browse">Land Use Information/Query</A>  
<A href="http://10.53.0.16/scripts/mapserv.exe?map=D:/Inetpub/wwwroot/GISMS/COEZI.map&mode=browse"><B>Reset Zoning View</B></A>  
</p>
<hr>
</BODY>
</HTML>
-------------- next part --------------
Geographic Resource Solutions
1125 16th Street, Suite 213
Arcata, CA 95521
Phone: (707) 822-8005
Fax: (707) 822-2864
www.grsgis.com
More information about the MapServer-users
mailing list