Hi List,<br><br>I&#39;m trying to use OpenLayers and Mapserver as a WFS. I&#39;m having some difficulty understanding how to deal with projections within the browser and on the server-side. Within OpenLayers I have the following html:<br>
<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;OpenLayers Example&lt;/title&gt;<br>    &lt;script src=&quot;<a href="http://openlayers.org/api/OpenLayers.js">http://openlayers.org/api/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>
    &lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://maps.googleapis.com/maps/api/js?sensor=false">http://maps.googleapis.com/maps/api/js?sensor=false</a>&quot;&gt;&lt;/script&gt;<br> &lt;/head&gt;<br>
 &lt;body&gt;<br>      &lt;div style=&quot;width:100%; height:100%&quot; id=&quot;map&quot;&gt;&lt;/div&gt;<br>      &lt;script type=&quot;text/javascript&quot;&gt;<br>       <br>        mapOptions = {<br>            projection: new OpenLayers.Projection(&quot;EPSG:3857&quot;),<br>
            units: &quot;m&quot;,<br>           maxExtent: new OpenLayers.Bounds(-715222.69, 6422313.80, 196915.72, 7521021.46)<br>    };<br><br>    map = new OpenLayers.Map(&#39;map&#39;, mapOptions);<br><br>    var googleLayer = new OpenLayers.Layer.Google(&#39;Google&#39;, {type: google.maps.MapTypeId.SATELLITE}, {&quot;sphericalMercator&quot;: true});<br>
    map.addLayer(googleLayer);<br><br><br>    // Add WFS data<br>    var wfsLayer= new OpenLayers.Layer.Vector(&quot;WFS&quot;, {<br>         strategies: [new OpenLayers.Strategy.BBOX()],         <br>         protocol: new OpenLayers.Protocol.WFS({<br>
           url: &quot;<a href="http://mysite.com/mapserv.cgi/wfs?&amp;map=wfs_mlsoa.map&amp;">http://mysite.com/mapserv.cgi/wfs?&amp;map=wfs_mlsoa.map&amp;</a>&quot;,<br>           featureType: &quot;mlsoa&quot;,<br>           featureNS: &quot;<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>&quot;,<br>
           srsName: &quot;EPSG:3857&quot;,<br>           version: &quot;1.1.0&quot;, <br>           geometryName: &quot;NAME&quot; <br>       })<br>   });<br><br>   //add layers<br>   map.addLayers([googleLayer,wfsLayer]);<br>
<br>&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br>And on my mapserver side I state that my map/data has the following projection:<br><br>  PROJECTION<br>    &quot;init=epsg:3857&quot;<br>  END<br><br>and extents<br>
<br>EXTENT  -715222.69 6422313.80 196915.72 7521021.46<br><br>I am assuming that it is ok to use the epsg:3857 code (the equivalent of epsg:900913) with data projected using ESRI&#39;s &#39;Mercator_Auxilary_Sphere&#39;. However, I cannot get my bbox to retrieve the data. The shapefile is an outline of England. When I view the post/get using Firebug I see that the response is:<br>
<br>&lt;gml:boundedBy&gt;
<br>&lt;gml:null&gt;unknown&lt;/gml:null&gt;
<br>&lt;/gml:boundedBy&gt;
<br><br>I saw that this question about changing projections <a href="http://osgeo-org.1803224.n2.nabble.com/wfs-openlayers-non-native-projection-td6146097.html">http://osgeo-org.1803224.n2.nabble.com/wfs-openlayers-non-native-projection-td6146097.html</a> which is why I tried to overwrite the default options. I&#39;m not sure what else to try and would appreciate any suggestions.<br>
<br>Thank you,<br>David<br><br><br><br><br>