From: Gabriel R. <gr...@op...> - 2012-03-27 20:48:34
|
cool. On Tue, Mar 27, 2012 at 3:02 AM, Andrea Aime <and...@ge...> wrote: > On Wed, Mar 21, 2012 at 8:25 AM, Andrea Aime <and...@ge...> > wrote: >> >> On Wed, Mar 21, 2012 at 3:40 AM, Gabriel Roldan <gr...@op...> >> wrote: >>> >>> 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? >>> >> >> Cool, if we actually gather the funding to move on this one I'll do :-) > > > All right, patches committed on 2.7.x and trunk, along with tests for both > WFS 1.0 and WFS 1.1 > > You'll find two new tests in each GeoServerOnlineTest avilable, testing > GET and POST requests with vendor params (using mixed more requests > for POST) in both protocol versions. > > The query setup to add vendor params is, I guess, pretty much what one would > expect, > no need to url encode them, the underlying code will do that: > > Map<String, String> vparams = new HashMap<String, String>(); > vparams.put("authkey", "mysecret"); > vparams.put("viewparams", "low:2000000;high:5000000"); > vparams.put("strict", "true"); > Hints hints = new Hints(WFSDataStore.WFS_VENDOR_PARAMETERS, > vparams); > Query q = new Query("topp:states"); > q.setHints(hints); > > 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. |