[GRASS-SVN] r41337 - grass/trunk/vector/v.split

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 7 15:18:21 EST 2010


Author: martinl
Date: 2010-03-07 15:18:21 -0500 (Sun, 07 Mar 2010)
New Revision: 41337

Modified:
   grass/trunk/vector/v.split/main.c
Log:
be more precise in testing if input is 3d


Modified: grass/trunk/vector/v.split/main.c
===================================================================
--- grass/trunk/vector/v.split/main.c	2010-03-07 20:16:17 UTC (rev 41336)
+++ grass/trunk/vector/v.split/main.c	2010-03-07 20:18:21 UTC (rev 41337)
@@ -83,7 +83,7 @@
     Vect_open_old2(&In, in_opt->answer, "", layer_opt->answer);
     layer = Vect_get_field_number(&In, layer_opt->answer);
     
-    Vect_open_new(&Out, out_opt->answer, Vect_is_3d(&In));
+    Vect_open_new(&Out, out_opt->answer, Vect_is_3d(&In) ? WITH_Z : WITHOUT_Z);
     
     Vect_copy_head_data(&In, &Out);
     Vect_hist_copy(&In, &Out);



More information about the grass-commit mailing list