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

I got the GeoExt QueryPanel working so far, it recognizes the layers available on my Geoserver but it is not able to get the attribute columns for the dataset. I configured an osgeo proxy on my Apache Server, I use the override-ext-ajax.js and have the OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="; class configured.

A DescribeFeatureType request is sent when selecting the layer I want to filter. The same happens when trying to choose the attribute column in the query panel, but there are none displayed.

The sent request URLs look like this:


The strange part here is, that the request is sent via the proxy.cgi twice. The request URL should look like this, going passed geoserver´s WFS:


Does anybody have a clue what´s going wrong here and why the request URL is wrong? The strange thing is that even if I remove the Open.Layers.ProxyHost class and the override-ext-ajax.js from my application, the request is sent that way. Can it be related to my server? Other requests sent in the application (GET & POST) work fine. The (relevant) code looks like this, maybe you guys can spot the error...

OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";

    var owsUrl = "/geoserver/wfs";

    var symbolizer =["default"];

    symbolizer.graphicName = "square";

    var store;

    Ext.onReady(function() {

                store = new{
                url: Ext.urlAppend(owsUrl,
                protocolOptions: {version: "1.1.0"},
                autoLoad: true,
                listeners: {
                    load: initApp

    function initApp() {
            var vecLayer = new OpenLayers.Layer.Vector("Query", {
                eventListeners: {
                    featuresadded: function() {
                        var extent = vecLayer.getDataExtent()

var queryPanel = new gxp.QueryPanel({
                title: "Query",
                region: "center",
                width: 350,
                bodyStyle: "padding: 10px",
                autoScroll: true,
                layerStore: store,
                bbar: ["->", {
                    text: "Query",
                    handler: function() {
                listeners: {
                    query: function(panel, store) {
                        var rule = new OpenLayers.Rule({
                            filter: panel.getFilter()
                        rule.symbolizer[queryPanel.symbolizerType] = symbolizer;
                        var style = new OpenLayers.Style("", {rules: [rule]});
                            sld_body: new OpenLayers.Format.SLD().write({
                                namedLayers: [{
                                    name: panel.selectedLayer.get("name"),
                                    userStyles: [style]

                        store.bind(vecLayer, {

Any help is appreciated!



share|improve this question
too many broad questions. no code. try asking a straight forward question and include as many details and code as you can. – CaptDragon Sep 6 '11 at 19:37

Your Answer


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

Browse other questions tagged or ask your own question.