query map object

Dennis Christopher dennis at avenza.com
Tue Oct 24 16:30:49 EDT 2000


I thought an addition of a query map object to a working demo map would
be straightforward, but mapserver
doesn't like my .map file once I add this:

 # highlight selected area in red:
QUERYMAP
   # STATUS ON
  COLOR 255 0 0
  STYLE HILITE
 END

The layer is as follows:

LAYER
  NAME park
  DESCRIPTION "Parks"
  TYPE POLYGON
  STATUS OFF
  DATA park
  CLASS
    NAME "Parks"
    COLOR 200 255 0
    OUTLINECOLOR 120 120 120
  END
# For now, we use HEADER to hold the list of fields to display in query
results
  HEADER "Name_e Year_est Area_KmSq"
  TOLERANCE 5
  QUERYITEM "Name_e"
  QUERY
    EXPRESSION /./
    TEMPLATE "ttt"
  END

END # Layer

It seems that a QUERYITEM and a QUERY are logically connected, since the
QUERYITEM names the dbf attribute
that the EXPRESSION field is supposed to range over. How is the QUERYMAP
connected to both/
or either? What do I have to do to add this block to my layer?

Dennis Christopher
--
Dennis Christopher (dennis at avenza.com)
Product Development Manager
Avenza Software, Inc.





More information about the mapserver-users mailing list