Hi,

The easiest workaround of all might be to use QGIS for WMS and turn the layer 
visibility off. QGIS seems to send GetFeatureInfo requests even when the layer 
is not visible. I tried also OpenJUMP but it is too clever: if layer visibility 
if off no GetFeatureInfo requests are sent.

There has been done a lot of work with the vector rendering side of 
GetFeatureInfo in Geoserver for making the response to correspond with the map 
that user is seeing. If SLD hides some feature from the map GFI will not find 
them either. Perhaps this is not the best possible approach for GetFeatureInfo 
of raster layers. However, I am not sure if it is as simple as to make GFI to 
return always the raw pixel value when raster layers are queried. Perhaps it 
is. Let’s see if developers have some opinions.

Do you believe that you will be happy with point queries also in the future? If 
you want to read for example a height profile along a line from the DEM layer 
you can’t do that with GetFeatureInfo.

-Jukka Rahkonen-

Casper Børgesen wrote:

Hi Ian and Jukka

@Ian
That is a workaround that would work, but it is a lot of retiling/overviewing 
combined with returning the result 100% transparent just to make the getMap 
request fast.

@Jukka
I am trying to avoid various request parameters, &layers, &query_layers since 
I’m not using web gis, but rather just various desktop gis applications, where 
I cannot control the request parameters.
I could set up a service to filter out the requests and redirect them to the 
various layers, but again that is not easy to manage when adding more datasets.

Consider having a nice visualization of a floating point data set but if the 
user send a getFeatureInfo request they get the RGB(A) value back. In this case 
it would be much nicer to let the visualization respond to the getMap request 
and the floating point dataset respond to the getFeatureInfo request. Not a 
layer group but something like a “request mapper” acting as a layer.


Regards, Casper

From: Ian Turton [mailto:ijtur...@gmail.com]
Sent: 10. august 2016 15:37
To: Casper Børgesen (CABO)
Cc: Rahkonen Jukka (MML); 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Always return blank image on getMap requests?

why not just add tiles and overviews so GeoServer can open it efficiently? see 
http://www.slideshare.net/geosolutions/geoserver-on-steroids-foss4g-2015

Ian

On 10 August 2016 at 14:06, Casper Børgesen (CABO) 
<c...@niras.dk<mailto:c...@niras.dk>> wrote:
Hi Jukka

I know it’s rather unusual, but I think that providing feature info on huge 
floating point raster dataset is a task that Geoserver is optimized to handle.

I do need however to avoid that Geoserver performs the retrieval of data, since 
requesting a getMap for a bounding box containing ex. 200GB data, would take 
close to forever to create a response. That is why I would like to skip the 
data retrieval and just send back a blank transparent image.

If I use security and deny getMap requests, wouldn’t the requester get an error 
in return? I would like a response corresponding to no-data-to-be-found-here.

Regards, Casper


From: Rahkonen Jukka (MML) 
[mailto:jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>]
Sent: 10. august 2016 14:25
To: Casper Børgesen (CABO); 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: Always return blank image on getMap requests?

Hi,

Rather unusual use case for WMS really. Some ideas:


-          Add a huge white opaque watermark

-          Make a layer group with white layer on the top

-          Use security and deny GetMaps but allow GetFeatureInfo

-Jukka Rahkonen-



Lähettäjä: Casper Børgesen (CABO) [mailto:c...@niras.dk]
Lähetetty: 10. elokuuta 2016 14:58
Vastaanottaja: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Aihe: [Geoserver-users] Always return blank image on getMap requests?

Hi

I am trying to use Geoserver to host +100GB’s of floating point raster data as 
a WMS layer. I would like to use the layer for getFeatureInfo lookups but I 
would like to just return a blank image on any getMap requests to the layer – 
no matter what the getMap request asks for.

I have tried to create a raster style with opacity set to 0.0, but it seems 
like Geoserver still fetches the data. I guess the raster style is evaluated 
after the requested data has been retrieved?

Can I configure a WMS layer to respond with a blank image on every getMap 
request?


Regards, Casper

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users



--
Ian Turton
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to