[GRASS-SVN] r69710 - in grass/trunk: raster/r.in.lidar raster3d/r3.in.lidar vector/v.in.lidar

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 19 17:13:13 PDT 2016


Author: wenzeslaus
Date: 2016-10-19 17:13:13 -0700 (Wed, 19 Oct 2016)
New Revision: 69710

Modified:
   grass/trunk/raster/r.in.lidar/main.c
   grass/trunk/raster3d/r3.in.lidar/main.c
   grass/trunk/vector/v.in.lidar/main.c
Log:
v.in.lidar, r.in.lidar, r3.in.lidar: make the file open error messages more precise

Modified: grass/trunk/raster/r.in.lidar/main.c
===================================================================
--- grass/trunk/raster/r.in.lidar/main.c	2016-10-20 00:00:38 UTC (rev 69709)
+++ grass/trunk/raster/r.in.lidar/main.c	2016-10-20 00:13:13 UTC (rev 69710)
@@ -398,11 +398,11 @@
         /* Open LAS file*/
         LAS_reader = LASReader_Create(infile);
         if (LAS_reader == NULL)
-            G_fatal_error(_("Unable to open file <%s>"), infile);
+            G_fatal_error(_("Unable to open file <%s> as a LiDAR point cloud"),
+                          infile);
         LAS_header = LASReader_GetHeader(LAS_reader);
         if  (LAS_header == NULL) {
-            G_fatal_error(_("Input file <%s> is not a LAS LiDAR point cloud"),
-                            infile);
+            G_fatal_error(_("Unable to read LAS header of <%s>"), infile);
         }
 
         LAS_srs = LASHeader_GetSRS(LAS_header);

Modified: grass/trunk/raster3d/r3.in.lidar/main.c
===================================================================
--- grass/trunk/raster3d/r3.in.lidar/main.c	2016-10-20 00:00:38 UTC (rev 69709)
+++ grass/trunk/raster3d/r3.in.lidar/main.c	2016-10-20 00:13:13 UTC (rev 69710)
@@ -375,11 +375,11 @@
         /* Open LAS file*/
         LAS_reader = LASReader_Create(infile);
         if (LAS_reader == NULL)
-            G_fatal_error(_("Unable to open file <%s>"), infile);
+            G_fatal_error(_("Unable to open file <%s> as a LiDAR point cloud"),
+                          infile);
         LAS_header = LASReader_GetHeader(LAS_reader);
         if  (LAS_header == NULL) {
-            G_fatal_error(_("Input file <%s> is not a LAS LiDAR point cloud"),
-                            infile);
+            G_fatal_error(_("Unable to read LAS header of <%s>"), infile);
         }
 
         LAS_srs = LASHeader_GetSRS(LAS_header);

Modified: grass/trunk/vector/v.in.lidar/main.c
===================================================================
--- grass/trunk/vector/v.in.lidar/main.c	2016-10-20 00:00:38 UTC (rev 69709)
+++ grass/trunk/vector/v.in.lidar/main.c	2016-10-20 00:13:13 UTC (rev 69710)
@@ -349,11 +349,11 @@
     /* Open LAS file*/
     LAS_reader = LASReader_Create(in_opt->answer);
     if (LAS_reader == NULL)
-        G_fatal_error(_("Unable to open file <%s>"), in_opt->answer);
+        G_fatal_error(_("Unable to open file <%s> as a LiDAR point cloud"),
+                      in_opt->answer);
     LAS_header = LASReader_GetHeader(LAS_reader);
     if  (LAS_header == NULL) {
-        G_fatal_error(_("Input file <%s> is not a LAS LiDAR point cloud"),
-                        in_opt->answer);
+        G_fatal_error(_("Unable to read LAS header of <%s>"), in_opt->answer);
     }
 
     LAS_srs = LASHeader_GetSRS(LAS_header);



More information about the grass-commit mailing list