[GRASS-SVN] r39559 - grass/trunk/db/drivers/ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 18 09:30:40 EDT 2009


Author: martinl
Date: 2009-10-18 09:30:40 -0400 (Sun, 18 Oct 2009)
New Revision: 39559

Modified:
   grass/trunk/db/drivers/ogr/describe.c
Log:
more debug info for ogr driver


Modified: grass/trunk/db/drivers/ogr/describe.c
===================================================================
--- grass/trunk/db/drivers/ogr/describe.c	2009-10-18 11:47:43 UTC (rev 39558)
+++ grass/trunk/db/drivers/ogr/describe.c	2009-10-18 13:30:40 UTC (rev 39559)
@@ -14,13 +14,15 @@
 *   	    	for details.
 *
 *****************************************************************************/
+
+#include <grass/gis.h>
+#include <grass/datetime.h>
 #include <grass/dbmi.h>
-#include <grass/datetime.h>
-#include <grass/gis.h>
+#include <grass/glocale.h>
+
 #include "ogr_api.h"
 #include "globals.h"
 #include "proto.h"
-#include <grass/glocale.h>
 
 int db__driver_describe_table(dbString * table_name, dbTable ** table)
 {
@@ -130,9 +132,6 @@
 	ogrType = OGR_Fld_GetType(hFieldDefn);
 	fieldName = OGR_Fld_GetNameRef(hFieldDefn);
 
-	G_debug(3, "field %d : ogrType = %d, name = %s", i, ogrType,
-		fieldName);
-
 	switch (ogrType) {
 	case OFTInteger:
 	    sqlType = DB_SQL_TYPE_INTEGER;
@@ -162,6 +161,9 @@
 	    break;
 	}
 
+	G_debug(3, "field %d : ogrType = %d, name = %s, size=%d precision=%d",
+		i, ogrType, fieldName, size, precision);
+
 	column = db_get_table_column(*table, i);
 
 	db_set_column_host_type(column, ogrType);



More information about the grass-commit mailing list