[GRASS-SVN] r49790 - grass/trunk/lib/raster3d

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 16 15:06:14 EST 2011


Author: huhabla
Date: 2011-12-16 12:06:14 -0800 (Fri, 16 Dec 2011)
New Revision: 49790

Modified:
   grass/trunk/lib/raster3d/resample.c
Log:
Removed redundant spatial boundary check


Modified: grass/trunk/lib/raster3d/resample.c
===================================================================
--- grass/trunk/lib/raster3d/resample.c	2011-12-16 19:32:29 UTC (rev 49789)
+++ grass/trunk/lib/raster3d/resample.c	2011-12-16 20:06:14 UTC (rev 49790)
@@ -33,17 +33,9 @@
 
     /* convert (north, east, top) into map region coordinates (row, col, depth) */
     Rast3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);
-
-    /* if (row, col, depth) outside map region return NULL value */
-    if ((row < 0) || (row >= map->region.rows) ||
-	(col < 0) || (col >= map->region.cols) ||
-	(depth < 0) || (depth >= map->region.depths)) {
-	Rast3d_set_null_value(value, 1, type);
-	return;
-    }
     
     /* Get the value from the map in map-region resolution */
-	Rast3d_get_value_region(map, col, row, depth, value, type);
+    Rast3d_get_value_region(map, col, row, depth, value, type);
 }
 
 /*--------------------------------------------------------------------------*/



More information about the grass-commit mailing list