On Wed, Nov 25, 2009 at 10:59:41AM -0500, Alexandre Dube wrote: > Hey, > > 40.000 is sure big. You could try the Cluster strategy [1],
I think this wold be unlikely to work for this number of points. > or have you > points in WMS when zoomed out then changed to WFS when zoomed in. The > latter is what I'm doing in the demo I sent you. Load it, then zoom > out. You'll see that the roads switch from WFS to WMS. You could also > do that. > > Best regards, > > Alexandre > > [1] http://openlayers.org/dev/examples/strategy-cluster.html > > > JuKiM wrote: > > Ok.. > > > > 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? > > > > Thanks! > > > > > > 2009/11/25 Alexandre Dube <[email protected] <mailto:[email protected]>> > > > > Hi, > > > > Just before your commit, you need to copy the your field values > > to the feature's attributes. They will then be part of the > > 'insert' request sent to your server. See an example (demo) of > > what I'm talking about [1]. It uses TinyOWS, but it should be > > similar to what you're seeking to do. > > > > Hope this helps, > > > > Alexandre > > > > > > [1] http://dev4.mapgears.com/bdga/bdgaWFS-T.html > > > > > > JuKiM wrote: > > > > Hi, > > > > I'm searching documentation about WFS-T, because with I can > > understand, it let to create new entries in the datastore > > through the GeoServer.... > > > > I create the map, and a wms layers which is displayed, and > > then I create the wfs layer.. > > > > wfs = new > > > > OpenLayers.Layer.WFS("Test_Layer","http://localhost:8080/geoserver/wfs", > > {typename: 'Test:dots'}, > > { > > typename: "dots", > > featureNS: "http://www.uriURL.org/test", > > extractAttributes: false, > > commitReport: function(str) { > > alert(str); > > OpenLayers.Console.log(str); > > } > > } > > ); > > > > var draw = new OpenLayers.Control.DrawFeature( > > wfs, OpenLayers.Handler.Point, > > { > > handlerOptions: {freehand: false, multi: true}, > > displayClass: "olControlDrawFeaturePoint" > > } > > ); > > var save = new OpenLayers.Control.Button({ > > trigger: OpenLayers.Function.bind(wfs.commit, wfs), > > displayClass: "olControlSaveFeatures" > > }); > > panel.addControls([ > > new OpenLayers.Control.Navigation(), > > save, draw > > ]); > > map.addControl(panel); > > > > When I save the new points, they are insterted in the DB, but > > with empty values.. Only the auto incremental id is created.. > > 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.. > > > > 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? > > > > Thanks! > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Users mailing list > > [email protected] <mailto:[email protected]> > > http://openlayers.org/mailman/listinfo/users > > > > > > > > > > -- > > Alexandre Dubé > > Mapgears > > www.mapgears.com <http://www.mapgears.com> > > > > > > > -- > Alexandre Dubé > Mapgears > www.mapgears.com > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
