<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Bing maps is also using EPSG: 900913, EPSG:3785 or EPSG:3857 whichever is the latest... That should do the trick.<br><br>HTH<br><br>Edward<br><br><br><br><hr id="stopSpelling">Date: Wed, 11 Aug 2010 11:12:47 -0300<br>From: pauljame@gmail.com<br>To: mapserver-users@lists.osgeo.org<br>Subject: [mapserver-users] Openlayers + Bing Maps with Mapserver WMS        projection error...<br><br>Hey guys...<br>When using Bing maps as base layer, I have huge difference between my data ... Both are using WGS84 projection...<br>The image is attached...<br><br>Any idea?<br><br>Thanks<br><br>My WMS map:<br>MAP<br>...<br>

&nbsp; PROJECTION&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "+init=epsg:4326"<br>&nbsp; END<br><br>&nbsp;WEB&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEPATH 'D:\Temp'<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEURL '/tmp/'<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; QUERYFORMAT 'text/html'<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; METADATA&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp;&nbsp; "WMS Server"&nbsp; ##required<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank">http://localhost/cgi-bin/mapserv.exe</a>?"&nbsp;&nbsp; ##required<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_srs"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "EPSG:4269 EPSG:4326 EPSG:42304 EPSG:42101 EPSG:900913"&nbsp; ##recommended<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_feature_info_mime_type" "text/html" <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "labelcache_map_edge_buffer"&nbsp;&nbsp;<div id="ecx:1qq">
&nbsp; "-10"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br>...<br><br>LAYER<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME STATE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp; "STATE"&nbsp;&nbsp; ##required<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_feature_info_mime_type" "text/html" <br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE polygon<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; INCLUDE "Connection.map" &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA "..."&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROCESSING "CLOSE_CONNECTION=DEFER"<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROCESSING "LABEL_NO_CLIP=ON"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>...<br><br><br>My Openlayers config:<br><br>&nbsp;map = new OpenLayers.Map('Test', {<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resolutions: [0.09524345064126273, 0.0730199788249681, 
0.047621725320631365, 0.031747816880420915, 0.015873908440210457, 
0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457, 
0.0007936954220105228, 0.00031747816880420915],&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projection: "EPSG:4326",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayProjection: new OpenLayers.Projection("EPSG:4326"),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tileSize: new OpenLayers.Size(400, 400),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125, 4.7021484375, 13.623046875)&nbsp;&nbsp;&nbsp; <br>

&nbsp;&nbsp;&nbsp; });</div>
<br>_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users                                               </body>
</html>