From: Mikael C. <mik...@cl...> - 2010-03-15 17:55:16
|
Hi Edwin, No problem, it's my fault, it will teach me to push my commits on time ! I think I didn't break any of your code, but maybe you'll want to check. BTW Poul, from my tests I have come to the conclusion that OL doesn't work well with WFS v1.1, so I used v1.0. Maybe you should try that. Mikael 2010/3/15 Edwin Commandeur <com...@gm...> > Hi Mikael, > > Sorry for the toe stepping. I will not push the additional setters for > version, srsName and will await your changes. > > As for the proxy. I am not so literate with servlets, so I am reading > up and experimenting a bit. The resourceUrl/targetUrl for GET/POST > should be replaced by one parameter I think (e.g., remoteUrl) and the > method should be inferred from the request to the proxy. Are you good > with servlets? Would you have time to work on the proxy servlet? > > Greetings, > Edwin > > 2010/3/15 Mikael Couzic <mik...@cl...>: > > Hi guys, > > > > I'm looking at your mails right now, it reminded me I had some work on > WFS > > protocol I hadn't pushed. I'm afraid we're stepping on each other's toes, > so > > please hold on while I look at it and I'll get back to you soon. > > > > Mikael > > > > > > 2010/3/15 Edwin Commandeur <com...@gm...> > >> > >> Hi Poul, > >> > >> I checked and it seems it are not the options where it goes wrong in > >> the BasicWFS example. When I post the WFS query generated by the > >> wfsExample layer with Poster (a Firefox add-on) then I get back a WFS > >> FeatureCollection, but when the WFS query goes through the > >> gwtOpenLayersProxy I get an error message: > >> > >> <ows:Exception exceptionCode="MissingParameterValue" locator="request"> > >> <ows:ExceptionText>Could not determine geoserver request from http > >> request POST /geoserver/wfs HTTP/1.1 (...) </ows:ExceptionText> > >> > >> Sth seems go wrong with proxying the request. > >> > >> Do you use the gwtOpenLayersProxy, the OL Python proxy, or some other > >> proxy? > >> > >> Are all the options you specify necessary? It seems that you are > >> passing the default geometryName and srsName, only a non-default WFS > >> version. The schema location is optional and in the OL example the > >> schema location is not used. Maybe only specifying the non-default WFS > >> version is enough for you. > >> > >> Greetings, > >> Edwin > >> > >> On 15 March 2010 14:17, paweluz <pa...@tl...> wrote: > >> > Let me now if it helps :) > >> > I am curies do you also get an error while using WFS and VECTOR layer > >> > like this: > >> > > >> > uncaught exception: [Exception... "Component returned failure code: > >> > 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" > nsresult: > >> > "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: > >> > http://openlayers.org/api/2.8/OpenLayers.js :: anonymous :: line > 1081" data: > >> > no] > >> > > >> > or is this only in my case... > >> > > >> > Please let me know... > >> > Poul > >> > > >> > > >> > > >> > Dnia 15 marca 2010 13:47 Edwin Commandeur <com...@gm... > > > >> > napisał(a): > >> > > >> >> Hi Poul, > >> >> > >> >> Thanks! I had come to the point where I could see the WFS request > >> >> being made, but got an error message from geoserver that I needed to > >> >> look into to get the BasicWFS working. I will look at your changes > and > >> >> addn additional setters to WFSProtocol. > >> >> > >> >> Greetings, > >> >> Edwin > >> >> > >> >> > >> >> On 15 March 2010 13:03, paweluz <pa...@tl...> wrote: > >> >> > Hi Edwin! > >> >> > > >> >> > I have seen your newest changes on GWT in > >> >> > > >> >> > > >> >> > > http://gwt-openlayers.hg.sourceforge.net/hgweb/gwt-openlayers/gwt-openlayers/rev/17787e046d5e > >> >> > > >> >> > I have to say it does not work form me. I have to add some > additional > >> >> > information to finally see the vector layer on the map... > >> >> > > >> >> > My Vector Layer definition looks like this: > >> >> > > >> >> > private void createVectorLayer(){ > >> >> > WFSProtocolOptions wfsProtocolOptions = new > >> >> > WFSProtocolOptions(); > >> >> > > >> >> > wfsProtocolOptions.setUrl("http://localhost:8080/geoserver/wfs"); > >> >> > wfsProtocolOptions.setFeatureType("tasmania_roads"); > >> >> > > >> >> > wfsProtocolOptions.setFeatureNameSpace(" > http://www.openplans.org/topp"); > >> >> > > >> >> > wfsProtocolOptions.getJSObject().setProperty("srsName", > >> >> > "EPSG:4326"); > >> >> > wfsProtocolOptions.getJSObject().setProperty("version", > >> >> > "1.1.0"); > >> >> > wfsProtocolOptions.getJSObject().setProperty("geometryName", > >> >> > "the_geom"); > >> >> > wfsProtocolOptions.getJSObject().setProperty("schema", > >> >> > " > http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=topp:tasmania_roads > "); > >> >> > > >> >> > WFSProtocol wfsProtocol = new > WFSProtocol(wfsProtocolOptions); > >> >> > String url = wfsProtocol.getUrl(); > >> >> > url.length(); > >> >> > VectorOptions vectorOptions = new VectorOptions(); > >> >> > vectorOptions.getJSObject().setProperty("protocol", > >> >> > wfsProtocol.getJSObject()); > >> >> > vectorOptions.setProtocol(wfsProtocol); > >> >> > vectorOptions.setStrategies(new Strategy[]{new > >> >> > BBoxStrategy()}); > >> >> > vectorLayer = new Vector("My Vector Layer", vectorOptions); > >> >> > }} > >> >> > > >> >> > I do not know if you can see your Vector layer. If not try my > >> >> > approach... Hope I helped... > >> >> > > >> >> > Cheers and thanks for developing GWT-OL :) > >> >> > Poul, > >> >> > > >> >> > > >> >> > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> 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-devl mailing list > >> Gwt...@li... > >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-devl > > > > > > > > -- > > Mikael Couzic > > Pôle Business Intelligence > > Groupe Cliris > > > -- Mikael Couzic Pôle Business Intelligence Groupe Cliris |