From: Mikael C. <mik...@cl...> - 2010-03-10 10:38:23
|
Hi everyone, First of all, congratulations Edwin for your daughter ! Now back to our problem : To make it quick and simple, I added a read() method in WFSProtocol. It allows me to get an array of VectorFeatures, having a complete control on how I add them to my Vector layer. I'll push it soon. For the moment, I haven't used the proxy, I bypassed the problem by deploying my app in the same GlassFish that my GeoServer. Final step : Creating new geometries with collections of geometries (still battling with the JS). Mikael 2010/3/4 Edwin Commandeur <com...@gm...> > Hi Mikael, > > Just I quick reply: > > Have you looked at the latest BasicWFS example code in the showcase? > There is some stuff that needs to be added to WFS protocol, but it > should work similar to the examples on dev.openlayers. > > The only thing is that the GwtOpenLayersProxy is not working properly, > perhaps because I put in resourceUrl where it should be targetUrl. > > The proxy class should be refactored in my opinion so that the url > param is not different for GET and POST. > > The docs are not in good shape everywhere, so that's a bit of a pity > indeed. > > If anyone feels free to work on the GwtOpenLayersProxy and get the > BasicWFS sample running that would be great. I won't have time to work > on it as I just became father of a beautiful daugther. > > Greetings, > Edwin > > > > On 3 March 2010 19:25, Mikael Couzic <mik...@cl...> > wrote: > > Hi all, > > > > > > I'll be working on a project involving GWT-OL in the following weeks, and > I > > could use a little advice on how I am going to proceed. > > > > To be quick, I'll be displaying regions on a map, and the color of each > > region will be dynamically calculated on the fly based on GWT server-side > > values. To complicate things up, some regions will be groups of regions, > > also defined on the GWT server. > > My first idea was to set up a GeoServer and fetch the features with WFS > > GetFeature requests. From there I could display the features with > whatever > > style I wanted, and I could even make groups using > > OpenLayers.Geometry.Collection.calculateBounds (or so I hope I could). > > > > But then I couldn't find a simple way to get features (and not layers) > from > > WFS, and I could'nt even manage to parse my GML with the corresponding > GML3 > > class. I'm feeling a bit helpless... > > > > The way I see it now, if I stay stuck, here's what I'll have to do : > > Fetch the features with com.google.gwt.http.client > > Parse the GML with com.google.gwt.xml.client > > And from that extract the posList, then generate the points, from that > > instantiate the LinearRings and then I'll have my features. I feel like I > > might be reinventing the wheel somewhere. > > > > Just to give you the idea, my dream object would be like : > > List<VectorFeature> features = > > MyDreamObject.getFeaturesFromRemoteGML(WFS_URL); > > > > Has anyone ever tried something similar ? > > Do you know anything that could help me ? > > Any help would be MOST appreciated. > > > > Thanks ! > > > > > > -- > > Mikael > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > -- Mikael Couzic Pôle Business Intelligence Groupe Cliris |