Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.