[mapserver-users] query in ms 3.5
Yu-Hsin Chen
ychen at yorktel.com
Mon Feb 25 10:13:58 PST 2002
Frank:
Looks like you're experiencing the 3.3->3.5 syndrome I had before.
'QUERY' object no longer exists in 3.5. Instead, you'd put your
TEMPLATE statement in your CLASS object. So the block of code in your
.map file changes from:
CLASS
NAME "County Roads 2001"
COLOR 200 125 25
END
QUERY
TEMPLATE "county_rds2001.html"
END
to:
CLASS
NAME "County Roads 2001"
COLOR 200 125 25
TEMPLATE "county_rds2001.html"
END
If you had HEADER and FOOTER tags they can stay where they are.
You shouldn't need the line for 'QUERYITEM'.
Yu-Hsin
-----Original Message-----
From: Frank Koormann [mailto:frank.koormann at intevation.de]
Sent: Monday, February 25, 2002 10:57 AM
To: Pushkar Pradhan
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] query in ms 3.5
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