The attached class allows you to convert coordinates between Lat Lon coordinates and UTM coordinates.
The conversion is done with WGS84 datum. Note that the class code can handle other datums as well.
Usage example:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
There were reports of inaccurate results. I wasn't able to reproduce them. Make sure to test it thoroughly.
			
			The conversion is done with WGS84 datum. Note that the class code can handle other datums as well.
Usage example:
			
				B4X:
			
		
		
		Sub Activity_Create(FirstTime As Boolean)
   Dim g As Geodesic
   g.Initialize
   Dim u As UTM
   u.UtmXZone = 36
   u.X = 500000
   u.Y = 3600000
   u.NorthHemisphere = True
   Dim ll As LatLon
   ll = g.WGS84UTMTOLatLon(u)
   Log(ll.Lat & "N " & ll.Lon & "E")
End SubThere were reports of inaccurate results. I wasn't able to reproduce them. Make sure to test it thoroughly.
Attachments
			
				Last edited: 
			
		
	
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		