point query for multiple layers
Matthew Perry
perrygeo at GMAIL.COM
Thu Jun 1 10:10:34 PDT 2006
Brent,
mode=nquery should do the trick. This will return all the matching
features as defined by their layer templates. In addition you can set
a WEB->HEADER and FOOTER that will be printed before and after all the
layer templates.
matt
On 6/1/06, Brent Pedersen <bpederse at nature.berkeley.edu> wrote:
>
> hi,
> using the mapserver CGI is it possible to do a point query on multiple
> layers? im not familiar with templates, but
> i'm using mode=query and sending in the list of visible layers but TEMPLATE
> substitution only occurs for the last visible layer.
> i have 3 layers and i'd like each of them to be queried.
> do i need to do this with some code by querying each layer independently?
> thanks for any leads. layer defs below.
> -brent
>
> LAYER
> NAME 'FRAP'
> TYPE RASTER
> TEMPLATE 'FRAP_query.html'
> OFFSITE 255 0 0
> DATA '/opt/web/fire/geoFRAP/firethreat.tif'
> STATUS OFF
> CLASS
> NAME 'NA'
> EXPRESSION ([pixel] = -1)
> COLOR 205 204 153
> END
> .
> .
> .
> END
>
> LAYER
> NAME 'WUI'
> TYPE POLYGON
> TEMPLATE 'WUI_query.html'
> OFFSITE 255 0 0
> DATA '/home/bpederse/firedata/CA_WUI'
> STATUS OFF
> CLASS
> NAME 'Lowest'
> EXPRESSION ([Cal_WUI] > 0)
> OUTLINECOLOR 55 204 53
> END
>
> END
>
> LAYER
> NAME 'CODES'
> TYPE POLYGON
> TEMPLATE 'CODES_query.html'
> OFFSITE 255 0 0
> DATA '/home/bpederse/firedata/building_code'
> STATUS OFF
> CLASS
> NAME 'Lowest'
> EXPRESSION ([Building_c] > 0)
> OUTLINECOLOR 255 0 0
> END
>
>
>
--
Matt Perry
perrygeo at gmail.com
http://www.perrygeo.net
More information about the MapServer-users
mailing list