SimApi Convertor getUTMZone

From SIMboxWiki
Jump to navigation Jump to search

Icon attributes.pngstatic int SimApi::Convertor::getUTMZone(const double &i_WGSLon)


    Computes the UTM zone of given longitude coordinate (in WGS84 format).


    i_WGS_Lon - The longitude coordinate of WGS84 format (in degrees)


    Type: int   Description: UTM zone

    Code Sample

          int main(int argc, char* argv[])
	double longitude = -115; //degrees
	//get UTM zone
	int utmZone = SimApi::Convertor::getUTMZone(longitude);
	//print UTM zone
	cout<<"UTM Zone: "<<utmZone<<endl;
	return 0;


UTM Zone: 11

    See Also



    Related Links

     SIMbox Coordinates Systems Overview