point query for multiple layers {Scanned}
Brent Pedersen
bpederse at NATURE.BERKELEY.EDU
Thu Jun 1 13:47:44 PDT 2006
yes, see the layer defs below in my original mail.
i've tried both with a different template for each layer and the same
template for all 3 layers. neither works.
my query string looks like:
?mode=query&map=...&layers=FRAP+WUI&imgext=....&imgxy=...&imgsize=520
+600
i know the imgext and imgxy are correct because it does return the
correct value for the layer that is does query, but just nothing
happens for the other layers. i also did try this with mode=nquery.
On Jun 1, 2006, at 4:38 PM, Siki Zoltan wrote:
> Hi,
>
> Do you have template for all layers you want query?
>
> Zoltan
>
>
> On Thu, 1 Jun 2006, Brent Pedersen wrote:
>
>> 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