[Liblas-devel] LAS file Coordinate Systems

Mateusz Loskot mateusz at loskot.net
Wed Jul 22 19:47:51 EDT 2009


Patel, Ronak Avinash \(US SSA\) wrote:
> Howard,
>
> I am trying to set everything in WGS 84 as you described but I am seeing
> some weird things:
>
> I am setting my bounding box to the following envelope:
>
> {-2.68934056019039, 51.501158065529, 56}
> {-2.68570637283357, 51.5034265277949, 56}
>
> However, when I output the las I made using lasinfo.exe (from libLAS
> 1.2) it truncates the precision and only shows
>
> min x y z                  -2.689341 51.501158 0
> max x y z                  -2.685706 51.503427 0

lasinfo does the rounding:

http://liblas.org/browser/trunk/apps/lascommon.c#L281

This 6 decimal points is a reasonable choice of precision
used to present float-point value for data inspection purpose.

The libLAS, the library, does not (should not) do any rounding.

Best regards,
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Liblas-devel mailing list