<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>
PROJECTION <br> "+init=epsg:4326"<br> END<br><br> WEB <br> IMAGEPATH 'D:\Temp'<br> IMAGEURL '/tmp/'<br> QUERYFORMAT 'text/html'<br><br> METADATA <br>
"wms_title" "WMS Server" ##required<br> "wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank">http://localhost/cgi-bin/mapserv.exe</a>?" ##required<br>
"wms_srs" "EPSG:4269 EPSG:4326 EPSG:42304 EPSG:42101 EPSG:900913" ##recommended<br> "wms_feature_info_mime_type" "text/html" <br> "labelcache_map_edge_buffer" <div id="ecx:1qq">
"-10"<br>
END<br> END<br>...<br><br>LAYER<br> NAME STATE<br> METADATA<br> "wms_title" "STATE" ##required<br> "wms_feature_info_mime_type" "text/html" <br>
END<br> <br> TYPE polygon<br> STATUS ON<br> INCLUDE "Connection.map" <br> DATA "..." <br> PROCESSING "CLOSE_CONNECTION=DEFER"<br>
PROCESSING "LABEL_NO_CLIP=ON"<br> <br> PROJECTION<br> "init=epsg:4326"<br> END<br>...<br><br><br>My Openlayers config:<br><br> map = new OpenLayers.Map('Test', {<br>
resolutions: [0.09524345064126273, 0.0730199788249681,
0.047621725320631365, 0.031747816880420915, 0.015873908440210457,
0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457,
0.0007936954220105228, 0.00031747816880420915], <br>
projection: "EPSG:4326",<br> displayProjection: new OpenLayers.Projection("EPSG:4326"),<br> tileSize: new OpenLayers.Size(400, 400), <br> maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125, 4.7021484375, 13.623046875) <br>
});</div>
<br>_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users </body>
</html>