Hi everyone. Problem sorted out.
For some reason, that I dont know, Geoserver's sample wfs-t app assumes, that
the field (column) containing geometry is the_geom (the default of shp file). I
cannot understand why it is still used, when the data is in a database, and the
geo column is there geom? Is this burned in in Openlayers version??
When I modified that column name to the_geom when importing data to Postgis,
everything started to work, and point was saved ok.
Special thanks to Jukka Rahkonen and also Andrea for help. Without examining
POST-data, I could not figure this out!
Oiva Hakala :)
________________________________
Lähettäjä: Hakala Oiva (MTT) [[email protected]]
Lähetetty: 25. lokakuuta 2013 13:40
Vastaanottaja: Andrea Aime
Kopio: GeoServer Mailing List List
Aihe: Re: [Geoserver-users] WFS-T and database?
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@1f6b012
(feature: [SimpleFeatureImpl:tasmania_cities=[SimpleFeatureImpl.Attribute:
gid<gid id=fid--2c919365_141ef2c92a5_-8000>=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<status
id=fid--2c919365_141ef2c92a5_-8000>=null, SimpleFeatureImpl.Attribute:
pop_class<pop_class id=fid--2c919365_141ef2c92a5_-8000>=null,
SimpleFeatureImpl.Attribute: geom<geom
id=fid--2c919365_141ef2c92a5_-8000>=null]], handle: null, idgen: <unset>,
inputFormat: <unset>, srsName: null)
insert[0]:
feature[0] =
SimpleFeatureImpl:tasmania_cities=[SimpleFeatureImpl.Attribute: gid<gid
id=fid--2c919365_141ef2c92a5_-8000>=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<status
id=fid--2c919365_141ef2c92a5_-8000>=null, SimpleFeatureImpl.Attribute:
pop_class<pop_class id=fid--2c919365_141ef2c92a5_-8000>=null,
SimpleFeatureImpl.Attribute: geom<geom id=fid--2c919365_141ef2c92a5_-8000>=null]
idgen = GenerateNew
inputFormat = text/xm
inputFormat = text/xml; subtype=gml/3.1.1
releaseAction = ALL
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users