[mapserver-users] a trouble with filter

bertha amalia serrato de la cruz bertha_bonita at yahoo.com
Fri Mar 29 17:55:51 EST 2002


Hi list..

i'm traying to do the first case looks like
http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/

but didn't work fine, i can't put togheter filteritem
and filter in the map file.

this is my statements

MAP
  NAME colonias
  SHAPEPATH "shapefiles"
  SIZE 300 300
  EXTENT  530605.75 3514787.82 542786.97 3530373.03 
  UNITS meters

  WEB
    IMAGEPATH "set colonias_init.html"
    IMAGEURL "set colonias_init.html"
  END

  QUERYMAP
   STATUS ON
   STYLE HILITE
   COLOR 255 255 0
  END

  LAYER
    NAME colonias
    DATA coloniaseda1
    STATUS DEFAULT
    TYPE POLYGON
    
  FILTERITEM colonias
   FILTER "%name%"

    CLASS
      TEMPLATE colonias_template.html
      COLOR 212 212 212
      OUTLINECOLOR 0 0 0
    END

   END

END 

this only show me the first attibute of .dbf file
(that's it VALLE DORADO) but the variable "name" works
fine, but when name is different to VALLE DORADO
attribute MapServer show me VALLE DORADO so i don't
know why always display the same attribute


<input type="hidden" name="mode" value="itemquery"> 
<INPUT type="hidden" name="qlayer" value="colonias"> 	
                

	Pick One:  <br><br>

	<select name="name" size="1">
		<option> valle dorado 
                <option> Parcela III
                <option> PIEDRAS NEGRAS o
                <option> BUENAVENTURA
                <option> costa azul
		<option> LOMAS DE VALLE VERDE
                <option> centro
	</select>


any suggestion..?


=====
*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
    LCC.Bertha A. Serrato
    bserrato at cicese.mx
    Laboratorio de Percepción Remota y S.I.G.
    CICESE,División de Ciencias de la Tierra.
    Ensenada, B.C.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es



More information about the mapserver-users mailing list