[GRASS-SVN] r58393 - grass/trunk/vector/v.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 5 10:41:39 PST 2013
Author: martinl
Date: 2013-12-05 10:41:39 -0800 (Thu, 05 Dec 2013)
New Revision: 58393
Modified:
grass/trunk/vector/v.out.ogr/main.c
Log:
v.out.ogr: enable creating empty OGR layers
Modified: grass/trunk/vector/v.out.ogr/main.c
===================================================================
--- grass/trunk/vector/v.out.ogr/main.c 2013-12-05 18:34:25 UTC (rev 58392)
+++ grass/trunk/vector/v.out.ogr/main.c 2013-12-05 18:41:39 UTC (rev 58393)
@@ -177,8 +177,9 @@
}
}
- if (num_types == 0)
- G_fatal_error(_("Unable to determine input map's vector feature type(s)."));
+ if (num_types == 0) {
+ G_warning(_("Unable to determine input map's vector feature type(s)."));
+ }
}
}
@@ -388,12 +389,6 @@
G_debug(1, "Requested to export %d features", num_to_export);
- if (num_to_export < 1) {
- G_warning(_("Nothing to export"));
- exit(EXIT_SUCCESS);
- }
-
-
/* Open OGR DSN */
G_debug(2, "driver count = %d", OGRGetDriverCount());
drn = -1;
More information about the grass-commit
mailing list