What do I need to do to use LatLontoUTM

bobm

New Member
Licensed User
Longtime User
Hi,

I wish to use the LatLonToUTM function. In examples given 'nav.' is placed in front of the converter. Does 'nav' have to initialised as something?

At the moment when I try to compile I get the message;
‘Undeclared variable 'nav' is used before it was assigned any value’

B4X:
Sub convertToUTM (dblLattitude As Double, dblLongitude As Double) As Double()
      Dim dblEllipsoidAxis As Double
      Dim dblEllipsoidFlat As Double
     
      convertToUTM = nav.LatLonToUTM(dblEllipsoidAxis, dblEllipsoidFlat, dblLattitude, dblLongitude) As Double()
End Sub
(Still needs the two values put in)
 

bobm

New Member
Licensed User
Longtime User
Thanks Erel, yourve been a great help.
I finally got it work properly using the geodesic class

Cheers:)
 
Upvote 0
Top