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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 19 09:15:17 EDT 2009


Author: martinl
Date: 2009-05-19 09:15:16 -0400 (Tue, 19 May 2009)
New Revision: 37281

Modified:
   grass/trunk/vector/v.select/main.c
Log:
v.select: build spatial index

Modified: grass/trunk/vector/v.select/main.c
===================================================================
--- grass/trunk/vector/v.select/main.c	2009-05-19 13:12:35 UTC (rev 37280)
+++ grass/trunk/vector/v.select/main.c	2009-05-19 13:15:16 UTC (rev 37281)
@@ -216,6 +216,10 @@
     /* Alloc space for input lines array */
     ALines = (int *)G_calloc(nalines + 1, sizeof(int));
 
+    G_message(_("Building spatial index..."));
+    Vect_build_spatial_index(&In[0]);
+    Vect_build_spatial_index(&In[1]);
+
     /* Lines in A. Go through all lines and mark those that meets condition */
     if (itype[0] & (GV_POINTS | GV_LINES)) {
 	G_message(_("Processing features..."));



More information about the grass-commit mailing list