Timeline for Displaying WFS layer with OpenLayers
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 18, 2012 at 9:02 | comment | added | Ian Turton | It will only work if you type the url into the browser bar. | |
Feb 17, 2012 at 18:15 | comment | added | Stéphane Henriod | @iant: Geoserver runs on port8080 and I simply display my html page in Firefox by double clicking on it. Do you mean it would make a difference if the html file was in the www folder and open through its URL (localhost:8080/something) rather than through its system path (c:/something)? Sorry if it's a silly question, but I'm a GIS guy not a developer! (I can't test right now but I'll do as soon as I'm in front of my computer) | |
Feb 17, 2012 at 17:15 | comment | added | CaptDragon | @StéphaneHenriod : calling the script from link is not a problem. | |
Feb 17, 2012 at 15:06 | comment | added | Ian Turton | are you loading your HTML page from the same port as your GeoServer is running on? if not you will need a proxy or to move your html to the www directory of GeoServer | |
Feb 17, 2012 at 14:48 | comment | added | Stéphane Henriod | Well, I work only on localhost, which is on Windows 7 (so PostGIS, Geoserver and all my files are on Windows 7). But I do not have a local copy of the OpenLayers library. I call the script from link. Could that be the problem? or part of the problem? | |
Feb 17, 2012 at 14:26 | comment | added | CaptDragon | So you're OpenLayers is on Windows 7? | |
Feb 17, 2012 at 13:55 | comment | added | Stéphane Henriod | Still googling around for my problem and found some references about needing to setup a cgi script... Is that really necessary, knowing that, for now, I run the app exclusively on localhost? Also, I do not have Apache installed, and Geoserver runs on Jetty, not Tomcat (the "easy and straight-forward" installation), on Windows 7 | |
Feb 17, 2012 at 12:59 | comment | added | Stéphane Henriod | This is what I think as well... also, I have tried with the sample data provided by Geoserver (tiger, topp...) and I have the exact same problem. So, a priori not a problem with the datasets. If someone else has an idea? | |
Feb 17, 2012 at 12:19 | comment | added | Ian Turton | If there are no WFS requests in the net tab then something is wrong with the OpenLayers code. I can't see anything may be others can | |
Feb 17, 2012 at 12:02 | comment | added | Stéphane Henriod | Thanks for this, but can you tell me what I have to check in Firebug? Under Network / all, I have lots of GET for the WMS, but not for the WFS. I guess it means that nothing is being returned? I will also check your link, but I assume that the coordinates are in the correct order, as they are stored as Geometry in PostGIS and as I have no problem to display them as WMS (or even as WFS in Quantum GIS) | |
Feb 17, 2012 at 11:56 | history | answered | Ian Turton | CC BY-SA 3.0 |