SimApi Convertor getUTMZone

From SIMboxWiki
Jump to navigation Jump to search



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

    Description

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

    Parameters

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

    Return

    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;
}


Output:
-------

UTM Zone: 11


    See Also

     WGStoUTM

     UTMtoWGS

    Related Links

     SIMbox Coordinates Systems Overview