On Thu, Mar 3, 2011 at 9:39 PM, Luca Morandini <[email protected]> wrote:

> Folks,
>
> I am developing a data store to access data on OLAP servers using MDX.
> So far so good, but I would like to make the MDX query parametric, hence I
> need
> access to GetMap request parameters from within the datastore or the
> featuresource
> in a manner similar to the EnvFunction class used in the SLD symbolizer:
> how to do
> it ?
>
> I would be grateful if someone could point me to the right direction.
>

EnvFunction can be called from whatever code, the GetMap and GetFeature
execution
path make sure to load the enviroment variables if they have been set in the
request.

If that is not enough there is a public thread local, Dispatcher.REQUEST,
that basically contains
all details about the request

Hope this helps

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to