I wrote one in fgsd that allow [ESNW-+]? dd.ddddddddd [ESNW-+]? dd:mm.mmmmmm [ESNW-+]? dd:mm:ss.sss
see double FGSD_Util::parsePosition( const char *_pos_, bool &_error_ ) at : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/fgsd/fgsd/src/sdutil.cpp?rev= HEAD&content-type=text/vnd.viewcvs-markup (be carefull, the url may be span on 2 line ) I thought about submitting it for flightgear but never went on. I thing it is more flexible than the current parse_time in options.cxx -Fred PS: I am seeing all your messages as attachment. Is there something special with your mailer or is it me ( or Outlook ) ? ----- Original Message ----- From: "James Turner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 12:27 AM Subject: [Flightgear-devel] Parsing Lon/lat strings > Further to my flight plan hacking (which is coming along nicely): > > Is there any code in Sim/FlightGear to do generic conversion of a lat / > lon string into a decimal degree value? > > I.e, something that would accept and convert some / all of the > following: > > N50 23.1 > -96.32 > E00 06.3 > > into a sign-correct floating point format. > > [and any other formats people would use] > Note I'm only worrying about parsing either lat or lon, not a combined > value string (though I guess people might want that too) > > And, if it doesn't exist, any suggestions how do a vaguely elegant > implementation? > > H&H > James _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel