Hi,

I’m having trouble with WFS GetFeature requests on GeoServer 2.1.2. I’m using 
layers based on parametric SQL views. These work OK for WMS GetMap requests 
etc, but when I try to execute a GetFeature request, it doesn't select any 
features. 

The GetFeature request itself (POST) is as follows:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"; service="WFS" 
version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";><wfs:Query typeName="base_layer" 
srsName="EPSG:3301"><ogc:Filter 
xmlns:ogc="http://www.opengis.net/ogc";><ogc:BBOX><ogc:PropertyName>geom</ogc:PropertyName><gml:Envelope
 xmlns:gml="http://www.opengis.net/gml"; 
srsName="EPSG:3301"><gml:lowerCorner>658696.56181972 
6473865.7264151</gml:lowerCorner><gml:upperCorner>658758.65067508 
6473902.0625066</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>

I’m appending the „VIEWPARAMS“ parameter to the action URL (ex: 
http://geoserver/wfs?VIEWPARAMS=param1:val1) of the request.

Am I doing something wrong here? Should the parameters be given to the server 
in another way (in the filter maybe)?

Best regards
Lauri Vorno

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to