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

Andreas Hocevar ahocevar at opengeo.org
Tue Dec 14 17:56:15 CET 2010


http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1_1_0-js.html

Note the "without prefix" in the description of the featureType parameter.

Andreas.

On Dec 14, 2010, at 17:50 , Robert Buckley wrote:

> 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
> 
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list