[GRASS-SVN] r71296 - grass/branches/releasebranch_7_2/raster/r.in.lidar
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 22 05:23:47 PDT 2017
Author: wenzeslaus
Date: 2017-07-22 05:23:47 -0700 (Sat, 22 Jul 2017)
New Revision: 71296
Modified:
grass/branches/releasebranch_7_2/raster/r.in.lidar/main.c
Log:
r.in.lidar: make the file open error messages more precise (backport r69710)
Modified: grass/branches/releasebranch_7_2/raster/r.in.lidar/main.c
===================================================================
--- grass/branches/releasebranch_7_2/raster/r.in.lidar/main.c 2017-07-22 12:20:36 UTC (rev 71295)
+++ grass/branches/releasebranch_7_2/raster/r.in.lidar/main.c 2017-07-22 12:23:47 UTC (rev 71296)
@@ -396,11 +396,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);
More information about the grass-commit
mailing list