[GRASS-SVN] r58333 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 29 09:28:50 PST 2013
Author: martinl
Date: 2013-11-29 09:28:50 -0800 (Fri, 29 Nov 2013)
New Revision: 58333
Modified:
grass/trunk/lib/vector/Vlib/build_pg.c
Log:
vlib/pg: force GV_BUILD_NONE level when cache is empty
Modified: grass/trunk/lib/vector/Vlib/build_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build_pg.c 2013-11-29 13:58:05 UTC (rev 58332)
+++ grass/trunk/lib/vector/Vlib/build_pg.c 2013-11-29 17:28:50 UTC (rev 58333)
@@ -184,6 +184,12 @@
}
}
+ if (plus->built >= GV_BUILD_BASE &&
+ pg_info->cache.lines_num < 1) {
+ /* features are not cached, build from scratch */
+ Vect_build_partial(Map, GV_BUILD_NONE);
+ }
+
if (plus->built < GV_BUILD_BASE) {
/* force loading nodes from DB to get up-to-date node
* offsets, see write_nodes() for details */
More information about the grass-commit
mailing list