Hi, I'm having trouble with a wfs server in uDig. When I add a layer from it to a map, the first request fails with wfs exception that basically says "invalid field".
I already asked this in udig mailing list but I was directed here. Below is the request that uDig sdk 1.2.0 (GeoTools 2.6.5) 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 GeoTools somehow so that the namespace is included in the requests? Because the server is out of my control. -- Atte Kemppilä ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
