Changeset 1615:c34ee6db25b2


Ignore:
Timestamp:
03/05/10 12:02:50 (5 months ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
default
Message:

actually fail if we can't write points because they are invalid #169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/las2las.c

    r1609 r1615  
    10881088            continue; 
    10891089        } 
    1090         LASWriter_WritePoint(writer,p); 
    1091  
     1090        ret = LASWriter_WritePoint(writer,p); 
     1091         
     1092        if (ret == LE_Warning) { 
     1093            LASError_Print("Unable to write invalid point.  Use --skip_invalid to avoid this problem (you will loose data in the translation)"); 
     1094            exit(1); 
     1095        } 
    10921096        p  = LASReader_GetNextPoint(reader); 
    10931097        i++; 
Note: See TracChangeset for help on using the changeset viewer.