Global Mapper v25.0

GM_ProjectRectangle from Geographic/WGS84 to UTM

codemouse Global Mapper UserTrusted User
edited October 2013 in SDK

Any tips on the easiest way to go from a Geo/WGS84 (EPSG 4326) rectangle to a UTM rectangle? Maybe the question I'm really asking is what is the best way to obtain the output projection without necessarily already knowing the Zone (Hemisphere I could obviously figure out)?



  • codemouse
    codemouse Global Mapper User Trusted User
    edited October 2013
    Related - what happens if I set a new projection with a Zone of 0? Meaning - what do you actually "do"?

    theUtmProj.mAttrList[0].mAttr = ZONE;
    theUtmProj.mAttrList[0].mValue = 0; // use 0 to automatically selected best UTM zone
  • global_mapper
    global_mapper Administrator
    edited October 2013
    If you pass in 0 for the zone then the appropriate zone for the lat/lon at the center of the bounding box provided for GM_ProjectRectangle is used.


    Global Mapper Guru
    Global Mapper