On Wed, Oct 13, 2010 at 8:52 AM, Mario Basa <mario.b...@gmail.com> wrote:
> Hello.
>
> I have very similar needs, but instead of data coming from a Web
> Service, my data will be coming from dynamic reports, which I am
> planning to save in the session or in a csv temporary file.
>
> What I am curious about is, if I make a custom data store which will
> link the report data with the features using a ID field, is it
> possible to pass either the session id or the filename of the
> temporary csv file into the custom data store so it will know which
> report data to link into.

I think it's possible, but only on trunk.
For parametrized sql views
(http://geoserver.org/display/GEOS/GSIP+48+-+Parametric+SQL+views+in+GeoServer)
we fill a Query hint that we then expand within the store.
Get a GeoTools checkout and look into
/modules/library/jdbc/src/main/java/org/geotools/jdbc/VirtualTable.java
expandParameters method.
GeoServer blindly fills the VIRTUAL_TABLE_PARAMETERS hint every time
you pass in the view_params request
parameter: I guess you can use it in your datastore as well.

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

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

-----------------------------------------------------

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to