[GRASS-SVN] r45441 -
grass/branches/releasebranch_6_4/vector/v.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 20 14:33:01 EST 2011
Author: mmetz
Date: 2011-02-20 11:33:01 -0800 (Sun, 20 Feb 2011)
New Revision: 45441
Modified:
grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c
Log:
also export attributes if multiple features share the same cat (backport from trunk r45439)
Modified: grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c 2011-02-20 19:31:33 UTC (rev 45440)
+++ grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c 2011-02-20 19:33:01 UTC (rev 45441)
@@ -957,6 +957,13 @@
if (db_fetch(&cursor, DB_NEXT, &more) != DB_OK)
G_fatal_error(_("Unable to fetch data from table"));
if (!more) {
+ /* start from the beginning in case multiple grass vector features
+ * share the same category */
+ if (db_fetch(&cursor, DB_NEXT, &more) != DB_OK)
+ G_fatal_error(_("Unable to fetch data from table"));
+ }
+
+ if (!more) {
/* G_warning ("No database record for cat = %d", cat); */
/* Set at least key column to category */
if (!nocat) {
More information about the grass-commit
mailing list