[GRASS-SVN] r73693 - grass/trunk/raster3d/r3.out.vtk
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 21 22:38:30 PST 2018
Author: neteler
Date: 2018-11-21 22:38:30 -0800 (Wed, 21 Nov 2018)
New Revision: 73693
Modified:
grass/trunk/raster3d/r3.out.vtk/main.c
grass/trunk/raster3d/r3.out.vtk/r3.out.vtk.html
Log:
r3.out.vtk: improved error message when output cannot be written
Modified: grass/trunk/raster3d/r3.out.vtk/main.c
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/main.c 2018-11-21 19:05:25 UTC (rev 73692)
+++ grass/trunk/raster3d/r3.out.vtk/main.c 2018-11-22 06:38:30 UTC (rev 73693)
@@ -417,8 +417,7 @@
fp = fopen(param.output->answer, "w");
if (fp == NULL) {
perror(param.output->answer);
- G_usage();
- exit(EXIT_FAILURE);
+ G_fatal_error(_("Unable to open file <%s>"), param.output->answer);
}
} else
fp = stdout;
Modified: grass/trunk/raster3d/r3.out.vtk/r3.out.vtk.html
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/r3.out.vtk.html 2018-11-21 19:05:25 UTC (rev 73692)
+++ grass/trunk/raster3d/r3.out.vtk/r3.out.vtk.html 2018-11-22 06:38:30 UTC (rev 73693)
@@ -153,11 +153,11 @@
r.mapcalc "bottom = 100"
#export of volume to VTK:
-r3.out.vtk -s in=precip3d.500z50 top=dem500 bottom=bottom
-out=/tmp/slovakia3d.vtk
+r3.out.vtk -s in=precip3d.500z50 top=dem500 bottom=bottom \
+ output=/path/to/slovakia3d.vtk
# visualize in paraview or other VTK viewer:
-paraview --data=/tmp/slovakia3d.vtk
+paraview --data=/path/to/slovakia3d.vtk
# set Display style to 'surface#
# set Actor Control z to 10
</pre></div>
More information about the grass-commit
mailing list