[GRASS-SVN] r48936 - grass/trunk/vector/v.select

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 25 11:00:08 EDT 2011


Author: martinl
Date: 2011-10-25 08:00:08 -0700 (Tue, 25 Oct 2011)
New Revision: 48936

Modified:
   grass/trunk/vector/v.select/main.c
Log:
v.select: update for direct read access


Modified: grass/trunk/vector/v.select/main.c
===================================================================
--- grass/trunk/vector/v.select/main.c	2011-10-25 13:37:19 UTC (rev 48935)
+++ grass/trunk/vector/v.select/main.c	2011-10-25 15:00:08 UTC (rev 48936)
@@ -88,13 +88,13 @@
     
     for (iopt = 0; iopt < 2; iopt++) {
 	itype[iopt] = Vect_option_to_types(parm.type[iopt]);
-	ifield[iopt] = atoi(parm.field[iopt]->answer);
 
 	Vect_check_input_output_name(parm.input[iopt]->answer, parm.output->answer,
 				     GV_FATAL_EXIT);
 
 	Vect_set_open_level(2);
-	Vect_open_old(&(In[iopt]), parm.input[iopt]->answer, "");
+	Vect_open_old2(&(In[iopt]), parm.input[iopt]->answer, "", parm.field[iopt]->answer);
+	ifield[iopt] = Vect_get_field_number(&(In[iopt]), parm.field[iopt]->answer);
     }
 
     /* Alloc space for input lines array */



More information about the grass-commit mailing list