[Liblas-commits] hg: proper error message if all points are eliminated #162

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jan 13 12:28:12 EST 2010


changeset c8aac59747af in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=c8aac59747af
summary: proper error message if all points are eliminated #162

diffstat:

 apps/las2las.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 0e87c536350f -r c8aac59747af apps/las2las.c
--- a/apps/las2las.c	Wed Jan 13 10:17:04 2010 -0600
+++ b/apps/las2las.c	Wed Jan 13 11:23:46 2010 -0600
@@ -499,6 +499,11 @@
         "eliminated based on intensity: %d\n", 
         eliminated_intensity);
 
+    if (surviving_number_of_point_records == 0) {
+        fprintf(stderr, "All points were eliminated!\n");
+        exit(0);
+    }
+    
     LASReader_Destroy(reader);
     LASHeader_Destroy(header);
   


More information about the Liblas-commits mailing list