#2472: v.in.lidar gives negative point count on large las files
---------------------------------------------+------------------------------
 Reporter:  dnewcomb                         |       Owner:  grass-dev@…        
      
     Type:  defect                           |      Status:  new                
      
 Priority:  normal                           |   Milestone:  7.0.0              
      
Component:  Default                          |     Version:  
svn-releasebranch70      
 Keywords:  v.in.lidar  point initial count  |    Platform:  Unspecified        
      
      Cpu:  x86-64                           |  
---------------------------------------------+------------------------------

Comment(by mlennert):

 Replying to [ticket:2472 dnewcomb]:
 > Trying to use v.in.lidar to import points from an las file with
 3531181701 points
 >
 > v.in.lidar -o -b
 input=/gisdata/grass7/lidardir/big_lidar_file_ground.laz
 output=whole_co_ground_pts
 > Over-riding projection check
 > Importing -763785595 points..

 A sign of integer overflow. AFAICT, in this particular case this is just
 in the message where a '%d' placeholder is used which represents a signed
 int. But the count of the number of points is defined as unsigned int and
 with larger files this will probably also overflow.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2472#comment:2>
GRASS GIS <http://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to