Hi List,

I am trying to send a polygon string via a viewparams to an sql defined 
layer in geoserver,

As this is a web request I have to use a url encoding


http://127.0.0.1:8080/geoserver/pinkr/wfs?service=WFS&VERSION=1.0.0&SRSNAME=EPSG:28992&request=GetFeature&TYPENAME=pinkr:area_sq&outputFormat=GML2&viewparams=polygeom:POLYGON%28%28225262.349375%20632709.24,104409.86937500004%20611635.3200000001,125483.78937499996%20490782.8400000001,246336.26937499992%20511856.76,225262.349375%20632709.24%29%29

ie  spaces become %20, brackets become %28 and %29

Geosever gets this,  according to the log file its processed as


  Could not find kvp parser for: 'polygeom'. Storing as raw string.
  Could not find kvp parser for: '104409.86937500004 611635.3200000001'. 
Storing as raw string.
  Could not find kvp parser for: '125483.78937499996 490782.8400000001'. 
Storing as raw string.
  Could not find kvp parser for: '246336.26937499992 511856.76'. Storing 
as raw string.
  Could not find kvp parser for: '225262.349375 632709.24))'. Storing as 
raw string.
ie Geoserver has not apply a url decoder to the request, string, with 
the result that the % character are take as argument seperaitors.

Q. Is there a way around this, geoserver is accepting a web request for 
access to a wfs layer therefore it should be url encoded?

regards


Dave



------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to