[GRASS-SVN] r51098 - grass/trunk/db/drivers/postgres

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 17 16:54:03 EDT 2012


Author: martinl
Date: 2012-03-17 13:54:03 -0700 (Sat, 17 Mar 2012)
New Revision: 51098

Modified:
   grass/trunk/db/drivers/postgres/describe.c
Log:
dbdriver(pg): silently skip geometry columns (print debug message, not a warning), useful when a map is linked directly using PG data provider


Modified: grass/trunk/db/drivers/postgres/describe.c
===================================================================
--- grass/trunk/db/drivers/postgres/describe.c	2012-03-17 20:47:28 UTC (rev 51097)
+++ grass/trunk/db/drivers/postgres/describe.c	2012-03-17 20:54:03 UTC (rev 51098)
@@ -109,9 +109,8 @@
 	/* PG types defined in globals.h (and pg_type.h) */
 	if (sqltype == DB_SQL_TYPE_UNKNOWN) {
 	    if (gpgtype == PG_TYPE_POSTGIS_GEOM) {
-		G_warning(_("PostgreSQL driver: PostGIS column '%s', type 'geometry' "
-			    "will not be converted"),
-			  fname);
+		G_debug(1, "PostgreSQL driver: PostGIS column '%s', type 'geometry' "
+			"will not be converted", fname);
 		continue;
 	    }
 	    else {



More information about the grass-commit mailing list