[GRASS-SVN] r45102 - grass/branches/develbranch_6/vector/v.transform
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 20 11:03:20 EST 2011
Author: martinl
Date: 2011-01-20 08:03:20 -0800 (Thu, 20 Jan 2011)
New Revision: 45102
Modified:
grass/branches/develbranch_6/vector/v.transform/main.c
Log:
v.transform: fix dim of output vector map
Modified: grass/branches/develbranch_6/vector/v.transform/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.transform/main.c 2011-01-20 15:56:45 UTC (rev 45101)
+++ grass/branches/develbranch_6/vector/v.transform/main.c 2011-01-20 16:03:20 UTC (rev 45102)
@@ -248,9 +248,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