[GRASS-SVN] r45103 -
grass/branches/releasebranch_6_4/vector/v.transform
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 20 11:06:02 EST 2011
Author: martinl
Date: 2011-01-20 08:06:02 -0800 (Thu, 20 Jan 2011)
New Revision: 45103
Modified:
grass/branches/releasebranch_6_4/vector/v.transform/main.c
Log:
v.transform: fix dim of output vector map
(merge r45102 from devbr6)
Modified: grass/branches/releasebranch_6_4/vector/v.transform/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.transform/main.c 2011-01-20 16:03:20 UTC (rev 45102)
+++ grass/branches/releasebranch_6_4/vector/v.transform/main.c 2011-01-20 16:06:02 UTC (rev 45103)
@@ -242,9 +242,11 @@
G_fatal_error(_("Vector map <%s> not found"), vold->answer);
Vect_open_old(&Old, vold->answer, mapset);
-
- Vect_open_new(&New, vnew->answer, Vect_is_3d(&Old) || zshift->answer);
-
+
+ Vect_open_new(&New, vnew->answer, Vect_is_3d(&Old) || tozero_flag->answer ||
+ strcmp(zshift->answer, "0.0") || strcmp(zscale->answer, "1.0") ||
+ strcmp(zrot->answer, "0.0") ? WITH_Z : WITHOUT_Z);
+
/* copy and set header */
Vect_copy_head_data(&Old, &New);
More information about the grass-commit
mailing list