Hi,<div><br></div><div>I'm searching documentation about WFS-T, because with I can understand, it let to create new entries in the datastore through the GeoServer....</div><div><br></div><div>I create the map, and a wms layers which is displayed, and then I create the wfs layer..</div>
<div><br></div><div><div>wfs = new OpenLayers.Layer.WFS("Test_Layer","<a href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>",</div><div> {typename: 'Test:dots'},</div>
<div> {</div><div> typename: "dots",</div><div> featureNS: "<a href="http://www.uriURL.org/test">http://www.uriURL.org/test</a>",</div><div> extractAttributes: false,</div>
<div> commitReport: function(str) {</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>alert(str);</div><div> OpenLayers.Console.log(str);</div>
<div> }</div><div> }</div><div> );</div><div><br></div><div><div>var draw = new OpenLayers.Control.DrawFeature(</div><div> wfs, OpenLayers.Handler.Point,</div><div>
{</div><div> handlerOptions: {freehand: false, multi: true},</div><div> displayClass: "olControlDrawFeaturePoint"</div><div> }</div><div> );</div>
<div> </div><div> var save = new OpenLayers.Control.Button({</div><div> trigger: OpenLayers.Function.bind(wfs.commit, wfs),</div><div> displayClass: "olControlSaveFeatures"</div>
<div> });</div><div> </div><div> panel.addControls([</div><div> new OpenLayers.Control.Navigation(),</div><div> save, draw</div><div> ]);</div><div>
</div><div> map.addControl(panel);</div></div><div><br></div><div>When I save the new points, they are insterted in the DB, but with empty values.. Only the auto incremental id is created..</div><div>In my table there are four fields, 'id', 'location', 'description', 'type'. How can I configure the WFS calls to create the new entries with all the information? (The information about description and type is the same, and is stored in a textfield, and the location should be the different points of the map..</div>
<div><br></div><div>And on the other hand, if the datasource contains about 40.000 positions, is better to work with WMS and process the information in server side?</div><div><br></div><div>Thanks!</div></div>