On Mon, Feb 11, 2013 at 9:20 AM, Björn Höfling <
[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi List,
>
> I have a raster layer of old scanned maps. The
> default GeoServer GetFeatureInfo for this layer will return you the
> raster value for the coordinate you clicked on. This is
> not very useful if it is just an RGB triplet (it might be useful if you
> have a DEM stored as raster of cause).
>
> 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

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

-------------------------------------------------------
------------------------------------------------------------------------------
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

Reply via email to