Hi!
I have looke into the request in the two cases: First when I use WFS layer and commit method. The request looks like this: <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" version="1.0.0" service="WFS"><wfs:Insert><feature:probabaza xmlns:feature="http://www.openplans.org/topp"> <feature:the_geom> <gml:MultiLineString xmlns:gml="http://www.opengis.net/gml"> <gml:lineStringMember> <gml:LineString> <gml:coordinates decimal="." cs="," ts=" ">1725436.9258124,6788640.0106605 1725967.2076961,6788807.2166599 1726440.1618085,6788807.2166599</gml:coordinates></gml:LineString> </gml:lineStringMember> </gml:MultiLineString> </feature:the_geom> </feature:probabaza> </wfs:Insert> </wfs:Transaction> When I use Vector Layer and the WFSProtocol the request looks like this: <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://www.openplans.org/topp http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=topp:probabaza" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <wfs:Insert><feature:probabaza xmlns:feature="http://www.openplans.org/topp"> <feature:the_geom> <gml:LineString xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326"><gml:posList>15.543937683105 51.948074123254 15.536212921142 51.942148492442 15.526084899903 51.939608696727 </gml:posList> </gml:LineString> </feature:the_geom> </feature:probabaza> </wfs:Insert> </wfs:Transaction> As you can see WFS layer uses MULTILINESTRING. WFSProtocol uses just LINESTRING. All my geometry are multilinestrings in the database. When I made an experiment by creating the new empty table I could add data using WFSProtocol but data were added as LINESTRING! Why?? Now I can not use my data that I have stored as MULTILINESTRING?? Is there a way to force Openlayers to save data as MULTILINESTRING?? poul -- View this message in context: http://n2.nabble.com/WFS-layer-commit-works-save-strategy-from-WFSProtocol-does-not-work-POST-vs-GET-tp4776941p4777034.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users