[Users] Why is the change from wms into wfs not working?

Robert Buckley robertdbuckley at yahoo.com
Tue Dec 14 17:50:35 CET 2010


Hi,

I would like to change a wms layer in my project to a wfs so that I can add more 
functionality to the layer such as tables and mouseclicks etc.
Unfortunately when I do this the layer isn´t shown anymore. Firebut gives an 
exeption saying...

"Could not locate {http://www.zgb.de}zgb:WEA_wgs84_ in catalog.>"

can anyone explain why this is?



/**********************/
/**This does not work**/
/**********************/

var layer_wea = new OpenLayers.Layer.Vector("WEA", {
    strategies: [new OpenLayers.Strategy.Fixed()],
    protocol: new OpenLayers.Protocol.WFS({
        url: "/geoserver/ows",
        version: "1.1.0",
        featureType: "zgb:WEA_wgs84_",
        featureNS: "http://www.zgb.de",
        srsName: "EPSG:4326"
    })
});


/*****************/
/**This works ok**/
/*****************/

var layer_wea = new OpenLayers.Layer.WMS(
                "Windenergieanlage",
                "/geoserver/ows",
                {
                   layers: 'zgb:WEA_wgs84_',
           group: "Wind",
                   styles: '',
                   srs: 'EPSG:4326',
                   format: 'image/png',
                   tiled: 'no',
                   tilesOrigin : "143.60260815000004,-43.851764249999995",
                   transparent: true
                },
                {
                    'opacity': 1, 'isBaseLayer': false, visibility:false
                }
            );





yours,

Robert Buckley


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20101214/f088853a/attachment.htm 


More information about the Users mailing list