Hi,
We are developing a Geoserver extension to provide real time raster image
data from IBM PAIRS (ibmpairs.mybluemix.net) repository.
My extension/plugin registers an implementation of
org.geotools.coverage.grid.io.GridFormatFactorySpi and provides a customized
extension of org.geotools.coverage.grid.io.AbstractGridCoverage2DReader. I
can create a Geoserver store and publish a create a layer.
Using a front end (e.g. Geoserver 'Layer preview-> openlayers' a WMS request
is sent to Geoserver which ends up invoking my plugins @Override public
GridCoverage2D read(GeneralParameterValue[] params) { .......}.
( For example:
.../geoserver/pairs/wms?service=WMS&version=1.1.0&request=GetMap&layers=pairs%3Apairspluginlayer&bbox=-80%2C30%2C-70%2C40.0&width=768&height=384&srs=EPSG%3A4326&format=application/openlayers
I return a GridCoverage2D and the image is rendered.
Where I need help is that for our application we need to add an extra query
parameter to the WMS Geoserver request that makes it into the method
GridCoverage2D read(GeneralParameterValue[] params). For example with a
query parameter IBMPAIRS:
....&width=768&height=384&srs=EPSG%3A4326&format=application/openlayers&IBMPAIRS={"timerange":[...],"aggregation":"min"}
I need to get the value of IBMPAIRS from the query string as a param in
read(). But when read(GeneralParameterValue[] params) is invoked I can't get
the original (rawkvp) query string, and its not in the params argument.
Also, the bottom of the call stack on entry to read(....params) has a some
method like WebMap run(GetMapRequest request), but when I examine the
request object it seems you have already preprocessed all the known or
expected query parameters off the original query.
So how do we add a new parameter, or do you have an existing parameter I
could set in the query string that would make it through?
Thanks,
Norm ([email protected])
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users