On 02/11/2013 01:12 PM, Andrea Aime wrote: > On Mon, Feb 11, 2013 at 9:20 AM, Björn Höfling > <[email protected] > <mailto:[email protected]>> wrote: > [..]
> > What I want to get as FeatureInfo instead is some Metadata I store in a > second layer of type vector. In my case it would contain the bounding > box of the original paper map and the year of publishing. > > Is there any way to realize this with GeoServer? The only thing that > came to my mind was to build a compound layer and style the raster layer > with an empty HTML template. That would solve my problem with HTML > GetFeatureInfo requests, but if the user requests type text or xml, the > raster FeatureInfo is still in the response. > > Do you have any other ideas of how to realize this? > > > 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. > > Or, if you like, you can do the same with a Servlet filter, if that's a > way more suitable with > your programming experience Thanks. I will look into the DispatcherCallback approach. Björn -- Dipl.-Inf. Björn Höfling Software Developer (GIS, Java) http://www.bjoernhoefling.de/ ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
