[mapserver-users] Openlayers + Bing Maps with Mapserver WMS projection error...

Paul james pauljame at gmail.com
Wed Aug 11 07:12:47 PDT 2010


Hey guys...
When using Bing maps as base layer, I have huge difference between my data
... Both are using WGS84 projection...
The image is attached...

Any idea?

Thanks

My WMS map:
MAP
...
  PROJECTION
        "+init=epsg:4326"
  END

 WEB
        IMAGEPATH 'D:\Temp'
        IMAGEURL '/tmp/'
        QUERYFORMAT 'text/html'

        METADATA
            "wms_title"     "WMS Server"  ##required
            "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
##required
            "wms_srs"       "EPSG:4269 EPSG:4326 EPSG:42304 EPSG:42101
EPSG:900913"  ##recommended
            "wms_feature_info_mime_type" "text/html"
            "labelcache_map_edge_buffer"
  "-10"
        END
    END
...

LAYER
        NAME STATE
        METADATA
            "wms_title"    "STATE"   ##required
            "wms_feature_info_mime_type" "text/html"
        END

        TYPE polygon
        STATUS ON
        INCLUDE "Connection.map"
        DATA "..."
        PROCESSING "CLOSE_CONNECTION=DEFER"
        PROCESSING "LABEL_NO_CLIP=ON"

        PROJECTION
            "init=epsg:4326"
        END
...


My Openlayers config:

 map = new OpenLayers.Map('Test', {
         resolutions: [0.09524345064126273, 0.0730199788249681,
0.047621725320631365, 0.031747816880420915, 0.015873908440210457,
0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457,
0.0007936954220105228, 0.00031747816880420915],
        projection: "EPSG:4326",
        displayProjection: new OpenLayers.Projection("EPSG:4326"),
        tileSize: new OpenLayers.Size(400, 400),
        maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125,
4.7021484375, 13.623046875)
    });
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100811/e2552323/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bing4.gif
Type: image/gif
Size: 17186 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100811/e2552323/attachment.gif>


More information about the MapServer-users mailing list