[OpenLayers-Users] Possible bug with Protocol.WFS

Andreas Hocevar ahocevar at opengeo.org
Tue Feb 9 03:45:24 EST 2010


Hi,

Brian Stempin wrote:
> I've been working with a few people on #openlayers to help me out with 
> a WFS issue.  I'm posting this to the list because I may have found a 
> bug in the process.
>
>
>                     protocol:new OpenLayers.Protocol.WFS({
>                         version: "1.1.0",
>                         //url: "test.xml",
>                         // modified by bstempi
>                         url: "/geoserver/wms",
>                         featureType: "v_stats_20090101_000000",
>                         featureNS: "http://192.168.0.20/geoserver/wms",
>                         geometryName: "the_geom"
>                     })
>                 });
>
>
> I found that the above code will work if you add srsName: 
> "EPSG:900913" to the WFS options.
>
> Is this a feature/bug/magic, or me being silly?

You mean it works if you add that to the protocol options, right? That's 
the way it is done. The BBOX strategy will use map coordinates 
(EPSG:900913), and the protocol would think they are in the default SRS 
for the feature type if you don't tell it what the SRS is.

Regards,
Andreas.

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




More information about the Users mailing list