[GRASS-SVN] r73695 - grass/branches/releasebranch_7_4/raster3d/r3.out.vtk
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 21 22:39:40 PST 2018
Author: neteler
Date: 2018-11-21 22:39:40 -0800 (Wed, 21 Nov 2018)
New Revision: 73695
Modified:
grass/branches/releasebranch_7_4/raster3d/r3.out.vtk/main.c
grass/branches/releasebranch_7_4/raster3d/r3.out.vtk/r3.out.vtk.html
Log:
r3.out.vtk: improved error message when output cannot be written (trunk, r73693)
Modified: grass/branches/releasebranch_7_4/raster3d/r3.out.vtk/main.c
===================================================================
--- grass/branches/releasebranch_7_4/raster3d/r3.out.vtk/main.c 2018-11-22 06:39:19 UTC (rev 73694)
+++ grass/branches/releasebranch_7_4/raster3d/r3.out.vtk/main.c 2018-11-22 06:39:40 UTC (rev 73695)
@@ -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/branches/releasebranch_7_4/raster3d/r3.out.vtk/r3.out.vtk.html
===================================================================
--- grass/branches/releasebranch_7_4/raster3d/r3.out.vtk/r3.out.vtk.html 2018-11-22 06:39:19 UTC (rev 73694)
+++ grass/branches/releasebranch_7_4/raster3d/r3.out.vtk/r3.out.vtk.html 2018-11-22 06:39:40 UTC (rev 73695)
@@ -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