<HTML dir=ltr><HEAD><TITLE>EXTERNAL:Re: [Liblas-devel] Liblas reading problem</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText18964>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>You hit the "format the data the way C++ wants" that I hate.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>You need to add:</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>std:cout.precision(2);</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>and then</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>std::cout &lt;&lt; std::fixed &lt;&lt; p.GetX() &lt;&lt; "," &lt;&lt; p.GetY() &lt;&lt; p.GetZ() &lt;&lt; std:endl;</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr id=idSignature35571>
<DIV><FONT color=#000000 size=2 face=Arial>Michael D. Black</FONT></DIV>
<DIV><FONT size=2 face=Arial>Senior Scientist</FONT></DIV>
<DIV><FONT size=2 face=Arial>Advanced Analytics Directorate</FONT></DIV>
<DIV><FONT size=2 face=Arial>Northrop Grumman Information Systems</FONT></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> liblas-devel-bounces@lists.osgeo.org on behalf of Cristovao<BR><B>Sent:</B> Tue 9/14/2010 3:12 PM<BR><B>To:</B> liblas-devel@lists.osgeo.org<BR><B>Subject:</B> EXTERNAL:Re: [Liblas-devel] Liblas reading problem<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Hi Andrew,thanks for your reply.<BR><BR>yes, it should return the coordinates as doubles, but instead, it is<BR>returning them as floats...<BR>This is what i get:<BR><BR>550091 4.49618e+006 176.88<BR>550091 4.49618e+006 176.91<BR>550091 4.49618e+006 177<BR>550091 4.49614e+006 178.06<BR>550091 4.49614e+006 178.06<BR>550091 4.49614e+006 178<BR>...<BR>..<BR>.<BR><BR>and this is what i wanted (real coordinates):<BR><BR>550091 4496175.64 176.88<BR>550091 4496176.22 176.91<BR>550091 4496176.81 177<BR>550091 4496138.99 178.06<BR>550091.01 4496139.57 178.06<BR>550091.02 4496140.74 178<BR>...<BR>..<BR>.<BR><BR>I didn't modify anything from the Liblas "Reading .las files" example.<BR>Best regards,<BR>Cristóvão<BR>--<BR>View this message in context: <A href="http://liblas-developers.431198.n3.nabble.com/Liblas-reading-problem-tp1475223p1475430.html">http://liblas-developers.431198.n3.nabble.com/Liblas-reading-problem-tp1475223p1475430.html</A><BR>Sent from the libLAS Developers mailing list archive at Nabble.com.<BR>_______________________________________________<BR>Liblas-devel mailing list<BR>Liblas-devel@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/liblas-devel">http://lists.osgeo.org/mailman/listinfo/liblas-devel</A><BR></FONT></P></DIV></BODY></HTML>