[GRASS-SVN] r50437 - grass/trunk/vector/v.extrude
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 25 06:08:40 EST 2012
Author: neteler
Date: 2012-01-25 03:08:40 -0800 (Wed, 25 Jan 2012)
New Revision: 50437
Modified:
grass/trunk/vector/v.extrude/main.c
Log:
enforce DB_C_TYPE_DOUBLE for SQLite backend
Modified: grass/trunk/vector/v.extrude/main.c
===================================================================
--- grass/trunk/vector/v.extrude/main.c 2012-01-25 11:08:38 UTC (rev 50436)
+++ grass/trunk/vector/v.extrude/main.c 2012-01-25 11:08:40 UTC (rev 50437)
@@ -222,11 +222,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