[GRASS-SVN] r51034 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 11 11:27:08 EDT 2012


Author: martinl
Date: 2012-03-11 08:27:08 -0700 (Sun, 11 Mar 2012)
New Revision: 51034

Modified:
   grass/trunk/lib/vector/Vlib/close.c
Log:
vlib: force to write out sidx when closing the map


Modified: grass/trunk/lib/vector/Vlib/close.c
===================================================================
--- grass/trunk/lib/vector/Vlib/close.c	2012-03-11 14:04:22 UTC (rev 51033)
+++ grass/trunk/lib/vector/Vlib/close.c	2012-03-11 15:27:08 UTC (rev 51034)
@@ -72,8 +72,7 @@
 {
     struct Coor_info CInfo;
 
-    G_debug(1,
-	    "Vect_close(): name = %s, mapset = %s, format = %d, level = %d",
+    G_debug(1, "Vect_close(): name = %s, mapset = %s, format = %d, level = %d",
 	    Map->name, Map->mapset, Map->format, Map->level);
 
     /* Store support files for vector maps in the current mapsset if
@@ -110,12 +109,16 @@
 	Map->plus.coor_size = CInfo.size;
 	Map->plus.coor_mtime = CInfo.mtime;
 
+	/* write out topo file */
 	Vect_save_topo(Map);
 
+	/* write out sidx file */
+	Map->plus.Spidx_new = TRUE;
 	Vect_save_sidx(Map);
 
+	/* write out cidx file */
 	Vect_cidx_save(Map);
-
+	
 	/* write out fidx file */
 	if (Map->format == GV_FORMAT_OGR)
 	    V2_close_ogr(Map);



More information about the grass-commit mailing list