[Mapserver-users] execute two querys at the same time

Jan Hartmann jhart@frw.uva.nl
Mon, 05 May 2003 15:57:51 +0200


Nicole,

Aren't you making it very difficult for yourself? If you just want to 
display assorted selections with different colors, you can use CLASS 
expressions within layers. To display selections from several layers, 
you can define classes for each layer and display all layers 
transparently (see OUTPUTFORMAT). Queries are only needed when you want 
to process additional data from the selected items. Templates for these 
can be provided at CLASS and LAYER level.

Jan


Nicole Bömeke wrote:
> Hello list,
> 
> is it possible to execute two or more querys
> over different layers at the same time
> and mark the query results in different colors?
> 
> If yes, how can I define more than one qlayer?
> And where can I determin the hilite color
> for the query result of each layer?
> 
> To execute a query I'm using the following code:
> 
> template file:
> ------------------
> 
> <input type="hidden" name="mode"            value="itemnquery">
> <input type="hidden" name="mapext"          value="shapes">
> <input type="hidden" name="qlayer"          value="rqF">
> <input type="hidden" name="map_rqF_filter"
> value="/0000156946|0000156957|0000156955|0000156956/">
> 
> mapfile:
> -----------
> 
>   QUERYMAP
>     STATUS ON
>     STYLE HILITE
>     COLOR 255 0 255
>   END
> 
>  LAYER
>     NAME "rqF"
>     DATA "gesamt_fgo"
>     STATUS OFF
>     TYPE LINE
>     FILTERITEM "sStrNr"
>     FILTER "%map_rqF_filter%"
>     CLASS
>       NAME "rqF"
>       SYMBOL "circle"
>       SIZE 6
>       TEMPLATE "empty.html"
>     END
>     FOOTER "rrt_query_mode.html"
>   END
> 
> Nicole
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users