[GRASS-SVN] r68982 - grass/trunk/vector/v.in.lidar
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 15 09:50:46 PDT 2016
Author: wenzeslaus
Date: 2016-07-15 09:50:46 -0700 (Fri, 15 Jul 2016)
New Revision: 68982
Modified:
grass/trunk/vector/v.in.lidar/main.c
Log:
v.in.lidar: check for valid LAS reader as in r.in.lidar
Now it actually catches LAZ as invalid without LAZ support.
Before it just imported zero points.
Modified: grass/trunk/vector/v.in.lidar/main.c
===================================================================
--- grass/trunk/vector/v.in.lidar/main.c 2016-07-15 15:11:17 UTC (rev 68981)
+++ grass/trunk/vector/v.in.lidar/main.c 2016-07-15 16:50:46 UTC (rev 68982)
@@ -348,11 +348,12 @@
}
/* 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);
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(_("Input file <%s> is not a LAS LiDAR point cloud"),
+ in_opt->answer);
}
LAS_srs = LASHeader_GetSRS(LAS_header);
More information about the grass-commit
mailing list