[GRASS-SVN] r67020 - grass/trunk/vector/v.surf.bspline
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 5 06:51:04 PST 2015
Author: annakrat
Date: 2015-12-05 06:51:04 -0800 (Sat, 05 Dec 2015)
New Revision: 67020
Modified:
grass/trunk/vector/v.surf.bspline/main.c
Log:
v.surf.bspline: move opening raster after opening driver, closing is in reverse order, attempt to fix #2434
Modified: grass/trunk/vector/v.surf.bspline/main.c
===================================================================
--- grass/trunk/vector/v.surf.bspline/main.c 2015-12-05 11:52:56 UTC (rev 67019)
+++ grass/trunk/vector/v.surf.bspline/main.c 2015-12-05 14:51:04 UTC (rev 67020)
@@ -362,17 +362,7 @@
vector);
}
- /* raster output */
- raster = -1;
- Rast_set_fp_type(DCELL_TYPE);
- if (!vector && map) {
- grid = TRUE;
- raster = Rast_open_fp_new(out_map_opt->answer);
- G_verbose_message(_("Cells for raster map <%s> will be interpolated"),
- map);
- }
-
/* read z values from attribute table */
if (bspline_field > 0) {
G_message(_("Reading values from attribute table..."));
@@ -431,6 +421,17 @@
driver = db_start_driver_open_database(drv, db);
}
+ /* raster output */
+ raster = -1;
+ Rast_set_fp_type(DCELL_TYPE);
+ if (!vector && map) {
+ grid = TRUE;
+ raster = Rast_open_fp_new(out_map_opt->answer);
+
+ G_verbose_message(_("Cells for raster map <%s> will be interpolated"),
+ map);
+ }
+
/* Setting regions and boxes */
G_debug(1, "Interpolation: Setting regions and boxes");
G_get_window(&original_reg);
More information about the grass-commit
mailing list