Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Can u help me with WFS on GEOExt? Im read tutorial and see this code.

proxy: new{
        protocol: new OpenLayers.Protocol.WFS({
            url: "/geoserver/ows",
            version: "1.1.0",
            featureType: "parks",
            featureNS: "",
            srsName: "EPSG:4326"

After this i see this var vectorLayer = new OpenLayers.Layer.Vector("Editable features"); And dont understand how to creating a layer. So i have some questions.
1 How to get URL to wfs? (i use geoserver)
2 Whats mean featureType option.
3 And more important. This code is correct? I find it here

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I think you would benefit from splitting your problem into GeoExt and OpenLayers.

Start with the OpenLayers examples (, looking at each WFS example to see how it is done. Here is a really simple example - zoom in a bit if you don't see the white states outlines. Now look at the code for that ( Now work through the other WFS examples.

featureType is the name of the "layer" on the WFS server.

Edits: described why you might need a ProxyHost, and how to set it up.

The namespace qualifies the featureType, so a server can offer more than one WFS layer with the same name (e.g. "tanks" could mean something different in a military sense and in a water sense).

share|improve this answer
Thank u. I see this example. But i dont know wnat is it OpenLayers.ProxyHost = "proxy.cgi?url=";. Can u say me? And featureNS thi is name of the workspace? – Kliver Max Jul 12 '12 at 5:28
Try do like in this example but dont see a layer. In firebug i see answer from geoserver with layer but on map is nothing. – Kliver Max Jul 12 '12 at 5:53

You should check this answer, regarding your confusions in the original question. And regarding OpenLayers.ProxyHost, you can check this link. There are several other related questions here, you can read through them to have a better understanding.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.