EXTERNAL:Re: [Liblas-devel] Liblas reading problem
Black, Michael (IS)
Michael.Black2 at ngc.com
Tue Sep 14 16:19:28 EDT 2010
You hit the "format the data the way C++ wants" that I hate.
You need to add:
std:cout.precision(2);
and then
std::cout << std::fixed << p.GetX() << "," << p.GetY() << p.GetZ() << std:endl;
Michael D. Black
Senior Scientist
Advanced Analytics Directorate
Northrop Grumman Information Systems
________________________________
From: liblas-devel-bounces at lists.osgeo.org on behalf of Cristovao
Sent: Tue 9/14/2010 3:12 PM
To: liblas-devel at lists.osgeo.org
Subject: EXTERNAL:Re: [Liblas-devel] Liblas reading problem
Hi Andrew,thanks for your reply.
yes, it should return the coordinates as doubles, but instead, it is
returning them as floats...
This is what i get:
550091 4.49618e+006 176.88
550091 4.49618e+006 176.91
550091 4.49618e+006 177
550091 4.49614e+006 178.06
550091 4.49614e+006 178.06
550091 4.49614e+006 178
...
..
.
and this is what i wanted (real coordinates):
550091 4496175.64 176.88
550091 4496176.22 176.91
550091 4496176.81 177
550091 4496138.99 178.06
550091.01 4496139.57 178.06
550091.02 4496140.74 178
...
..
.
I didn't modify anything from the Liblas "Reading .las files" example.
Best regards,
Cristóvão
--
View this message in context: http://liblas-developers.431198.n3.nabble.com/Liblas-reading-problem-tp1475223p1475430.html
Sent from the libLAS Developers mailing list archive at Nabble.com.
_______________________________________________
Liblas-devel mailing list
Liblas-devel at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/liblas-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20100914/6138bebd/attachment.html
More information about the Liblas-devel
mailing list