[Geoserver-users] GetFeatureInfo for raster layer: data from vector layer

Hi,

It there really a need to adjust “LAYERS”? We keep it to whatever is happens to be and change only the “QUERY_LAYERS” on the client side. Actuallly we capture the last used WMS GetMap and construct a new GetFeatureInfo by using it as a template and adding the constant QUERY_LAYERS and X and Y parameters from the mouse click. That works for us but the WMS server in this case is Mapserver and not Geoserver.

-Jukka Rahkonen-

···

Andrea Aime wrote:

There is no “configuration” you can do to perform what you’re looking for, but

if you up to programming, you can build a plugin implenetation, called a DispatcherCallback,

in which you replace on the fly the name of the raster layer with the name of the vector layer

in both the layers and query_layers portion of the request.

On Mon, Feb 11, 2013 at 1:38 PM, Rahkonen Jukka <jukka.rahkonen@anonymised.com486…> wrote:

Hi,

It there really a need to adjust “LAYERS”? We keep it to whatever is happens to be and change only the “QUERY_LAYERS” on the client side. Actuallly we capture the last used WMS GetMap and construct a new GetFeatureInfo by using it as a template and adding the constant QUERY_LAYERS and X and Y parameters from the mouse click. That works for us but the WMS server in this case is Mapserver and not Geoserver.

As far as I remember, by specification the server should throw an error if the query_layers layers are not a subset of layers

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it