Setting a Projection equivalent to Bing Maps - EPSG:3857
Mike,
How can I set a new GM_Projection_t with parameters equiv to Web Mercator (Aux Sphere) WGS 84 / EPSG 3857 / Bing Maps, Google, etc...?
EPSG:3857 -- WGS84 Web Mercator (Auxiliary Sphere): SR-ORG Projection -- Spatial Reference
I tried this and it does NOT work:
What am I missing for proper initialization? Thanks.
Brian
How can I set a new GM_Projection_t with parameters equiv to Web Mercator (Aux Sphere) WGS 84 / EPSG 3857 / Bing Maps, Google, etc...?
EPSG:3857 -- WGS84 Web Mercator (Auxiliary Sphere): SR-ORG Projection -- Spatial Reference
I tried this and it does NOT work:
var bingMapProjection = new GM_Projection_t { mProjSys = GM_ProjType_t16.GM_PRJ_MERCAT, mDatum = GM_DatumType_t16.GM_DATUM_GOOGLE_MAPS, mUnit = GM_ProjUnit_t16.GM_PRJ_UNIT_ARC_DEGREES, mNumAttrs = 0 };
What am I missing for proper initialization? Thanks.
Brian
Comments
-
Brian,
You are close, just set mUnit = GM_ProjUnit_t16.GM_PRJ_UNIT_METERS. You could also use GM_LoadProjectionFromEPSGCode with 900913.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Global Mapper -
Thanks! That worked.
Brian
Categories
- 12.5K All Categories
- 5.5K Features Discussion
- 314 Downloading Imagery
- 1.3K Elevation Data
- 377 Georeferencing Imagery Discussion
- 611 GM Script Language
- 50 User Scripts
- 112 GPS Features
- 397 Projection Questions
- 803 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 161 Announcement and News
- 893 Bug Report
- 557 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 542 Other Discussion
- 128 GIS Data Sources
- 26 Global Mapper Showcase
- 229 How I use Global Mapper
- 104 Global Mapper Forum Website