[GRASS-SVN] r64672 - grass/trunk/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 17 14:45:01 PST 2015


Author: mmetz
Date: 2015-02-17 14:45:00 -0800 (Tue, 17 Feb 2015)
New Revision: 64672

Modified:
   grass/trunk/vector/v.to.db/query.c
Log:
v.to.db: add comment for query option, suspected wrong handling of no category

Modified: grass/trunk/vector/v.to.db/query.c
===================================================================
--- grass/trunk/vector/v.to.db/query.c	2015-02-17 22:43:13 UTC (rev 64671)
+++ grass/trunk/vector/v.to.db/query.c	2015-02-17 22:45:00 UTC (rev 64672)
@@ -104,6 +104,7 @@
 
 	/* Skip if cat is zero and large number of query categories (many features without category).
 	 * It would cause problems on server side and take long time. Postgres limit is 10000 */
+	/* TODO: verify because no category is encoded as cat = -1, not cat = zero */
 	if (Values[i].cat == 0 && Values[i].nqcats > 1000) {
 	    G_warning(_("Query for category '0' (no category) was not executed because of too many "
 		       "(%d) query categories. All later reported values for cat 0 are not valid."),



More information about the grass-commit mailing list