[GRASS-SVN] r50436 - grass/branches/develbranch_6/vector/v.extrude

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 25 06:08:38 EST 2012


Author: neteler
Date: 2012-01-25 03:08:38 -0800 (Wed, 25 Jan 2012)
New Revision: 50436

Modified:
   grass/branches/develbranch_6/vector/v.extrude/main.c
Log:
enforce DB_C_TYPE_DOUBLE for SQLite backend

Modified: grass/branches/develbranch_6/vector/v.extrude/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.extrude/main.c	2012-01-25 11:07:44 UTC (rev 50435)
+++ grass/branches/develbranch_6/vector/v.extrude/main.c	2012-01-25 11:08:38 UTC (rev 50436)
@@ -225,11 +225,9 @@
 		    continue;
 
 		value = db_get_column_value(column);
-
-		objheight = db_get_value_as_double(value,
-						   db_get_column_host_type
-						   (column));
-
+		G_debug(3, "column_host_type: %d", db_get_column_host_type(column));
+		objheight = db_get_value_as_double(value, DB_C_TYPE_DOUBLE);
+		G_debug(3, "height from DB: %f", objheight);
 		/* only draw if hcolumn was defined */
 		if (objheight != 0) {
 		    G_debug(3, "area centroid %d: object height: %f",



More information about the grass-commit mailing list