Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] wfs getfeature propertyname namespace

Hi,

I'm having trouble with a wfs server. When I add a layer from it to a
map, the first request fails with wfs exception that basically says
"invalid field".

Below is the request that uDig (SDK 1.2.0) sends to the server:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature handle="GeoTools 2.6.5 WFS DataStore"
 outputFormat="text/xml; subtype=gml/3.1.1" resultType="results"
 service="WFS" version="1.1.0" xmlns:ogc="http://www.opengis.net/ogc";
 xmlns:gml="http://www.opengis.net/gml";
 xmlns:xlink="http://www.w3.org/1999/xlink";
 xmlns:ows="http://www.opengis.net/ows"; xmlns:wfs="http://www.opengis.net/wfs";>
 <wfs:Query srsName="EPSG:3067"
typeName="ktjkiiwfs:KiinteistorajanSijaintitiedot">
  <wfs:PropertyName>sijainti</wfs:PropertyName>
  <ogc:Filter>
   <ogc:BBOX>
    <ogc:PropertyName>sijainti</ogc:PropertyName>
    <gml:Envelope>
     <gml:lowerCorner>286915.75549777003 6637510.082654571</gml:lowerCorner>
     <gml:upperCorner>290828.0243182605 6642607.195825013</gml:upperCorner>
    </gml:Envelope>
   </ogc:BBOX>
  </ogc:Filter>
 </wfs:Query>
</wfs:GetFeature>

I managed to get request to work from command line using curl when I
added namespace into the propertynames.

<wfs:PropertyName>ktjkiiwfs:sijainti</wfs:PropertyName>
<ogc:PropertyName>ktjkiiwfs:sijainti</ogc:PropertyName>

I checked the wfs 1.1 spec and some of its examples seem to have
namespace in propertyname and some don't.

Can someone shed some light into this. Should those propertynames have
namespace or not? Or is the server just picky when it requires them?
Can I configure uDig/GeoTools somehow so that the namespace is
included in requests that uDig sends? Because the server is out of my
control.

-- 
Atte Kemppilä


Back to the top