point file filter

Stephen Lime steve.lime at dnr.state.mn.us
Mon Feb 5 10:28:22 EST 2001


You can use dynamic expressions to do that. Let's say you have a mapfile with
a point layer called "mypoints" with a single class. You can set up a select list
to set the expression for that class:

  <select name="map_mypoints_class_expression" single>
    <option value="expression"> option 1</option>
    <option value="expression"> option 2</option>
    ...
  </select>

The expressions can be any valid MapServer (i.e. string, logical or regular) 
expression. Syntax of the expression is identical to that entered in a map
file.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> <Alexspringer at aol.com> 02/03/01 05:06PM >>>
Using the mapserver cgi, I have a point file in use.  I would like to add a 
select [drop down box] that has values for a filter to be applied to one 
field in the point file dbf so that only those records with the field value 
equal to that filter display.  Does anyone have an example of the .map and 
.htm that can demonstrate how this is implemented?

Thank you.
 




More information about the mapserver-users mailing list