Hi,
I have been looking to do the same.
It seems in the code that it's not implemented. Nothing parse the request
parameter or the post data to pass the viewparams to the query.
It's a shame because all the further process - query, build feature - seems
to handle viewparams.
So I think it's just a matter to build the request (GetFeatureType) with the
metadata SQL_VIEW_PARAMS.
But I can't find how to patch the code to do it :(
In DefaultWebFeature.getFeature(GetFeatureType request)
if GetFeatureType had metadata I bet it would work ..
I could be done as it is done for WPS in GetFeatureKvpRquestReader
GetFeatureType gft = (GetFeatureType) eObject;
if(gft.getMetadata() == null) {
gft.setMetadata(new HashMap());
}
gft.getMetadata().put(GetFeature.SQL_VIEW_PARAMS, kvp.get("viewParams"));
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/WFS-SQLView-and-viewparams-tp7078222p7098323.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users