Bing country boundaries mismatch with WGS84 shapefile

Topics: Help
Mar 3, 2012 at 9:27 AM

I am using GMap core in one of my custom application to display Bing Hybrid Maps, and it is working fine. I have a shapefile in WGS84 coordinate system, when I try to load that shapefile over Bing Hybrid Map, the country boundaries did not match at starting zoom levels, but when I zoom in to zoom level 5, the country boundaries gets matched.

Please see the screenshot here:

This is the data in prj file associated with the shapefile:

GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]]

Please suggest how I can resolve this issue, is there any transformation needs to be applied.

Mar 3, 2012 at 11:25 AM

shapes isn't supported so you render it somehow yourself, that the place to look for

Mar 3, 2012 at 11:54 AM

Thanks for the fast reply. However, I understand that Bing Hybrid Maps are been rendered using Mercator Projection, whereas Shapefile is in WGS 84 (EPSG:4326) coordinate projection.

I need some help to figure out how I can convert/transform coordinate bounds from Mercator projection to WGS 84 so that the boundaries could match.

Mar 3, 2012 at 11:58 AM

Also, GMaps Mercator projection class is based on which EPSG coordinate projection, Please provide the EPSG code.

Mar 3, 2012 at 12:14 PM

/// <summary>
/// The Mercator projection
/// PROJCS["World_Mercator",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Mercator"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",0],PARAMETER["standard_parallel_1",0],UNIT["Meter",1]]
/// </summary>

Mar 5, 2012 at 10:04 AM

Please can anyone share the difference with the Mercator Projection and Mercator 2SP projection. Will Mercator 2SP Projection class implementation help in the above scenario?