[GRASS-SVN] r50435 -
grass/branches/releasebranch_6_4/vector/v.extrude
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 25 06:07:44 EST 2012
Author: neteler
Date: 2012-01-25 03:07:44 -0800 (Wed, 25 Jan 2012)
New Revision: 50435
Modified:
grass/branches/releasebranch_6_4/vector/v.extrude/main.c
Log:
enforce DB_C_TYPE_DOUBLE for SQLite backend
Modified: grass/branches/releasebranch_6_4/vector/v.extrude/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.extrude/main.c 2012-01-25 07:44:33 UTC (rev 50434)
+++ grass/branches/releasebranch_6_4/vector/v.extrude/main.c 2012-01-25 11:07:44 UTC (rev 50435)
@@ -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