On Fri, Mar 30, 2012 at 10:28 AM, Zsolt Sandor <[email protected]>wrote:
> Hello,
>
> i tested out today the vendor parameter support, but, it does not seem
> to work for me for 1.1.0, just for 1.0.0.
>
> In the geoserver log, the metadata is null for 1.1.0, but contains valid
> values
> (metadata = {GS_SQL_VIEW_PARAMS=[{ID=2}]}) in a case of 1.0.0. Also
> for 1.0.0 the result is ok.
>
> Test code is the following:
>
> (replace url with
> http://localhost:8080/geoserver/wfs?request=GetCapabilities&VERSION=1.1.0
> to test with
> 1.1.0)
>
> Any idea?
>
>
The two factories behave in a different way if you don't specify what type
of
operation you prefer, POST or GET.
The WFS 1.0 one ends up using GET, the other ends up using POST.
However GeoServer parses the vendor params properly only if you use
GET.
In order to have that working manually force the store to use the GET
requests
use:
params.put(WFSDataStoreFactory.PROTOCOL.key, Boolean.FALSE);
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 339 8844549
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
-------------------------------------------------------
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel