point query for multiple layers
Brent Pedersen
bpederse at NATURE.BERKELEY.EDU
Thu Jun 1 13:22:54 PDT 2006
thanks for the reply,
it seems that NQUERY is for returning multiple results for example
from a search area (as opposed to a single point).
using NQUERY, i get multiple results, but only for the last layer drawn.
i want the results of a single point query on multiple layers.
am i missing something obvious?
-brent
On Jun 1, 2006, at 10:10 AM, Matthew Perry wrote:
> 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