query layers

Ken Lord kenlord at GMAIL.COM
Fri Dec 3 21:41:24 EST 2004


Hi Carola and Jennifer,

I am not familiar with how chameleon works, so you may have to adjust
my suggestions to fit your situation .... My suggestions below refer
to editing the mapserver mapfile....

Are you using the duplicate layer so that you can query a layer when
it is not turned on?

If you only need to query the layer when the layer is on, then you
only need the original point layer. (unless chameleon changes how this
is handled)

However, If you do want to be able to query the layer when it is not
turned on, then I think that when you copied the original layer in the
mapfile, you may have left it as TYPE POINT, instead of setting it to
TYPE QUERY.

If that doesnt help, remove the NAME attribute from each of the
classes in the query layer.

Hope that helps,
Ken Lord
Vancouver BC


On Fri, 3 Dec 2004 13:47:15 -0600, Jennifer Zeisloft
<jzeisloft at gmail.com> wrote:
> Hello All,
>
> This question was sent to me by a colleague, Carola, who requested
> that I post it to the list-serv.  I have not yet begun to work with
> query layers, but my understanding is that they are primarily defined
> through the map file (which is why I chose this list-serv).  Several
> people have mentioned that also running Chameleon complicates defining
> the query layers.  I will forward any answers to Carola.  Thank you
> very much for your time!
>
> Jennifer Zeisloft
>
> Question:
>
> I am currently using Chameleon to develop my web mapping application.
> In order to perform a query on a point type layer using the identify
> feature tool, I needed to add an additional layer (query type) in the
> map file. The first layer shows the points in the map and the second
> one is used to perform the query. The query works perfectly, but the
> problem is that both layers appear on the legend. Is there a way to
> delete the query layer from the legend or, even better, use only one
> layer in the map file that would perform the query and show the point
> layer in the legend. Any help would be REALLY appreciated!
> Thanks in advance!
>
> - Carola Blazquez
>



More information about the mapserver-users mailing list