[GRASS-SVN] r46562 - grass/trunk/vector/v.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 4 03:18:33 EDT 2011
Author: mmetz
Date: 2011-06-04 00:18:33 -0700 (Sat, 04 Jun 2011)
New Revision: 46562
Modified:
grass/trunk/vector/v.out.ogr/attrb.c
Log:
clean up attribute export
Modified: grass/trunk/vector/v.out.ogr/attrb.c
===================================================================
--- grass/trunk/vector/v.out.ogr/attrb.c 2011-06-03 18:29:08 UTC (rev 46561)
+++ grass/trunk/vector/v.out.ogr/attrb.c 2011-06-04 07:18:33 UTC (rev 46562)
@@ -44,12 +44,6 @@
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); */
@@ -86,7 +80,7 @@
(Column));
G_debug(2, " column = %s -> fieldnum = %d",
db_get_column_name(Column), ogrfieldnum);
-
+
if (ogrfieldnum < 0) {
G_debug(4, "Could not get OGR field number for column %s",
db_get_column_name(Column));
More information about the grass-commit
mailing list