[GRASS-SVN] r48968 - grass/trunk/vector/v.build
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 27 12:32:11 EDT 2011
Author: martinl
Date: 2011-10-27 09:32:10 -0700 (Thu, 27 Oct 2011)
New Revision: 48968
Modified:
grass/trunk/vector/v.build/main.c
Log:
v.build: cannot support direct read access to OGR layers
Modified: grass/trunk/vector/v.build/main.c
===================================================================
--- grass/trunk/vector/v.build/main.c 2011-10-27 15:51:46 UTC (rev 48967)
+++ grass/trunk/vector/v.build/main.c 2011-10-27 16:32:10 UTC (rev 48968)
@@ -39,7 +39,9 @@
module->description = _("Creates topology for vector map.");
map_opt = G_define_standard_option(G_OPT_V_MAP);
-
+ map_opt->label = NULL;
+ map_opt->description = _("Name of vector map");
+
err_opt = G_define_standard_option(G_OPT_V_OUTPUT);
err_opt->key = "error";
err_opt->description =
@@ -84,6 +86,11 @@
/* build topology */
if (build) {
if (G_name_is_fully_qualified(map_opt->answer, xname, xmapset)) {
+ if (0 == G_strcasecmp(xmapset, "OGR")) {
+ G_fatal_error(_("Direct read access to OGR layers is not supported by this module. "
+ "Run %s to create a link as GRASS vector map in the current mapset."),
+ "'v.external'");
+ }
if (0 != strcmp(xmapset, G_mapset())) {
G_fatal_error(_("Vector map <%s> is not in current mapset"),
map_opt->answer);
More information about the grass-commit
mailing list