Hi all,<br><br>I&#39;ve been working with a few people on #openlayers to help me out with a WFS issue.  I&#39;m posting this to the list because I may have found a bug in the process.<br><br>So, at one point, I packaged some of my WFS output into an XML file and tschaub wrote the following example for me (which worked, <a href="http://astro.temple.edu/~tub09307/tschaub.html">http://astro.temple.edu/~tub09307/tschaub.html</a>):<br>

<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">&lt;html&gt;<br>    &lt;head&gt;<br>        &lt;title&gt;Brian&#39;s Data&lt;/title&gt;<br>
        &lt;script src=&quot;<a href="http://www.openlayers.org/api/OpenLayers.js">http://www.openlayers.org/api/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;div id=&quot;map&quot; class=&quot;smallmap&quot;&gt;&lt;/div&gt;<br>
        &lt;script&gt;<br>            <br>            var map = new OpenLayers.Map({<br>                div: &quot;map&quot;,<br>                projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),<br>                units: &quot;m&quot;,<br>
                maxResolution: 500, // meters per pixel<br>                maxExtent: new OpenLayers.Bounds(<br>                    -10462261, 5577086, -10305718, 5655358 // bounds of data<br>                )<br>            });<br>
<br>        var traffic = new OpenLayers.Layer.Vector(&quot;Traffic&quot;, {<br>                isBaseLayer: true,<br>                strategies: [new OpenLayers.Strategy.BBOX()],<br>                styleMap: style,<br>                protocol:new OpenLayers.Protocol.WFS({<br>
                    version: &quot;1.1.0&quot;,<br>                    url: &quot;OpenLayers-2.8/examples/gml/test.xml&quot;,<br>                    featureType: &quot;v_stats_20090101_000000&quot;,<br>                    featureNS: &quot;<a href="http://192.168.0.20/geoserver/wms">http://192.168.0.20/geoserver/wms</a>&quot;,<br>
                    geometryName: &quot;the_geom&quot;<br>                })<br>            });<br><br>            map.addLayer(traffic);<br>            map.zoomToMaxExtent();<br><br>        &lt;/script&gt;<br>        &lt;form&gt;<br>
    &lt;/body&gt;<br>&lt;/html&gt;<br></blockquote><br>I then modified it to this, which did not work:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
&lt;html&gt;<br>    &lt;head&gt;<br>        &lt;title&gt;Brian&#39;s Data&lt;/title&gt;<br>        &lt;!-- added by bstempi --&gt;<br>        &lt;script src=&quot;<a href="http://www.openlayers.org/api/OpenLayers.js">http://www.openlayers.org/api/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>
    &lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;div id=&quot;map&quot; class=&quot;smallmap&quot;&gt;&lt;/div&gt;<br>        &lt;script&gt;<br>            <br>            var map = new OpenLayers.Map({<br>                div: &quot;map&quot;,<br>
                projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),<br>                units: &quot;m&quot;,<br>                maxResolution: 500, // meters per pixel<br>                maxExtent: new OpenLayers.Bounds(<br>
                    -10462261, 5577086, -10305718, 5655358 // bounds of data<br>                )<br>            });<br><br>            var traffic = new OpenLayers.Layer.Vector(&quot;Traffic&quot;, {<br>                isBaseLayer: true,<br>
                strategies: [new OpenLayers.Strategy.BBOX()],<br>                protocol:new OpenLayers.Protocol.WFS({<br>                    version: &quot;1.1.0&quot;,<br>                    //url: &quot;test.xml&quot;,<br>
                    // modified by bstempi<br>                    url: &quot;/geoserver/wms&quot;,<br>                    featureType: &quot;v_stats_20090101_000000&quot;,<br>                    featureNS: &quot;<a href="http://192.168.0.20/geoserver/wms">http://192.168.0.20/geoserver/wms</a>&quot;,<br>
                    geometryName: &quot;the_geom&quot;<br>                })<br>            });<br><br>            map.addLayer(traffic);<br>            map.zoomToMaxExtent();<br><br>        &lt;/script&gt;<br>    &lt;/body&gt;<br>
&lt;/html&gt;<br></blockquote><br>I found that the above code will work if you add srsName: &quot;EPSG:900913&quot; to the WFS options.<br><br>Is this a feature/bug/magic, or me being silly?<br><br>Thanks,<br>Brian Stempin<br>
<a href="mailto:brian.stempin@gmail.com">brian.stempin@gmail.com</a><br>