[GRASS-SVN] r52251 - grass/trunk/lib/vector/diglib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 28 09:09:09 PDT 2012
Author: mmetz
Date: 2012-06-28 09:09:07 -0700 (Thu, 28 Jun 2012)
New Revision: 52251
Modified:
grass/trunk/lib/vector/diglib/spindex_rw.c
Log:
diglib: fix rtree_load_to_memory()
Modified: grass/trunk/lib/vector/diglib/spindex_rw.c
===================================================================
--- grass/trunk/lib/vector/diglib/spindex_rw.c 2012-06-28 16:07:54 UTC (rev 52250)
+++ grass/trunk/lib/vector/diglib/spindex_rw.c 2012-06-28 16:09:07 UTC (rev 52251)
@@ -1000,13 +1000,7 @@
newnode = RTreeNewNode(t, s[top].sn.level);
/* copy from stack node */
- newnode->level = s[top].sn.level;
- newnode->count = s[top].sn.count;
- maxcard = s[top].sn.level ? t->nodecard : t->leafcard;
- for (j = 0; j < maxcard; j++) {
- newnode->branch[j].rect = s[top].sn.branch[j].rect;
- newnode->branch[j].child = s[top].sn.branch[j].child;
- }
+ RTreeCopyNode(newnode, &(s[top].sn), t);
top--;
/* update child of parent node
More information about the grass-commit
mailing list