[Geoserver-users] Always return blank image on getMap requests?

Hi,

I think that GetFeatureInfo has been planned to give information about the features which users are seeing in the map “Hey, here is a shop, wonder if I can get more info about it”. GeoServer is for sure more optimized for rendering a map from huge mass of raster source data.

We have made some query applications which capture the GetFeatureInfo that is created by the application and changes the request on the fly before sending it for the WMS server. The query layer is never added to the map. What must be done is to change the &layers and &query_layers parameters to point to the desired layer.

You wrote “requesting a getMap for a bounding box containing ex. 200GB data, would take close to forever to create a response” and it means that you have not optimized the raster data for WMS. It is normal use case to have terabytes of image data back there on the server disks for making for example a country wide aerial photo layer. Reading “GeoServer on steroids” http://www.slideshare.net/geosolutions/geoserver-on-steroids-foss4g-2015 documents the most common tricks. However, I understand that you are not interested in showing the raster data for your users at all. Consider fiddling with the GFI requests and let your users never add the floating point data layer on their maps.

-Jukka Rahkonen-

···

Lähettäjä: Casper Børgesen (CABO) [mailto:CABO@anonymised.com]
Lähetetty: 10. elokuuta 2016 16:07
Vastaanottaja: Rahkonen Jukka (MML) jukka.rahkonen@anonymised.com; geoserver-users@lists.sourceforge.net
Aihe: RE: Always return blank image on getMap requests?

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.rahkonen@anonymised.com7…]
Sent: 10. august 2016 14:25
To: Casper Børgesen (CABO); 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:CABO@anonymised.com]
Lähetetty: 10. elokuuta 2016 14:58
Vastaanottaja: 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