I found an error when posting features to postgis by openlayers and geoserver. The code is listed below. And the error was that the var \'data\' which was converted from the var
Welcome to the wonderful world of axis orientation trouble. Fortunately, GeoServer has an alternative SRS code for [lon, lat] order, which is "CRS:84" instead of "EPSG:4326":
var feature = evt.feature;
var node = format.writeTransaction([feature], null, null, {
gmlOptions: {srsName: "CRS:84"},
featureNS: "ucoc.zhtx.com",
featureType: "landblock"
});
var data = new XMLSerializer().serializeToString(node);