<div dir="ltr">Markus,<div>Liblas reads LAS version 1.2 , which is limited to 4.2 billion points. You have to compile liblas with an older version of laszip .</div><div><br></div><div>Doug</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 9, 2018 at 3:05 PM, GRASS GIS <span dir="ltr"><<a href="mailto:trac@osgeo.org" target="_blank">trac@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">#3560: r.in.lidar: error to open valid LAZ file<br>
------------------------+-----<wbr>----------------------------<br>
Reporter: neteler | Owner: grass-dev@…<br>
Type: defect | Status: new<br>
Priority: normal | Milestone: 7.4.1<br>
Component: Raster | Version: svn-releasebranch74<br>
Keywords: r.in.lidar | CPU: Unspecified<br>
Platform: All |<br>
------------------------+-----<wbr>----------------------------<br>
We currently fail to import a larger LiDAR file (LAZ)<br>
<br>
{{{<br>
pdal info dom1l_fp_tr_gebiet.laz > meta.txt<br>
head -n 300 meta.txt<br>
{<br>
"filename": "dom1l_fp_tr_gebiet.laz",<br>
"pdal_version": "1.7.0 (git-version: Release)",<br>
"stats":<br>
{<br>
"bbox":<br>
{<br>
"EPSG:4326":<br>
{<br>
"bbox":<br>
{<br>
"maxx": 7.311614961,<br>
"maxy": 50.83646173,<br>
"maxz": 344.69,<br>
"minx": 7.196437705,<br>
"miny": 50.78981976,<br>
"minz": 56.12<br>
},<br>
"boundary": {<br>
"coordinates" :<br>
[<br>
[<br>
[<br>
7.1981681200000001,<br>
50.78981976<br>
],<br>
<br>
...<br>
"statistic":<br>
[<br>
{<br>
"average": 377073.6011,<br>
"count": 297683873,<br>
"kurtosis": -4.436009717e+18,<br>
"maximum": 381000,<br>
"minimum": 373000,<br>
"name": "X",<br>
"position": 0,<br>
"skewness": 5.047057151e+17,<br>
"stddev": 1853.891145,<br>
"variance": 3436912.377<br>
},<br>
}}}<br>
<br>
This file was created with "pdal merge" from several LAZ tiles.<br>
<br>
Now, the import fails without any specific explanation:<br>
<br>
{{{<br>
GRASS 7.4.1svn (lidar):/scratch/kaldauen_<wbr>klassifikation ><br>
<br>
r.in.lidar imput=dom1l_fp_tr_gebiet.laz out=bla<br>
FEHLER: Unable to open file <dom1l_fp_tr_gebiet.laz><br>
as a LiDAR point cloud<br>
<br>
g.gisenv set="DEBUG=3"<br>
r.in.lidar imput=dom1l_fp_tr_gebiet.laz out=bla<br>
D1/3: G_set_program_name(): r.in.lidar<br>
D2/3: G_file_name(): path = /home/mundialis/grassdata/<wbr>lidar/anika<br>
D2/3: G_file_name(): path = /home/mundialis/grassdata/<wbr>lidar/anika/cell/bla<br>
D2/3: G_file_name(): path = /home/mundialis/grassdata/<wbr>lidar/anika/WIND<br>
D2/3: G_file_name(): path = /home/mundialis/grassdata/<wbr>lidar/anika/WIND<br>
D2/3: file open: read (mode = r)<br>
D2/3: G__read_Cell_head<br>
D2/3: G__read_Cell_head_array<br>
D3/3: region item: proj: 99<br>
D3/3: region item: zone: 0<br>
D3/3: region item: north: 5631000<br>
D3/3: region item: south: 5628000<br>
D3/3: region item: east: 379002<br>
D3/3: region item: west: 375000<br>
D3/3: region item: cols: 1334<br>
D3/3: region item: rows: 1000<br>
D3/3: region item: e-w resol: 3<br>
D3/3: region item: n-s resol: 3<br>
D3/3: region item: top: 1.000000000000000<br>
D3/3: region item: bottom: 0.000000000000000<br>
D3/3: region item: cols3: 1334<br>
D3/3: region item: rows3: 1000<br>
D3/3: region item: depths: 1<br>
D3/3: region item: e-w resol3: 3<br>
D3/3: region item: n-s resol3: 3<br>
D3/3: region item: t-b resol: 1<br>
FEHLER: Unable to open file <dom1l_fp_tr_gebiet.laz><br>
as a LiDAR point cloud<br>
D1/3: G_set_program_name(): g.gisenv<br>
D3/3: G_option_to_separator(): key = separator -> sep = '/'<br>
}}}<br>
<br>
To be sure, a check if liblas was compiled with LAZ support:<br>
<br>
{{{<br>
ldd `which r.in.lidar`<br>
linux-vdso.so.1 (0x00007fff91df4000)<br>
<a href="http://libgrass_raster.7.4.1svn.so" rel="noreferrer" target="_blank">libgrass_raster.7.4.1svn.so</a> =><br>
/home/mundialis/software/<wbr>grass74_svn/dist.x86_64-pc-<wbr>linux-<br>
gnu/lib/<a href="http://libgrass_raster.7.4.1svn.so" rel="noreferrer" target="_blank">libgrass_raster.7.4.<wbr>1svn.so</a> 0x00007f225909b000)<br>
<a href="http://libgrass_gis.7.4.1svn.so" rel="noreferrer" target="_blank">libgrass_gis.7.4.1svn.so</a> =><br>
/home/mundialis/software/<wbr>grass74_svn/dist.x86_64-pc-<wbr>linux-<br>
gnu/lib/<a href="http://libgrass_gis.7.4.1svn.so" rel="noreferrer" target="_blank">libgrass_gis.7.4.1svn.<wbr>so</a> (0x00007f2258e42000)<br>
libm.so.6 => /lib64/libm.so.6 (0x00007f2258af7000)<br>
<a href="http://libgrass_gproj.7.4.1svn.so" rel="noreferrer" target="_blank">libgrass_gproj.7.4.1svn.so</a> =><br>
/home/mundialis/software/<wbr>grass74_svn/dist.x86_64-pc-<wbr>linux-<br>
gnu/lib/<a href="http://libgrass_gproj.7.4.1svn.so" rel="noreferrer" target="_blank">libgrass_gproj.7.4.<wbr>1svn.so</a> (0x00007f22588ec000)<br>
liblas.so.3 => /lib64/liblas.so.3 (0x00007f225862b000)<br>
liblas_c.so.3 => /lib64/liblas_c.so.3 (0x00007f22583f4000)<br>
libboost_program_options.so.1.<wbr>64.0 =><br>
/lib64/libboost_program_<wbr>options.so.1.64.0 (0x00007f2258179000)<br>
...<br>
libboost_regex.so.1.64.0 => /lib64/libboost_regex.so.1.64.<wbr>0<br>
(0x00007f225454c000)<br>
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f22541c5000)<br>
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f2253fae000)<br>
librt.so.1 => /lib64/librt.so.1 (0x00007f2253da6000)<br>
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2253b88000)<br>
libarmadillo.so.7 => /lib64/libarmadillo.so.7 (0x00007f225397f000)<br>
libpoppler.so.68 => /lib64/libpoppler.so.68 (0x00007f22534da000)<br>
libjson-c.so.2 => /lib64/libjson-c.so.2 (0x00007f22532cf000)<br>
libfreexl.so.1 => /lib64/libfreexl.so.1 (0x00007f22530c6000)<br>
libgeos_c.so.1 => /lib64/libgeos_c.so.1 (0x00007f2252e95000)<br>
libwebp.so.7 => /lib64/libwebp.so.7 (0x00007f2252c27000)<br>
...<br>
/home/mundialis/software/<wbr>grass74_svn/dist.x86_64-pc-<wbr>linux-<br>
gnu/lib/<a href="http://libgrass_rtree.7.4.1svn.so" rel="noreferrer" target="_blank">libgrass_rtree.7.4.<wbr>1svn.so</a> (0x00007f2248669000)<br>
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f2248458000)<br>
libicudata.so.57 => /lib64/libicudata.so.57 (0x00007f22469db000)<br>
...<br>
<br>
<br>
# limit check to "las" string:<br>
ldd `which r.in.lidar` | grep las<br>
liblas.so.3 => /lib64/liblas.so.3 (0x00007faa54b94000)<br>
liblas_c.so.3 => /lib64/liblas_c.so.3 (0x00007faa5495d000)<br>
liblaszip.so.8 => /lib64/liblaszip.so.8 (0x00007faa528ce000)<br>
libopenblaso.so.0 => /lib64/libopenblaso.so.0 (0x00007faa401eb000)<br>
libblas.so.3 => /lib64/libblas.so.3 (0x00007faa3a078000)<br>
libopenblasp.so.0 => /lib64/libopenblasp.so.0 (0x00007faa37b34000)<br>
libsatlas.so.3 => /usr/lib64/atlas/libsatlas.so.<wbr>3 (0x00007faa36b25000)<br>
}}}<br>
<br>
So, liblaszip is present, i.e. LAZ support should be ok.<br>
<br>
System:<br>
<br>
{{{<br>
lsb_release -a<br>
LSB Version: :core-4.1-amd64:core-4.1-<wbr>noarch<br>
Distributor ID: Fedora<br>
Description: Fedora release 27 (Twenty Seven)<br>
Release: 27<br>
Codename: TwentySeven<br>
}}}<br>
<br>
Any ideas how to debug this properly? (I can test on trunk as well)<br>
<br>
Does the LAZ file size matter?<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Ticket URL: <<a href="https://trac.osgeo.org/grass/ticket/3560" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/<wbr>ticket/3560</a>><br>
GRASS GIS <<a href="https://grass.osgeo.org" rel="noreferrer" target="_blank">https://grass.osgeo.org</a>><br>
<br>
</font></span><br>______________________________<wbr>_________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div>Doug Newcomb</div><div>USFWS</div><div>551F Pylon Dr</div><div>Raleigh, NC</div><div>919-856-4520 ext. 14 <a href="mailto:doug_newcomb@fws.gov" target="_blank">doug_newcomb@fws.gov</a></div><div>---------------------------------------------------------------------------------------------------------</div><div><br></div></div><div><b style="font-size:12.8px"><i><font color="#0000ff">NOTE: This email correspondence and any attachments to and from this sender is subject to the Freedom of Information Act (FOIA) and may be disclosed to third parties.</font></i></b><span style="color:rgb(0,0,255);font-family:"courier new",monospace;font-size:12.8px"></span><br></div></div></div></div></div></div>
</div>