From: Gabriel R. <gr...@op...> - 2012-03-21 02:40:53
|
Hey Andrea, feel free to go the way you like the most, and give me a test case to include in the wfs-ng module to make sure the functionality is preserved on the hopefuly-to-be-supported version of the wfs datastore? Cheers, Gabriel On Tue, Mar 20, 2012 at 2:30 PM, Andrea Aime <and...@ge...> wrote: > Hi (hey Gabriel!), > I'm investigating the possibility of adding vendor parameter support > to the current WFS data store. > > By vendor parameter I mean some extra parameter that is supported > only via url query parameter, and that is specified by the caller giving > name and value, so that either the GET or POST strategies would > build a URL with the vendor params included (this is indeed aimed > at GeoServer, that can handle mixed requests, with params part > in the xml documents and part in the request url). > > Now, the most natural way I can come up with is to use a Query Hint, > WFS_VENDOR_PARAMETERS, whose value should be a > Map<String, String> (one entry per vendor param). > > Now, looking at the code path for WFS 1.0.0 we have a straight > path to the url encoding that keeps then original Query (and thus > the hints), for WFS 1.1.0 the Query is turned into a GetFeatureType > that loses all references, but I guess we can extend the current > GetFeatureTypeAdapter and have the code encoding the url > check the extra properties in case the GetFeatureType they > get is an instance of GetFeatureTypeAdapter. > > Not very elegant, however the other approaches that come to mind, > such as sending down the hint map alongside the GetFEatureType > as an extra param, are even uglier. > > What do you think? > > 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 > > ------------------------------------------------------- -- Gabriel Roldan OpenGeo - http://opengeo.org Expert service straight from the developers. |