You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
(17) |
Apr
|
May
|
Jun
(6) |
Jul
(10) |
Aug
(16) |
Sep
(4) |
Oct
(16) |
Nov
(8) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(5) |
Feb
(28) |
Mar
(35) |
Apr
(20) |
May
(13) |
Jun
(24) |
Jul
(14) |
Aug
(8) |
Sep
(19) |
Oct
(13) |
Nov
(16) |
Dec
(8) |
2011 |
Jan
(18) |
Feb
(10) |
Mar
(16) |
Apr
(14) |
May
(21) |
Jun
(20) |
Jul
(12) |
Aug
(18) |
Sep
(11) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2012 |
Jan
(1) |
Feb
(2) |
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Alexandre A. S. <aas...@gm...> - 2011-07-25 14:21:16
|
Hi, I think that getVertices() is not currently wrapped, but you can use for LineString class getComponents(), that returns an array of points. Take care if you use a Polygon instead of a Linestring, because getComponents will return to you an array of LinearRing objects. Cheers, Alex ________________________________________ De: Lukas Johansson [luk...@de...] Enviado el: lunes, 25 de julio de 2011 15:18 Para: Cristian Ciofu; gwt...@li... Asunto: Re: [Gwt-openlayers-users] Getting points coordinates for a polyline OpenLayers.Geometry.getVertices()? Return a list of all points in this geometry. Not sure if it’s wrapped in gwt-ol but I would guess so. Från: Cristian Ciofu [mailto:cri...@gm...] Skickat: den 25 juli 2011 09:27 Till: gwt...@li... Ämne: [Gwt-openlayers-users] Getting points coordinates for a polyline Hello, I want to add in Gwt-openlayersa polyline and want to "take" after drawing it a list with the coordinates of the points that "builds the line". I saw that I can take the bounds and the coordinates of the last point (the double-click that announce that I finished drawing). But I need the coordinates of all the points from the first one to the last one and not only the last one. Any ideas? Thank you! ............................................................................ Best regards, Chris ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ |
From: Lukas J. <luk...@de...> - 2011-07-25 13:18:49
|
OpenLayers.Geometry.getVertices()? Return a list of all points in this geometry. Not sure if it's wrapped in gwt-ol but I would guess so. Från: Cristian Ciofu [mailto:cri...@gm...] Skickat: den 25 juli 2011 09:27 Till: gwt...@li... Ämne: [Gwt-openlayers-users] Getting points coordinates for a polyline Hello, I want to add in Gwt-openlayersa polyline and want to "take" after drawing it a list with the coordinates of the points that "builds the line". I saw that I can take the bounds and the coordinates of the last point (the double-click that announce that I finished drawing). But I need the coordinates of all the points from the first one to the last one and not only the last one. Any ideas? Thank you! ............................................................................ Best regards, Chris |
From: Cristian C. <cri...@gm...> - 2011-07-25 07:27:21
|
Hello, I want to add in Gwt-openlayersa polyline and want to "take" after drawing it a list with the coordinates of the points that "builds the line". I saw that I can take the bounds and the coordinates of the last point (the double-click that announce that I finished drawing). But I need the coordinates of all the points from the first one to the last one and not only the last one. Any ideas? Thank you! ............................................................................ Best regards, *Chris* |
From: Andrew H. <ahh...@gm...> - 2011-07-13 12:55:10
|
Hi Dave, Sorry I reply very rarely to this, time is not something I have a lot of... On Fri, Jun 17, 2011 at 3:54 PM, Dave Potts <dav...@pi...> wrote: > > > Hi > > I am working on a project that wants to use some openlayers features that > are not currently available in gwt-openlayers. > > I have some questions > > > How do I read the current source in to an eclipse project? should I be > using a plugin in read the mercuail archive? or is there a better way? > > If you want to consume openlayers in your project we have a user guide here: http://gwt-openlayers.sourceforge.net/maven-site-latest/user-reference.html But since you are asking about testing e.t.c. it looks like you might be interested in contributing. For that we have a developer guide: http://gwt-openlayers.sourceforge.net/maven-site-latest/developer-reference.html What sort of test procedure/package should be used to test any additional > features? > Very little. As so much of this is based on rendered output its very difficult to test. Frustrating and not the answer you were looking for, sorry. > What sort of documentation should be produced ? > > Documentation in the javadocs would be excellent. You can also @link to the openlayers documentation if you like. Also, feel free to add to the gwt-openlayers-samples. > My area of interest is the projection, some of the wms/wfs and control > layers code. > > Good luck Dave && Welcome. > > > regards > Dave. > ------------------------------------------------------------------------- > Any views expressed in this message are those of the individual sender, > except where the sender specifically states them to be the views of the > Pinan Software > > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |
From: Andrew H. <ahh...@gm...> - 2011-07-13 12:48:12
|
We have a snapshot repository: https://oss.sonatype.org/content/repositories/snapshots/org/gwtopenmaps/openlayers/ More details: https://issues.sonatype.org/browse/OSSRH-709 Unfortunately, we don't appear to have a CI server building and deploying them, so snapshots are sort of non existant. Sorry :'( --Andrew On Wed, Jun 29, 2011 at 7:37 PM, Jon Britton <jon...@go...>wrote: > Hi, > > I think I may have asked this before but can't find the email. Is there a > maven repository holding the gwt-openlayers snapshots? > > Thanks, > > Jon > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: Dave P. <dav...@pi...> - 2011-07-13 06:05:48
|
Hi List, I trying to implement the Point handler, its construct requires a Control as an argument( see http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Handler/Point-js.html ), but the wrapping for the DrawFeature control requires a PointHandler( see http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Control/DrawFeature-js.html)or similar construct at creation time. It seem to be a case of the chicken and the egg, you both off functions to create the other! >From the worked examples I have seen, I have assumed the normal solution is to create the handler first and then create the control, openlayers will then populate the internal control argument for the handler function when the control is constructed. If that is the case does it make sense to supply a constructor for the PointHandler that takes a control argument? Dave. |
From: Dave P. <dav...@pi...> - 2011-07-12 09:55:10
|
Hi Is there any support in the current gwt-plugin architecture for the support on non standard controls? Openlayers supports loading panel control(designed for implementing a message while busy loading a map), its seems to be designed as a bolt on, see http://trac.osgeo.org/openlayers/wiki/Addins/LoadingPanel Its suggested that you may add it as an javascript file to your web site. Does plugin support a similar construct ? or if I wanted this type of feature? Would I just have to rewrite the entire construct in regular gwt-openlayers ? Dave. |
From: Roland S. <Rol...@no...> - 2011-07-07 14:04:38
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#ffffff"> Romain,<br> <br> Take a look at this: <a href="http://code.google.com/p/referencemap/">http://code.google.com/p/referencemap/</a>.<br> <br> The code shows how to set up OpenLayers to allow drawing across the date line and once drawn the rectangles can be re-sized and dragged.<br> <br> Here is an example of this code in action: <a href="http://olmapwidget.appspot.com/MapExample.html">http://olmapwidget.appspot.com/MapExample.html</a>.<br> <br> Roland<br> <br> On 07/01/2011 04:20 AM, Romain BODNAR wrote: <blockquote cite="mid:BAN...@ma..." type="cite">Hi everyone,<br> <br> I want to create areas which are crossing the International Date Line using the OpenLayers DrawFeature. I tried to set the wrapLine to true in the WMSOptions but it only displays an infinity of maps in my application. Every time I try to add a point after crossing the IDL, the point is appearing on the other side of the map. I can't add a screenshot but <font size="-1">the fact is I want to add the point in the left side of the map but it will be added on the right side instead.<br> Is there any way to do this ?<br> By the way, it is possible to drag, resize, reshape and rotate the polygon so that it cross the IDL.<br> <br> Please advise.<br> <br> Thank you,<br> Romain</font> <pre wrap=""> <fieldset class="mimeAttachmentHeader"></fieldset> ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/splunk-d2d-c2">http://p.sf.net/sfu/splunk-d2d-c2</a></pre> <pre wrap=""> <fieldset class="mimeAttachmentHeader"></fieldset> _______________________________________________ Gwt-openlayers-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Gwt...@li...">Gwt...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users">https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users</a> </pre> </blockquote> <br> </body> </html> |
From: Lukas J. <luk...@de...> - 2011-07-06 07:37:42
|
Perhaps people in the ordinary openlayers mailinglist could have any ideas. If you can get it to work in plain js, we can get it to work I gwt-ol. Från: Lukas Johansson [mailto:luk...@de...] Skickat: den 6 juli 2011 09:27 Till: Romain BODNAR; gwt-openlayers-users Ämne: Re: [Gwt-openlayers-users] Adding polygon crossing the IDL Have you tried it in a plain openlayers client? (in plain javascript) Från: Romain BODNAR [mailto:bod...@gm...] Skickat: den 5 juli 2011 16:54 Till: gwt-openlayers-users Ämne: Re: [Gwt-openlayers-users] Adding polygon crossing the IDL Hi everyone, Is somebody can help me ? Can you at least tell me if it is possible or not please ? Thank you, Romain 2011/7/1 Romain BODNAR <bod...@gm...<mailto:bod...@gm...>> Hi everyone, I want to create areas which are crossing the International Date Line using the OpenLayers DrawFeature. I tried to set the wrapLine to true in the WMSOptions but it only displays an infinity of maps in my application. Every time I try to add a point after crossing the IDL, the point is appearing on the other side of the map. I can't add a screenshot but the fact is I want to add the point in the left side of the map but it will be added on the right side instead. Is there any way to do this ? By the way, it is possible to drag, resize, reshape and rotate the polygon so that it cross the IDL. Please advise. Thank you, Romain |
From: Lukas J. <luk...@de...> - 2011-07-06 07:27:30
|
Have you tried it in a plain openlayers client? (in plain javascript) Från: Romain BODNAR [mailto:bod...@gm...] Skickat: den 5 juli 2011 16:54 Till: gwt-openlayers-users Ämne: Re: [Gwt-openlayers-users] Adding polygon crossing the IDL Hi everyone, Is somebody can help me ? Can you at least tell me if it is possible or not please ? Thank you, Romain 2011/7/1 Romain BODNAR <bod...@gm...<mailto:bod...@gm...>> Hi everyone, I want to create areas which are crossing the International Date Line using the OpenLayers DrawFeature. I tried to set the wrapLine to true in the WMSOptions but it only displays an infinity of maps in my application. Every time I try to add a point after crossing the IDL, the point is appearing on the other side of the map. I can't add a screenshot but the fact is I want to add the point in the left side of the map but it will be added on the right side instead. Is there any way to do this ? By the way, it is possible to drag, resize, reshape and rotate the polygon so that it cross the IDL. Please advise. Thank you, Romain |
From: Romain B. <bod...@gm...> - 2011-07-05 14:54:53
|
Hi everyone, Is somebody can help me ? Can you at least tell me if it is possible or not please ? Thank you, Romain 2011/7/1 Romain BODNAR <bod...@gm...> > Hi everyone, > > I want to create areas which are crossing the International Date Line using > the OpenLayers DrawFeature. I tried to set the wrapLine to true in the > WMSOptions but it only displays an infinity of maps in my application. Every > time I try to add a point after crossing the IDL, the point is appearing on > the other side of the map. I can't add a screenshot but the fact is I want > to add the point in the left side of the map but it will be added on the > right side instead. > > Is there any way to do this ? > By the way, it is possible to drag, resize, reshape and rotate the polygon > so that it cross the IDL. > > Please advise. > > Thank you, > Romain > |
From: Romain B. <bod...@gm...> - 2011-07-01 09:20:51
|
Hi everyone, I want to create areas which are crossing the International Date Line using the OpenLayers DrawFeature. I tried to set the wrapLine to true in the WMSOptions but it only displays an infinity of maps in my application. Every time I try to add a point after crossing the IDL, the point is appearing on the other side of the map. I can't add a screenshot but the fact is I want to add the point in the left side of the map but it will be added on the right side instead. Is there any way to do this ? By the way, it is possible to drag, resize, reshape and rotate the polygon so that it cross the IDL. Please advise. Thank you, Romain |
From: Jon B. <jon...@go...> - 2011-06-29 10:07:50
|
Hi, I think I may have asked this before but can't find the email. Is there a maven repository holding the gwt-openlayers snapshots? Thanks, Jon |
From: Jon B. <jon...@go...> - 2011-06-28 12:56:37
|
Never mind, I've found the problem. In hosted mode I had to point OpenLayers to my proxy at "../gwtOpenLayersProxy" which doesn't work when compiled. I've switched to using GWT.getModuleBaseURL() instead. Thanks, Jon On Jun 27, 2011 4:23 PM, "Weber, Stefan Hagen" < ste...@si...> wrote: > Hi Jon, > > add the the following line to catalina.bat (or .sh), it is in the bin folder, > > set JAVA_OPTS=%JAVA_OPTS% "-Dhttp.proxyHost=yourproxyhost -Dhttp.proxyPort=yourproxyport" > > But you only need this if you're behind a firewall. That's why I said 'maybe ...'. Otherwise I'm afraid more details are needed. > > Stefan > > ________________________________ > Von: man...@go... [mailto: man...@go...] Im Auftrag von Jon Britton > Gesendet: Montag, 27. Juni 2011 16:27 > An: Weber, Stefan Hagen > Cc: gwt-openlayers-users > Betreff: Re: [Gwt-openlayers-users] WFS layers not working in compiled app > > Hi Stefan, > > Sorry if this is a silly request - but could you suggest where I might find these settings? I've never had to mess around with this stuff before! > > Thanks! > > Jon > > On 27 June 2011 15:12, Weber, Stefan Hagen <ste...@si... <mailto:ste...@si...>> wrote: > Hi Jon, > > maybe you have to set some proxy settings in Tomcat? > > Stefan > > ________________________________ > Von: Jon Britton [mailto:jon...@go...<mailto: jon...@go...>] > Gesendet: Montag, 27. Juni 2011 16:05 > An: gwt-openlayers-users > Betreff: [Gwt-openlayers-users] WFS layers not working in compiled app > > Hi, > > I'm having trouble displaying WFS layers in my gwt-openlayers app. Everything works fine in DevMode, but when I compile and deploy in Tomcat the layers don't display. > > Has anybody come across this problem before? > > Thanks, > > Jon > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li...<mailto: Gwt...@li...> > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: Jon B. <jon...@go...> - 2011-06-27 14:27:10
|
Hi Stefan, Sorry if this is a silly request - but could you suggest where I might find these settings? I've never had to mess around with this stuff before! Thanks! Jon On 27 June 2011 15:12, Weber, Stefan Hagen <ste...@si...>wrote: > ** > Hi Jon, > > maybe you have to set some proxy settings in Tomcat? > > Stefan > > ------------------------------ > *Von:* Jon Britton [mailto:jon...@go...] > *Gesendet:* Montag, 27. Juni 2011 16:05 > *An:* gwt-openlayers-users > *Betreff:* [Gwt-openlayers-users] WFS layers not working in compiled app > > Hi, > > I'm having trouble displaying WFS layers in my gwt-openlayers app. > Everything works fine in DevMode, but when I compile and deploy in Tomcat > the layers don't display. > > Has anybody come across this problem before? > > Thanks, > > Jon > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: Weber, S. H. <ste...@si...> - 2011-06-27 14:12:55
|
Hi Jon, maybe you have to set some proxy settings in Tomcat? Stefan ________________________________ Von: Jon Britton [mailto:jon...@go...] Gesendet: Montag, 27. Juni 2011 16:05 An: gwt-openlayers-users Betreff: [Gwt-openlayers-users] WFS layers not working in compiled app Hi, I'm having trouble displaying WFS layers in my gwt-openlayers app. Everything works fine in DevMode, but when I compile and deploy in Tomcat the layers don't display. Has anybody come across this problem before? Thanks, Jon |
From: Jon B. <jon...@go...> - 2011-06-27 14:05:39
|
Hi, I'm having trouble displaying WFS layers in my gwt-openlayers app. Everything works fine in DevMode, but when I compile and deploy in Tomcat the layers don't display. Has anybody come across this problem before? Thanks, Jon |
From: Christian K. <chr...@go...> - 2011-06-27 07:15:33
|
Hi dudes, I have a weird problem when I try to add a WMS to my map, which shall be an overlay. It actually adds the WMS to the OSM map, but only arround the LatLon(0,0) [which actually is in africa] in two tiles (2 * 256x256 pixel size) even if it is an world wide map. When I zoom in / out, the overlays size keep the same (2 * 256x256px). Additional information: * Overlay lays correctly on the osm map. * If WMS is added as a baseLayer, before the osm mapnik was added, the startview starts at LonLat(0,0) [africa, atlantic] * In the attachment is an image of the map I think it has something to do with the startpoint or with the transformation of the osm general projection"EPSG:900913" to "EPSG:4326" So please can anyone help me to fix this bug or tell me what I'm doing wrong?! It would be very great, thanks for every solution! Christian Kruse ------------------------ To the code: * OLmap = new OpenlayersMap("300", "300");* * OLmap.getMap().addControl(new OverviewMap());* * * * addResizedHandler(new ResizedHandler() {* * @Override* * public void onResized(ResizedEvent event) {* * * * try {* * // listen for window resizing* * String w = getWidth() - 16 + "";* * String h = getHeight() - 31 + "";* * OLmap.getMapWidget().setHeight(h);* * OLmap.getMapWidget().setWidth(w);* * * * } catch (Exception e) {* * e.printStackTrace();* * }* * * * }* * });* * * * OSMOptions opts = new OSMOptions();* * opts.getJSObject().setProperty("numZoomLevels", 18);* * OSM openStreetMap = OSM.Mapnik("OSM Mapnik", opts);* * openStreetMap.setIsBaseLayer(true);* * * * * * WMSParams wmsParams = new WMSParams();* * wmsParams.setFormat("image/png");* * wmsParams.setIsTransparent(false);* * wmsParams.setLayers("basic");* * wmsParams.setStyles("default");* * // wmsParams.setMaxExtent(new Bounds(90, 0, 120, 20));* * wmsParams.setMaxExtent(new Bounds(30, -15, 140, 50));* * * * WMSOptions wmsLayerParams = new WMSOptions();* * wmsLayerParams.setIsBaseLayer(false);* * wmsLayerParams.setLayerOpacity(1.0);* * * * WMS wmsLayer = new WMS("basic", "http://labs.metacarta.com/wms/vmap0",wmsParams, wmsLayerParams);* * * * * * * * OLmap.getMap().addLayers(new Layer[] { openStreetMap });* * OLmap.getMap().addLayers(new Layer[] { wmsLayer });* * OLmap.getMap().addControl(new PanZoomBar());* * OLmap.getMap().addControl(new NavToolbar());* * OLmap.getMap().addControl(new MousePosition());* * OLmap.getMap().addControl(new LayerSwitcher());* * OLmap.getMap().addControl(new ScaleLine());* * * * double lon = 850000;* * double lat = 6800000;* * int zoom = 12;* * OLmap.getMap().setCenter(new LonLat(lon, lat), zoom);* * * * DockPanel dp = new DockPanel();* * dp.setHeight("100%");* * dp.setWidth("100%");* * dp.add(OLmap.getMapWidget(), DockPanel.CENTER);* * addItem(dp);* *}* * * * * * * *And the OpenLayersMap class:* * * *public class OpenlayersMap extends DockPanel {* * * * private Map map;* * private MapWidget mapWidget;* * private String width;* * private String height;* * * * public OpenlayersMap(String width, String height) {* * this.width = width;* * this.height = height;* * * * MapOptions mapOptions = new MapOptions();* * * * mapOptions.setControls(new JObjectArray(new JSObject[] {}));* * mapOptions.setDisplayProjection(new Projection("EPSG:4326"));* * * * mapWidget = new MapWidget(this.width, this.height, mapOptions);* * this.map = mapWidget.getMap();* * }* * * * public String getHeight() {* * return height;* * }* * * * public Map getMap() {* * return map;* * }* * * * public MapWidget getMapWidget() {* * return mapWidget;* * }* * * * public String getWidth() {* * return width;* * }* * * * public void setHeight(String height) {* * this.height = height;* * }* * * * public void setMap(Map map) {* * this.map = map;* * }* * * * public void setMapWidget(MapWidget mapWidget) {* * this.mapWidget = mapWidget;* * }* * * * public void setWidth(String width) {* * this.width = width;* * }* *}* * * If you want an image of the result: http://img825.imageshack.us/img825/9242/wmsbug.png |
From: Dave P. <dav...@pi...> - 2011-06-26 12:21:16
|
I have spent some more time look at this problem, I have tried looking at the conversation between my open layers program and my web server with stace. It seems that WMSGEtFeatureInfo reply from the web server is being encode in a gzip format? ie 28754 send(14, "HTTP/1.1 200 OK\r\nServer: Apache-"..., 562, 0) = 562 | 00000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK. | | 00010 0a 53 65 72 76 65 72 3a 20 41 70 61 63 68 65 2d .Server: Apache- | | 00020 43 6f 79 6f 74 65 2f 31 2e 31 0d 0a 43 6f 6e 74 Coyote/1 .1..Cont | | 00030 65 6e 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a ent-Enco ding: gz | | 00040 69 70 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 ip..Cont ent-Type | | 00050 3a 20 74 65 78 74 2f 68 74 6d 6c 0d 0a 43 6f 6e : text/h tml..Con | | 00060 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 34 30 39 tent-Len gth: 409 | | 00070 0d 0a 44 61 74 65 3a 20 53 75 6e 2c 20 32 36 20 ..Date: Sun, 26 | | 00080 4a 75 6e 20 32 30 31 31 20 31 31 3a 34 36 3a 31 Jun 2011 11:46:1 | dumping the conversation between example WMSGEtFeatureInfo, shows following 28754 send(14, "HTTP/1.1 200 OK\r\nServer: Apache-"..., 1244, 0) = 1244 | 00000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK. | | 00010 0a 53 65 72 76 65 72 3a 20 41 70 61 63 68 65 2d .Server: Apache- | | 00020 43 6f 79 6f 74 65 2f 31 2e 31 0d 0a 43 6f 6e 74 Coyote/1 .1..Cont | | 00030 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 68 ent-Type : text/h | | 00040 74 6d 6c 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e tml..Tra nsfer-En | | 00050 63 6f 64 69 6e 67 3a 20 63 68 75 6e 6b 65 64 0d coding: chunked. | | 00060 0a 44 61 74 65 3a 20 53 75 6e 2c 20 32 36 20 4a .Date: S un, 26 J | | 00070 75 6e 20 32 30 31 31 20 31 31 3a 34 34 3a 30 36 un 2011 11:44:06 | | 00080 20 47 4d 54 0d 0a 0d 0a 34 34 64 0d 0a 3c 68 74 GMT.... 44d..<ht | | 00090 6d 6c 3e 0d 0a 20 20 3c 68 65 61 64 3e 0d 0a 20 ml>.. < head>.. | | 000a0 20 20 20 3c 74 69 74 6c 65 3e 47 65 6f 73 65 72 <titl e>Geoser | | 000b0 76 65 72 20 47 65 74 46 65 61 74 75 72 65 49 6e ver GetF eatureIn | > Hi List > > Was a solution ever found for this problem, because I seem to be getting > the same issue. > > I attempt to make a request to geoserver instance running on the same > tomcat webserver with a valid layer name via a wmsgetfeature request, I > get callback with an empty result. > > I lhave ooked at the geoserver logs and can see geoserver getting the > request from the gwt-openlayers program and see the request to my postgis > database. > > Feeding the same sql request into the database, generates data. > > Using firebug and copying the text of the feature requests, results in to > firefox returns a result. > > Using firebug of the gwt-program, shows the reques set to geoserver. A > callback is received but the results section is empty. > > I do not think it is a proxy issue because both my instance of geoserver > and my gwt-program are bothing running on the same server. > > I have tried the example from showcase which works correctly. AS far as I > can make out the showcase example and my owner server are setting the same > param strings so I should receive a result. > > It is possible to use the 'internal version of openlayers' in the layer > preview option to look at the data and everything seem to be correct. > > I just wondering what is going wrong! If geoserver was not processing the > request I should not receive a callback, but I do. If the feature request > was invalid I would not see geoserver accessing my database, but it does. > (There is no logging to say what geoserver actuall generated, even at the > finest setting) > > If there was something wrong with the request, I would not see a correct > result from geoserver when I make the same request directly via firefox, > but I do. > > Does anybody known any method of seeing what geoserver generates for an > gwt-openlayers program ? > > I do not suspect a bug, I suspect a projection issue i.e. my program has > said something like give give me all the information about features near > point x/y. Geoserver has generated a null request because it could not > find anything because its concept of X/Y is different to my program > concept of X/Y.(Firebug and Geosever both claim to be using the same srs > value) > > Dave. > ------------------------------------------------------------------------ > > > > > Might it bee that you need to proxy your result as the application resides > on port 8080 and the geoserver on 9090. That would explain why it works in > the browser but not in the application. I think that you should get an > error in that case though, something like "forbidden location" or the > like. > /Lukas > > -----Ursprungligt meddelande----- > Från: Federica De Martin [mailto:fdemartin@...] > Skickat: den 7 juni 2011 15:59 > Till: Lukas Johansson; gwt-openlayers-users@... > Ämne: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working > > I tried to have a look with firebug, and when I click on the map there is > a > GET request as follows: > > GET > http://localhost:9090/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&QUERY_LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&STYLES=,,&BBOX=-64.789268%2C5.300572%2C115.562294%2C75.613072&FEATURE_COUNT=10&HEIGHT=400&WIDTH=1026&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=445&Y=188 > 200 OK 312ms OpenLayers.js (riga 1188) > Intestazioni > BBOX -64.789268,5.300572,115.562294,75.613072 > FEATURE_COUNT 10 > FORMAT image/png > HEIGHT 400 > INFO_FORMAT text/html > LAYERS > topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp > QUERY_LAYERS > topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp > REQUEST GetFeatureInfo > SERVICE WMS > SRS EPSG:4326 > STYLES ,, > VERSION 1.1.1 > WIDTH 1026 > X 445 > Y 188 > Intestazioni di rispostaVisualizza come testo semplice > Content-Type text/html; charset=utf-8 > Content-Length 890 > Content-Encoding gzip > Server Jetty(6.1.8) > Intestazioni di richiestaVisualizza come testo semplice > Host localhost:9090 > User-Agent Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.10) > Gecko/20100915 > Ubuntu/10.04 (lucid) Firefox/3.6.10 > Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Accept-Language it-it,it;q=0.8,en-us;q=0.5,en;q=0.3 > Accept-Encoding gzip,deflate > Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive 115 > Connection keep-alive > Referer http://localhost:8080/gimovit-gwt/ > Origin http://localhost:8080 > > If I copy the address of the request in my browser I can see the HTML > response right as it should appear, but in firebug I find the Answer and > HTML tabs completly empty! What else can I check? > > Thank you for the help... > Federica > > > ----- Original Message [Truncated]----- > > > > ------------------------------------------------------------------------- > Any views expressed in this message are those of the individual sender, > except where the sender specifically states them to be the views of the > Pinan Software > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > ------------------------------------------------------------------------- Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of the Pinan Software |
From: Dave P. <dav...@pi...> - 2011-06-20 06:48:11
|
Hi List Was a solution ever found for this problem, because I seem to be getting the same issue. I attempt to make a request to geoserver instance running on the same tomcat webserver with a valid layer name via a wmsgetfeature request, I get callback with an empty result. I lhave ooked at the geoserver logs and can see geoserver getting the request from the gwt-openlayers program and see the request to my postgis database. Feeding the same sql request into the database, generates data. Using firebug and copying the text of the feature requests, results in to firefox returns a result. Using firebug of the gwt-program, shows the reques set to geoserver. A callback is received but the results section is empty. I do not think it is a proxy issue because both my instance of geoserver and my gwt-program are bothing running on the same server. I have tried the example from showcase which works correctly. AS far as I can make out the showcase example and my owner server are setting the same param strings so I should receive a result. It is possible to use the 'internal version of openlayers' in the layer preview option to look at the data and everything seem to be correct. I just wondering what is going wrong! If geoserver was not processing the request I should not receive a callback, but I do. If the feature request was invalid I would not see geoserver accessing my database, but it does. (There is no logging to say what geoserver actuall generated, even at the finest setting) If there was something wrong with the request, I would not see a correct result from geoserver when I make the same request directly via firefox, but I do. Does anybody known any method of seeing what geoserver generates for an gwt-openlayers program ? I do not suspect a bug, I suspect a projection issue i.e. my program has said something like give give me all the information about features near point x/y. Geoserver has generated a null request because it could not find anything because its concept of X/Y is different to my program concept of X/Y.(Firebug and Geosever both claim to be using the same srs value) Dave. ------------------------------------------------------------------------ Might it bee that you need to proxy your result as the application resides on port 8080 and the geoserver on 9090. That would explain why it works in the browser but not in the application. I think that you should get an error in that case though, something like "forbidden location" or the like. /Lukas -----Ursprungligt meddelande----- Från: Federica De Martin [mailto:fdemartin@...] Skickat: den 7 juni 2011 15:59 Till: Lukas Johansson; gwt-openlayers-users@... Ämne: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working I tried to have a look with firebug, and when I click on the map there is a GET request as follows: GET http://localhost:9090/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&QUERY_LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&STYLES=,,&BBOX=-64.789268%2C5.300572%2C115.562294%2C75.613072&FEATURE_COUNT=10&HEIGHT=400&WIDTH=1026&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=445&Y=188 200 OK 312ms OpenLayers.js (riga 1188) Intestazioni BBOX -64.789268,5.300572,115.562294,75.613072 FEATURE_COUNT 10 FORMAT image/png HEIGHT 400 INFO_FORMAT text/html LAYERS topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp QUERY_LAYERS topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp REQUEST GetFeatureInfo SERVICE WMS SRS EPSG:4326 STYLES ,, VERSION 1.1.1 WIDTH 1026 X 445 Y 188 Intestazioni di rispostaVisualizza come testo semplice Content-Type text/html; charset=utf-8 Content-Length 890 Content-Encoding gzip Server Jetty(6.1.8) Intestazioni di richiestaVisualizza come testo semplice Host localhost:9090 User-Agent Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language it-it,it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Referer http://localhost:8080/gimovit-gwt/ Origin http://localhost:8080 If I copy the address of the request in my browser I can see the HTML response right as it should appear, but in firebug I find the Answer and HTML tabs completly empty! What else can I check? Thank you for the help... Federica ----- Original Message [Truncated]----- ------------------------------------------------------------------------- Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of the Pinan Software |
From: Dave P. <dav...@pi...> - 2011-06-17 06:24:38
|
Hi I am working on a project that wants to use some openlayers features that are not currently available in gwt-openlayers. I have some questions How do I read the current source in to an eclipse project? should I be using a plugin in read the mercuail archive? or is there a better way? What sort of test procedure/package should be used to test any additional features? What sort of documentation should be produced ? My area of interest is the projection, some of the wms/wfs and control layers code. regards Dave. ------------------------------------------------------------------------- Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of the Pinan Software |
From: Jon B. <jon...@go...> - 2011-06-08 14:53:20
|
Hi Ian, In both cases GeoServer processes the request fine (both Firebug and the GeoServer logs show this). Both requests return the same result, in fact (you can test it using the GeoServer test page). GeoServer actually uses the "sf" part of the layer name to find the correct namespace URL. My second example produces the following in the GeoServer logs: Request: getFeature handle = null service = WFS version = 1.1.0 baseUrl = http://li199-25.members.linode.com:8080/geoserver/ providedVersion = null extendedProperties = {} query = [net.opengis.wfs.impl.QueryTypeImpl@1953684 (group: null, propertyName: null, function: null, filter: null, sortBy: null, featureVersion: null, handle: null, srsName: EPSG:4326, typeName: [{ http://www.openplans.org/spearfish}streams])] maxFeatures = null outputFormat = text/xml; subtype=gml/3.1.1 resultType = results traverseXlinkDepth = null traverseXlinkExpiry = null formatOptions = {} metadata = null As you can see, the typename is [{ http://www.openplans.org/spearfish}streams])]. Again, GeoServer seems to be handling the request fine so I'm a bit confused as to why it's not showing in OpenLayers... Cheers, Jon On 8 June 2011 15:44, Ian Turton <ijt...@gm...> wrote: > On 8 June 2011 06:26, Jon Britton <jon...@go...> wrote: > > Hi, > > I'm trying to use GWT-OpenLayers to carry out some simple WFS requests. > > However, I'm having some trouble with OpenLayers not displaying my data. > > I'm using GeoServer as my WFS, which names its layers like "sf:roads", > where > > "sf" is the namespace. This first example, where I specify the namespace > > URL, works fine: > > ### JAVA CODE ### > > WFSProtocolOptions wfsProtocolOptions = new WFSProtocolOptions(); > > wfsProtocolOptions.setUrl(" > http://li199-25.members.linode.com:8080/geoserver/wfs"); > > wfsProtocolOptions.setFeatureType("roads"); > > wfsProtocolOptions.setFeatureNameSpace(" > http://www.openplans.org/spearfish"); > > wfsProtocolOptions.setSrsName("EPSG:4326"); > > wfsProtocolOptions.setVersion("1.1.0"); > > This results in OpenLayers making the following XML request, which leads > to > > a valid response which is displayed correctly: > > ### XML GetFeature REQUEST ### > > <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs > " service="WFS" version="1.1.0" xsi:schemaLocation=" > http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"> > > <wfs:Query typeName="feature:roads" srsName="EPSG:4326" xmlns:feature=" > http://www.openplans.org/spearfish"></wfs:Query> > > </wfs:GetFeature> > > However, this next example does not work. Here, I'm only specifying the > full > > layer title "sf:road" and not specifying the namespace. > > ### JAVA CODE ### > > WFSProtocolOptions wfsProtocolOptions = new WFSProtocolOptions(); > > wfsProtocolOptions.setUrl(" > http://li199-25.members.linode.com:8080/geoserver/wfs"); > > wfsProtocolOptions.setFeatureType("sf:roads"); > > wfsProtocolOptions.setSrsName("EPSG:4326"); > > wfsProtocolOptions.setVersion("1.1.0"); > > This results in the following XML request being sent. GeoServer handles > this > > request fine and returns a valid FeatureCollection (as far as I can tell, > > it's exactly the same as the previous example). However, for some reason > > OpenLayers just won't display it! > > ### XML GetFeature REQUEST ### > > <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > > version="1.1.0" > > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query > > typeName="sf:streams" srsName="EPSG:4326"/></wfs:GetFeature> > > Does anyone have any idea why OpenLayers won't display the results of > this > > kind of request? > > It is GeoServer that is refusing to handle the second request not > OpenLayers (check the log file or firebug) - in the second case you > have a namespace (sf) that GeoServer can't process since you haven't > defined it. If you look at the first request you'll see > xmlns:feature="http://www.openplans.org/spearfish" which is what > GeoServer uses to work out which roads features you want. > > Ian > -- > Ian Turton > _______________________________________________ > Users mailing list > Us...@li... > http://lists.osgeo.org/mailman/listinfo/openlayers-users > |
From: Lukas J. <luk...@de...> - 2011-06-08 11:03:22
|
Might it bee that you need to proxy your result as the application resides on port 8080 and the geoserver on 9090. That would explain why it works in the browser but not in the application. I think that you should get an error in that case though, something like "forbidden location" or the like. /Lukas -----Ursprungligt meddelande----- Från: Federica De Martin [mailto:fde...@tp...] Skickat: den 7 juni 2011 15:59 Till: Lukas Johansson; gwt...@li... Ämne: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working I tried to have a look with firebug, and when I click on the map there is a GET request as follows: GET http://localhost:9090/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&QUERY_LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&STYLES=,,&BBOX=-64.789268%2C5.300572%2C115.562294%2C75.613072&FEATURE_COUNT=10&HEIGHT=400&WIDTH=1026&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=445&Y=188 200 OK 312ms OpenLayers.js (riga 1188) Intestazioni BBOX -64.789268,5.300572,115.562294,75.613072 FEATURE_COUNT 10 FORMAT image/png HEIGHT 400 INFO_FORMAT text/html LAYERS topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp QUERY_LAYERS topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp REQUEST GetFeatureInfo SERVICE WMS SRS EPSG:4326 STYLES ,, VERSION 1.1.1 WIDTH 1026 X 445 Y 188 Intestazioni di rispostaVisualizza come testo semplice Content-Type text/html; charset=utf-8 Content-Length 890 Content-Encoding gzip Server Jetty(6.1.8) Intestazioni di richiestaVisualizza come testo semplice Host localhost:9090 User-Agent Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language it-it,it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Referer http://localhost:8080/gimovit-gwt/ Origin http://localhost:8080 If I copy the address of the request in my browser I can see the HTML response right as it should appear, but in firebug I find the Answer and HTML tabs completly empty! What else can I check? Thank you for the help... Federica ----- Original Message ----- From: "Lukas Johansson" <luk...@de...> To: "Federica De Martin" <fde...@tp...> Sent: Tuesday, June 07, 2011 11:44 AM Subject: SV: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working Install firebug and see if the request is made and if so what attributes that are being sent. -----Ursprungligt meddelande----- Från: Federica De Martin [mailto:fde...@tp...] Skickat: den 7 juni 2011 11:44 Till: Lukas Johansson; gwt...@li... Ämne: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working I'have changed my gwt-openlayesrs dependencies to: <dependency> <groupId>org.gwtopenmaps.openlayers</groupId> <artifactId>gwt-openlayers-client</artifactId> <version>0.6-SNAPSHOT</version> </dependency> and I'have added the SNAPSHOT version repository: <repository> <id>sonatype-nexus-snapshots</id> <name>Repository for gwt-openlayers snapshot</name> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </repository> Now I could add this code line: options.setLayers(new WMS[] {waterBodies, stateBoundaries}); But I keep on getting an empty result when I query the map, any other idea? Federica ----- Original Message ----- From: "Lukas Johansson" <luk...@de...> To: "Federica De Martin" <fde...@tp...>; <gwt...@li...> Sent: Monday, June 06, 2011 10:32 PM Subject: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working You should set the layer(s) that you want to query with: options.setLayers() //layer or array of layers /Lukas -----Ursprungligt meddelande----- Från: Federica De Martin [mailto:fde...@tp...] Skickat: den 6 juni 2011 12:33 Till: gwt...@li... Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo not working Hi everybody. I'm trying to implement the WMSGetFeatureInfo listner in my gwt-openlayers map but I cannot make it work. I recive no result in the alert window; Now I'm using che sample geoserver layer (Tasmania boundary and waters) but I keep on getting no results. My application runs at localhost:8080 on jboss and geoserver is running with Jetty at localhost:9090. This is my code: <code> String wmsurl=http://localhost:9090/geoserver/wms; WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions(); options.setInfoFormat("text/html"); options.setURL(wmsurl); options.setTitle("Query visible layers"); options.setQueryVisible(true); WMSGetFeatureInfo info = new WMSGetFeatureInfo(options); info.addGetFeatureListener(new GetFeatureInfoListener(){ public void onGetFeatureInfo(GetFeatureInfoEvent eo) { Window.alert(eo.getType() + " - " + eo.getText()); } }); map.addControl(info); info.activate(); </code> Do you have any idea on how to make it work. I think I'm missing something but I really cannot understand what, please help me. Thank you, Federica. ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Gwt-openlayers-users mailing list Gwt...@li... https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users |
From: Jon B. <jon...@go...> - 2011-06-08 10:26:55
|
Hi, I'm trying to use GWT-OpenLayers to carry out some simple WFS requests. However, I'm having some trouble with OpenLayers not displaying my data. I'm using GeoServer as my WFS, which names its layers like "sf:roads", where "sf" is the namespace. This first example, where I specify the namespace URL, works fine: ### JAVA CODE ### WFSProtocolOptions wfsProtocolOptions = new WFSProtocolOptions(); wfsProtocolOptions.setUrl(" http://li199-25.members.linode.com:8080/geoserver/wfs"); wfsProtocolOptions.setFeatureType("roads"); wfsProtocolOptions.setFeatureNameSpace("http://www.openplans.org/spearfish "); wfsProtocolOptions.setSrsName("EPSG:4326"); wfsProtocolOptions.setVersion("1.1.0"); This results in OpenLayers making the following XML request, which leads to a valid response which is displayed correctly: ### XML GetFeature REQUEST ### <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version ="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"> <wfs:Query typeName="feature:roads" srsName="EPSG:4326" xmlns:feature=" http://www.openplans.org/spearfish"></wfs:Query> </wfs:GetFeature> However, this next example does not work. Here, I'm only specifying the full layer title "sf:road" and not specifying the namespace. ### JAVA CODE ### WFSProtocolOptions wfsProtocolOptions = new WFSProtocolOptions(); wfsProtocolOptions.setUrl(" http://li199-25.members.linode.com:8080/geoserver/wfs"); wfsProtocolOptions.setFeatureType("sf:roads"); wfsProtocolOptions.setSrsName("EPSG:4326"); wfsProtocolOptions.setVersion("1.1.0"); This results in the following XML request being sent. GeoServer handles this request fine and returns a valid FeatureCollection (as far as I can tell, it's exactly the same as the previous example). However, for some reason OpenLayers just won't display it! ### XML GetFeature REQUEST ### <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="sf:streams" srsName="EPSG:4326"/></wfs:GetFeature> Does anyone have any idea why OpenLayers won't display the results of this kind of request? Thanks, Jon |
From: Federica De M. <fde...@tp...> - 2011-06-08 09:59:03
|
I tried to change to something in my code but I'm always getting no data as result. Any help??? Please, I don't know how to debug my code! Federica ----- Original Message ----- From: "Federica De Martin" <fde...@tp...> To: "Lukas Johansson" <luk...@de...>; <gwt...@li...> Sent: Tuesday, June 07, 2011 3:58 PM Subject: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working >I tried to have a look with firebug, and when I click on the map there is a >GET request as follows: > > GET > http://localhost:9090/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&QUERY_LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&STYLES=,,&BBOX=-64.789268%2C5.300572%2C115.562294%2C75.613072&FEATURE_COUNT=10&HEIGHT=400&WIDTH=1026&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=445&Y=188 > 200 OK 312ms OpenLayers.js (riga 1188) > Intestazioni > BBOX -64.789268,5.300572,115.562294,75.613072 > FEATURE_COUNT 10 > FORMAT image/png > HEIGHT 400 > INFO_FORMAT text/html > LAYERS > topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp > QUERY_LAYERS > topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp > REQUEST GetFeatureInfo > SERVICE WMS > SRS EPSG:4326 > STYLES ,, > VERSION 1.1.1 > WIDTH 1026 > X 445 > Y 188 > Intestazioni di rispostaVisualizza come testo semplice > Content-Type text/html; charset=utf-8 > Content-Length 890 > Content-Encoding gzip > Server Jetty(6.1.8) > Intestazioni di richiestaVisualizza come testo semplice > Host localhost:9090 > User-Agent Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.10) > Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 > Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Accept-Language it-it,it;q=0.8,en-us;q=0.5,en;q=0.3 > Accept-Encoding gzip,deflate > Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive 115 > Connection keep-alive > Referer http://localhost:8080/gimovit-gwt/ > Origin http://localhost:8080 > > If I copy the address of the request in my browser I can see the HTML > response right as it should appear, but in firebug I find the Answer and > HTML tabs completly empty! What else can I check? > > Thank you for the help... > Federica > > > ----- Original Message ----- > From: "Lukas Johansson" <luk...@de...> > To: "Federica De Martin" <fde...@tp...> > Sent: Tuesday, June 07, 2011 11:44 AM > Subject: SV: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not > working > > > Install firebug and see if the request is made and if so what attributes > that are being sent. > > -----Ursprungligt meddelande----- > Från: Federica De Martin [mailto:fde...@tp...] > Skickat: den 7 juni 2011 11:44 > Till: Lukas Johansson; gwt...@li... > Ämne: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working > > I'have changed my gwt-openlayesrs dependencies to: > <dependency> > > <groupId>org.gwtopenmaps.openlayers</groupId> > > <artifactId>gwt-openlayers-client</artifactId> > > <version>0.6-SNAPSHOT</version> > > </dependency> > > and I'have added the SNAPSHOT version repository: > <repository> > > <id>sonatype-nexus-snapshots</id> > > <name>Repository for gwt-openlayers snapshot</name> > > <url>https://oss.sonatype.org/content/repositories/snapshots</url> > > </repository> > > Now I could add this code line: > options.setLayers(new WMS[] {waterBodies, stateBoundaries}); > > But I keep on getting an empty result when I query the map, any other > idea? > > Federica > > > ----- Original Message ----- > From: "Lukas Johansson" <luk...@de...> > To: "Federica De Martin" <fde...@tp...>; > <gwt...@li...> > Sent: Monday, June 06, 2011 10:32 PM > Subject: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working > > > You should set the layer(s) that you want to query with: > options.setLayers() //layer or array of layers > /Lukas > > -----Ursprungligt meddelande----- > Från: Federica De Martin [mailto:fde...@tp...] > Skickat: den 6 juni 2011 12:33 > Till: gwt...@li... > Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo not working > > Hi everybody. > > I'm trying to implement the WMSGetFeatureInfo listner in my gwt-openlayers > map but I cannot make it work. I recive no result in the alert window; > Now > I'm using che sample geoserver layer (Tasmania boundary and waters) but I > keep on getting no results. My application runs at localhost:8080 on jboss > and geoserver is running with Jetty at localhost:9090. This is my code: > > <code> > > String wmsurl=http://localhost:9090/geoserver/wms; > > WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions(); > > options.setInfoFormat("text/html"); > > options.setURL(wmsurl); > > options.setTitle("Query visible layers"); > > options.setQueryVisible(true); > > WMSGetFeatureInfo info = new WMSGetFeatureInfo(options); > > info.addGetFeatureListener(new GetFeatureInfoListener(){ > > > public void onGetFeatureInfo(GetFeatureInfoEvent eo) { > > Window.alert(eo.getType() + " - " + eo.getText()); > > } > > > }); > > > map.addControl(info); > > info.activate(); > > </code> > > Do you have any idea on how to make it work. I think I'm missing > something > but I really cannot understand what, please help me. > > Thank you, Federica. > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |