Ok..<div><br><div>And about the other question.. If in the datasource there are about 40.000 positions... Is a good way to try loading them with WFS? Or using WMS is recommended?</div><div><br></div><div>Thanks!</div><div>
<br></div><div><br><div class="gmail_quote">2009/11/25 Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
 Just before your commit, you need to copy the your field values to the feature&#39;s attributes.  They will then be part of the &#39;insert&#39; request sent to your server.  See an example (demo) of what I&#39;m talking about [1].  It uses TinyOWS, but it should be similar to what you&#39;re seeking to do.<br>

<br>
 Hope this helps,<br>
<br>
Alexandre<br>
<br>
<br>
[1] <a href="http://dev4.mapgears.com/bdga/bdgaWFS-T.html" target="_blank">http://dev4.mapgears.com/bdga/bdgaWFS-T.html</a><br>
<br>
<br>
JuKiM wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi,<br>
<br>
I&#39;m searching documentation about WFS-T, because with I can understand, it let to create new entries in the datastore through the GeoServer....<br>
<br>
I create the map, and a wms layers which is displayed, and then I create the wfs layer..<br>
<br>
wfs = new OpenLayers.Layer.WFS(&quot;Test_Layer&quot;,&quot;<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>&quot;,<br>
                {typename: &#39;Test:dots&#39;},<br>
                {<br>
                    typename: &quot;dots&quot;,<br>
                    featureNS: &quot;<a href="http://www.uriURL.org/test" target="_blank">http://www.uriURL.org/test</a>&quot;,<br>
                    extractAttributes: false,<br>
                    commitReport: function(str) {<br>
                     alert(str);<br>
                        OpenLayers.Console.log(str);<br>
                    }<br>
                }<br>
            );<br>
<br>
var draw = new OpenLayers.Control.DrawFeature(<br>
                wfs, OpenLayers.Handler.Point,<br>
                {<br>
                    handlerOptions: {freehand: false, multi: true},<br>
                    displayClass: &quot;olControlDrawFeaturePoint&quot;<br>
                }<br>
            );<br>
                        var save = new OpenLayers.Control.Button({<br>
                trigger: OpenLayers.Function.bind(wfs.commit, wfs),<br>
                displayClass: &quot;olControlSaveFeatures&quot;<br>
            });<br>
                       panel.addControls([<br>
                new OpenLayers.Control.Navigation(),<br>
                save, draw<br>
            ]);<br>
             map.addControl(panel);<br>
<br>
When I save the new points, they are insterted in the DB, but with empty values.. Only the auto incremental id is created..<br>
In my table there are four fields, &#39;id&#39;, &#39;location&#39;, &#39;description&#39;, &#39;type&#39;. 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..<br>

<br>
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?<br>
<br>
Thanks!<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
  <br>
</blockquote>
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</blockquote></div><br></div></div>