[mapserver-users] Simple QUERY problem (fwd)

Stephen Lime steve.lime at dnr.state.mn.us
Tue Aug 28 06:24:41 PDT 2001


Actually, header and footer are valid at the layer level as well. All layer results are wrapped
by those files with ALL results wrapped by the header and footer in the web section. 3.5 
looses the QUERY object with it's contents moved to CLASSes. This was done to limit
the number of expressions that potentially needed evaluation and made code a bit 
simpler.

So, to fix, move your TEMPLATE line into the CLASS object and remove the QUERY object.

Steve

Stephen Lime
Internet Applications Analyst

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

>>> "Wolfgang W. Wasserburger" <wasserburger at plan.at> 08/28/01 06:14AM >>>
Teb,

the Header and Footer ahs to be transfered to the Web-Section of teh mapfile
and it will work.

Greetings from sunny Vienna, Austria

Wolfgang W. Wasserburger
WWW: http://www.plan.at/ - http://www.punktgenau.at/ -
http://www.plan.at/home/mitarbeiter/wwa/ 
  -----Original Message-----
  From: owner-mapserver-users at lists.gis.umn.edu 
[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of teb
  Sent: Wednesday, August 22, 2001 5:36 PM
  To: mapserver-users at lists.gis.umn.edu 
  Cc: robbrown99 at hotmail.com 
  Subject: [mapserver-users] Simple QUERY problem (fwd)


  Hello all,

  I am trying to get a simple query to work using v3.5 and the Mapplet. I
have used the QUERY command in the map file and have created a template,
header and footer. However, when I initialise the map from the form I get
the following message:
  loadLayer(): Unknown identifier. (QUERY):(451)


  I commented out the query commands in the map file and the map then
worked, but of course no query capability!

  Does anyone know where I might have gone wrong? Part of my map file looks
like this:


  LAYER
      NAME "PROW_Nodes"
      TYPE POINT
      DATA PROW_Link_point
      LABELITEM "REF_NO"
      STATUS OFF
      CLASS
        COLOR 255 51 0
        NAME "Public Right of Way Nodes (Queryable)"
        SYMBOL "signpost"
        LABEL
          SIZE SMALL
          COLOR 0 0 0
          BACKGROUNDCOLOR -1 -1 -1
          OUTLINECOLOR 255 255 255
          POSITION AUTO
          TYPE BITMAP
          BUFFER 2
        END
    ! ! ! ;  END
      HEADER "PROW_Node_header.html"
      FOOTER "PROW_Node_footer.html"
      QUERY
        TEMPLATE "PROW_Node_template.html"
      END
  END

  I would be grateful for any suggestions. Thanks for your time.

  Regards,

  Rob


----------------------------------------------------------------------------
--
  Get your FREE download of MSN Explorer at http://explorer.msn.com 





More information about the MapServer-users mailing list