as a follow up, I wanted to switch my wms to a wfs.

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
                }
            );

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to