浏览代码

dbdriver(pg): silently skip geometry columns (print debug message, not a warning), useful when a map is linked directly using PG data provider

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51098 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
b17a267b21
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      db/drivers/postgres/describe.c

+ 2 - 3
db/drivers/postgres/describe.c

@@ -109,9 +109,8 @@ int describe_table(PGresult * res, dbTable ** table, cursor * c)
 	/* 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 {