[GRASS-SVN] r67756 - grass/trunk/vector/v.net
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 7 04:09:03 PST 2016
Author: turek
Date: 2016-02-07 04:09:03 -0800 (Sun, 07 Feb 2016)
New Revision: 67756
Modified:
grass/trunk/vector/v.net/turntable.c
Log:
v.net operation=turntable: fix for turntable name if output map is given with mapset name
Modified: grass/trunk/vector/v.net/turntable.c
===================================================================
--- grass/trunk/vector/v.net/turntable.c 2016-02-07 11:59:16 UTC (rev 67755)
+++ grass/trunk/vector/v.net/turntable.c 2016-02-07 12:09:03 UTC (rev 67756)
@@ -637,6 +637,12 @@
G_fatal_error(_("Unable to open vector map <%s>."),
opt->input->answer);
}
+
+ if (Vect_open_new(&OutMap, opt->output->answer, WITHOUT_Z) < 1) {
+ G_fatal_error(_("Unable to create vector map <%s>."),
+ opt->output->answer);
+ }
+
Vect_set_error_handler_io(&InMap, &OutMap);
type = Vect_option_to_types(opt->type);
@@ -661,14 +667,9 @@
ttb_name = NULL;
G_asprintf(&ttb_name, "%s_turntable_t_%s_tuc_%s_a_%s",
- opt->output->answer, opt->tfield->answer,
+ Vect_get_name(&OutMap), opt->tfield->answer,
opt->tucfield->answer, opt->afield_opt->answer);
- if (Vect_open_new(&OutMap, opt->output->answer, WITHOUT_Z) < 1) {
- G_fatal_error(_("Unable to create vector map <%s>."),
- opt->output->answer);
- }
-
/*Use database and driver as layer with lowest number,
if the layer is not present use def settings. */
field_num = -1;
More information about the grass-commit
mailing list