Zedna Posted June 12, 2008 Posted June 12, 2008 (edited) ; 49°3'17.843" --> 49.05495639 Func dms2dd($dms) $hh = StringSplit($dms, '°') ; 49°3'17.843" $mm = StringSplit($hh[2], "'") ; 3'17.843" $ss = StringSplit($mm[2], '"') ; 17.843" ; $hh[1]=49 $mm[1]=3 $ss[1]=17.843 Return $hh[1] + $mm[1]/60 + $ss[1]/3600 EndFunc It could be used for conversion of GPS or time (HH:MM:SS) to decimal numbers. Note: Whole hours must be given also with minutes and seconds like that: ; 49°0'0" --> 49.0 Edited June 12, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
mikeytown2 Posted June 13, 2008 Posted June 13, 2008 A more complete solution is buried in my GPS Distance Scripthttp://www.autoitscript.com/forum/index.ph...mp;#entry446786Checkout these 2 functionsFunc DMStoDD($DMS)Func DDtoDMS($DD) Email: POP3 & SMTP using SSL/TLS (OpenSSL)Email: IMAPEmail: Base64 & SMTP login & Send email direct to MX Server (thanks blindwig)Win: Hook Registry ChangesWin: Read/Write to Alternate Data Streams (ini example)Utility: GPS Distance Calculations, Vincenty and Haversine formulas; angles and elevationUtility: Dell Laser Printer (3000-5100) - Print LoggerUtility: Reset Router when Wireless Link FailsUtility: ImageMagick Batch jpg ProcessorVideo HCenc Batch FrontendVideo: *DEAD* YouTube Video Encoder (avs/avi to flv)Software On CD's I Like<<back|track3 Ultimate Boot CD for Windows SpinRite Ubuntu ophcrack
Zedna Posted June 13, 2008 Author Posted June 13, 2008 Thanks for info/link mikeytown2. Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now