[Geoserver-devel] Help with GEOS-5160 - Unable to use viewParams in wfs post request

Hi List,

I've been working on a fix for GEOS-5160 by extending the GetFeature EMF
model in GeoTools to support an attribute for viewParams.

So far I've come up with two pull requests:

https://github.com/geotools/geotools/pull/165
https://github.com/geoserver/geoserver/pull/195

But these are working by altering the model to wrap EList to parse the
viewParams string into a Java list - a bit of a nasty hack.

The reason I did this was because I could only find the WFS 1.0/1.1 EMF
bindings in the GeoServer repository. I think I've tracked down the WFS
2.0 bindings to the GeoTools repository. If I import these files into
Geoserver's WFS module and use the GeoServer KVP parser to convert the
viewParams string am I on the right track? If not any other ideas?

Thanks,
Geoff

On Wed, Mar 27, 2013 at 1:32 AM, <geoff@anonymised.com> wrote:

Hi List,

I’ve been working on a fix for GEOS-5160 by extending the GetFeature EMF
model in GeoTools to support an attribute for viewParams.

So far I’ve come up with two pull requests:

https://github.com/geotools/geotools/pull/165
https://github.com/geoserver/geoserver/pull/195

But these are working by altering the model to wrap EList to parse the
viewParams string into a Java list - a bit of a nasty hack.

The reason I did this was because I could only find the WFS 1.0/1.1 EMF
bindings in the GeoServer repository. I think I’ve tracked down the WFS
2.0 bindings to the GeoTools repository. If I import these files into
Geoserver’s WFS module and use the GeoServer KVP parser to convert the
viewParams string am I on the right track? If not any other ideas?

GeoServer has special XSD Configuration objects extending the GeoTools ones
for WFS and custom bindings that work on some GeoServer specific extras.
I believe you can add custom bindings there, this way you can call the KVP
parser from them (since you are in the same code base) without having to duplicate
the code.

That is more or less how I’d do it at least, Justin (cc’ed) is the most knowledgeable person
in this area, he might suggest something better.

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it