[udig-devel] Unable to connect to WFS server
Jesse Eichar
jeichar at refractions.net
Thu Aug 10 08:04:58 PDT 2006
Hi Fabio,
I have spent the last three weeks working on the WFS client as well
as interoperability with Geoserver and during that time I found a
number of bugs in both. We are releasing uDig 1.1.RC3 early next
week which has the issue you refer to here fixed. For a quicker fix
you can download a nightly build and use that. The nightly builds
are quite stable on have all the WFS fixes that I have made. A word
of warning though. Geoserver 1.3.2 still has a number of bugs so for
the best results you will want to replace the gt2-main.jar, gt2-
wfs.jar and the gt2-postgis.jar with the latest from the 2.2.x
geotools branch. But by the look of your FeatureType schema you
should have to do that.
Cheers,
Jesse
On 10-Aug-06, at 3:56 AM, Fabio Da Soghe wrote:
> Hello list.
>
> I'm using GeoServer 1.3.2 to serve my PostGIS (1.1) layers as WFS
> data sources.
> I'm able to insert, update, delete features both with SQL and with
> WFS calls.
> I successfully connect uDig (1.1 RC2) to my layers via PostGIS, but
> when I try to use the WFS interface I get a red cross over the
> layer title, and nothing is rendered on the map view.
>> From the uDig error log, it seems the problem was around this:
>
> [...]
> Caused by: org.xml.sax.SAXException: Could not find element handler
> for http://www.sysgroup.it/GMLDevDataModel : name as a child of
> gmlfeature1_Type.
> at org.geotools.xml.XMLSAXHandler.startElement(XMLSAXHandler.java:
> 334)
> [...]
>
> http://www.sysgroup.it/GMLDevDataModel is my namespace.
>
> I've read issue UDIG-939 (http://jira.codehaus.org/browse/
> UDIG-939): "WFS has problems parsing features when the default
> geometry type is Geometry".
> I just had that type of geometry: my postGIS field was a POLYGON
> type, so GeoServer advertised it as of XML type
> gml:PolygonPropertyType. So I changed to MULTIPOLYGON and now the
> WFSDescribeFeatureType returns this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.sysgroup.it/GMLDevDataModel"
> xmlns:ddm="http://www.sysgroup.it/GMLDevDataModel"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> attributeFormDefault="unqualified" version="1.0">
> <xs:import namespace="http://www.opengis.net/gml"
> schemaLocation="http://beaker.sysgroup.it:80/geoserver/schemas/
> gml/2.1.2/feature.xsd" />
> <xs:complexType name="gmlfeature1_Type">
> <xs:complexContent>
> <xs:extension base="gml:AbstractFeatureType">
> <xs:sequence>
> <xs:element type="xs:string" minOccurs="1" name="name"
> nillable="false"
> maxOccurs="1" />
> <xs:element type="xs:string" minOccurs="1" name="description"
> nillable="false"
> maxOccurs="1" />
> <xs:element type="gml:MultiPolygonPropertyType" minOccurs="1"
> name="extentOf"
> nillable="false" maxOccurs="1" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:element name='gmlfeature1' type='ddm:gmlfeature1_Type'
> substitutionGroup='gml:_Feature' />
> </xs:schema>
>
> But I keep getting the above error. I really cannot think anything
> else to try (I'm working exclusively on this from yesterday).
>
> Has anybody any clue?
>
> Thank you in advance for any help.
>
> Best regards,
>
> Fabio Da Soghe
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
More information about the udig-devel
mailing list