Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

(UPDATE QUESTION)

Hi guys. I have a problem with WFS request, mine is follow:

 var wfs = new OpenLayers.Layer.Vector("WFS",{                     
 strategies: [new OpenLayers.Strategy.Fixed()],
 projection: new OpenLayers.Projection("EPSG:4326"),
 protocol: new OpenLayers.Protocol.WFS({                           
 version: "1.1.0",                                
 url : "http://localhost:8080/geoserver/wfs",      //
 featureNS : "http://www.opengeospatial.net/cite", // field Namespace URI in Edit Workspace
 geometryName: "geom",                    // property of Geometry type in Edit Layer
 featureType: "InfoGeometric",            // filed Name in Edit LayerLayer Name   
 featurePrefix: 'cite'                    // field name in Edit Workspace
 }),
});

In geoserver i can see geometric features in preview. If i go on http:// localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=cite:InfoGeometric and http:// localhost:8080/geoserver/wfs/GetFeature?version=1.1.0&typename=cite:InfoGeometric i see columns's table and data's table.

After request on my map there is "WFS" layer but not features. I think that the request is submitted correctly (from my html page, through the proxy to localhost:8080/geoserver/wfs, cod. 200 OK), but the response is not direct to my map infact if i see it in firebug i see the proxy.cgi file while i aspect my features!!!!! Can anybody give me an advise?

enter image description here

enter image description here

enter image description here

Thanks.

share|improve this question
    
The very first step would be using a tool like Firebug to see the WFS requests your application is creating and check if it is receiving features from the WFS server as response. –  dariapra Oct 28 '12 at 16:06
    
two questions for you:1) Where is your html page currently? It has to be in a webserver to work. In addition, it needs a proxy to be working, if it is not in the same webserver as Geoserver. 2) Do you have any other layer in your map? Is that being displayed? –  Devdatta Tengshe Oct 28 '12 at 16:21
1  
I am not sure how you have both Geoserver & another webserver running on the same port. It might be that wfs services might not be visible. what happens when you try to open the following link: localhost:8080/geoserver/… –  Devdatta Tengshe Oct 29 '12 at 3:24
    
What web server are you using? Do you know that the proxy cgi script is actually being executed? The fact that your response contains the cgi script would suggest that it is not being executed! –  CHenderson Nov 6 '12 at 19:32
    
CHenderson, thanks for your reply. I read that in tomcat 6 must uncomment tag <servlet> and <servlet-mapping> in web.xml and in context.xml add the attribute provileged = true to tag Content (<Context privileged="true">). Again in response have proxy.cgi file. My application url is localhost:8081/ProofConsSpazial/index.html, if i go on localhost:8081/ProofConsSpazial/proxy.cgi i see my proxy.cgi file while i aspect openlayers.org. It is clear that i made a mistake, problem is where and why. –  Riccardo Nov 7 '12 at 19:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.