[udig-devel] Unable to connect to WFS server

Fabio Da Soghe fabio.dasoghe at sysgroup.it
Thu Aug 10 03:56:00 PDT 2006


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


More information about the udig-devel mailing list