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: [email protected] on behalf of Cristovao Sent: Tue 9/14/2010 3:12 PM To: [email protected] 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 [email protected] http://lists.osgeo.org/mailman/listinfo/liblas-devel
_______________________________________________ Liblas-devel mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/liblas-devel
