[mapserver-users] query in ms 3.5

Frank Koormann frank.koormann at intevation.de
Mon Feb 25 07:57:10 PST 2002


Pushkar,

* Pushkar Pradhan (pushkar at ERC.MsState.Edu) [020220 21:01]:
> Can anybody send me an example of how to do a query in ms 3.5 or correct
> my map file, I tried putting TYPE query but didn't work. I am pasting below a
> portion of my .map file, the county_rds2001.html contains what used to be in
> the header, footer and the main files in ms 3.3
> Besides I also want to show the layer as well as query it.
> What is QUERYITEM I didn't find any info on it? Thanks,
> LAYER
>    NAME county_rds2001
>    TYPE LINE
>    DATA county_rds2001
>    STATUS ON
>    QUERYITEM "county roads"
> 
>    CLASS
>      NAME "County Roads 2001"
>      COLOR 200 125 25
>    END
> 
>    QUERY
>      TEMPLATE "county_rds2001.html"
>    END
> 
>   TOLERANCE 3
> 
> END # end of layer object - county roads (2001)

With the step from 3.4 to 3.5 the query concept has changed. The 
TEMPLATE tag has moved from the QUERY to the CLASS object
(http://mapserver.gis.umn.edu/doc/mapserver-FAQ.html#d41e38)

QUERYITEM is a tag from 3.3, not used any more.

Regards,

        Frank

-- 
Frank Koormann                             <frank.koormann at intevation.de>
 Professional Service around Free Software       (http://intevation.net/)
 FreeGIS Project                                 (http://freegis.org/)



More information about the MapServer-users mailing list