Hi,
I think that the message about the input format “inputFormat = text/xml; subtype=gml/3.1.1”
that comes after sending the demo request “WFS_transactionInsert.xml” is not true.
The transaction is really successful and both the geometry and attribute are inserted so I believe that Geoserver is doing the right thing and with WFS 1.0.0 it is awaiting geometries expressed as GML 2.1.2. It would be amazing to pass the CITE tests if it did not do that. Can we say this is a bug? Client is sending GML2 and Geoserver takes it as GML2 but prints that it was GML 3.1.1 and at least this is misleading information for newbie debuggers.
The demo request contains a weird EPSG:4326 geometry but Geoserver does accept it. I made GEOS-6115 because of this.
The log info that Oiva sent does not contain valuable information. I think that we need the POST data that was used when Geoserver made a successful insert but no geometry was really inserted.
-Jukka Rahkonen-
···
Hakala Oiva wrote:
Restart GeoServer and have your client do and edit. Look in the logs for the Transaction XML,
post it here. At least we can see what is the client doing
Cheers
Andrea
Maybe I could edit web.xml right. Anyway, here is the log just after transaction trial.
WFS 1.0.0, but GML 3.1.1
Oiva
Request: getServiceInfo
2013-10-25 13:32:57,794 INFO [geoserver.gwc] - DataStoreChange: {http://localhost:8080/geoserver}tasmania_cities PreInsert
2013-10-25 13:32:57,816 INFO [geoserver.gwc] - DataStoreChange: {http://localhost:8080/geoserver}tasmania_cities PostInsert
2013-10-25 13:32:57,897 INFO [geoserver.wfs] -
Request: transaction
service = WFS
version = 1.0.0
baseUrl = http://localhost:8080/geoserver/
group[0] = wfs:insert=net.opengis.wfs.impl.InsertElementTypeImpl@anonymised.com (feature: [SimpleFeatureImpl:tasmania_cities=[SimpleFeatureImpl.Attribute: gid=0, SimpleFeatureImpl.Attribute: city_name<city_name id=fid–2c919365_141ef2c92a5_-8000>=Test-town, SimpleFeatureImpl.Attribute: admin_name<admin_name id=fid–2c919365_141ef2c92a5_-8000>=Tasmania, SimpleFeatureImpl.Attribute: cntry_name<cntry_name id=fid–2c919365_141ef2c92a5_-8000>=null, SimpleFeatureImpl.Attribute: status=null, SimpleFeatureImpl.Attribute: pop_class<pop_class id=fid–2c919365_141ef2c92a5_-8000>=null, SimpleFeatureImpl.Attribute: geom=null]], handle: null, idgen: , inputFormat: , srsName: null)
insert[0]:
feature[0] = SimpleFeatureImpl:tasmania_cities=[SimpleFeatureImpl.Attribute: gid=0, SimpleFeatureImpl.Attribute: city_name<city_name id=fid–2c919365_141ef2c92a5_-8000>=Test-town, SimpleFeatureImpl.Attribute: admin_name<admin_name id=fid–2c919365_141ef2c92a5_-8000>=Tasmania, SimpleFeatureImpl.Attribute: cntry_name<cntry_name id=fid–2c919365_141ef2c92a5_-8000>=null, SimpleFeatureImpl.Attribute: status=null, SimpleFeatureImpl.Attribute: pop_class<pop_class id=fid–2c919365_141ef2c92a5_-8000>=null, SimpleFeatureImpl.Attribute: geom=null]
idgen = GenerateNew
inputFormat = text/xm
inputFormat = text/xml; subtype=gml/3.1.1
releaseAction = ALL