| OLD | NEW |
| 1 # 2008 Feb 19 | 1 # 2008 Feb 19 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #*********************************************************************** | 10 #*********************************************************************** |
| 11 # | 11 # |
| 12 # This file contains Tcl code that may be useful for testing or | 12 # This file contains Tcl code that may be useful for testing or |
| 13 # analyzing r-tree structures created with this module. It is | 13 # analyzing r-tree structures created with this module. It is |
| 14 # used by both test procedures and the r-tree viewer application. | 14 # used by both test procedures and the r-tree viewer application. |
| 15 # | 15 # |
| 16 # $Id: rtree_util.tcl,v 1.1 2008/05/26 18:41:54 danielk1977 Exp $ | |
| 17 # | |
| 18 | 16 |
| 19 | 17 |
| 20 #-------------------------------------------------------------------------- | 18 #-------------------------------------------------------------------------- |
| 21 # PUBLIC API: | 19 # PUBLIC API: |
| 22 # | 20 # |
| 23 # rtree_depth | 21 # rtree_depth |
| 24 # rtree_ndim | 22 # rtree_ndim |
| 25 # rtree_node | 23 # rtree_node |
| 26 # rtree_mincells | 24 # rtree_mincells |
| 27 # rtree_check | 25 # rtree_check |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 append ret [rtree_nodetreedump $db $zTab "$zIndent " [expr $iDepth-1] $i] | 183 append ret [rtree_nodetreedump $db $zTab "$zIndent " [expr $iDepth-1] $i] |
| 186 } | 184 } |
| 187 } | 185 } |
| 188 set ret | 186 set ret |
| 189 } | 187 } |
| 190 | 188 |
| 191 proc rtree_treedump {db zTab} { | 189 proc rtree_treedump {db zTab} { |
| 192 set d [rtree_depth $db $zTab] | 190 set d [rtree_depth $db $zTab] |
| 193 rtree_nodetreedump $db $zTab "" $d 1 | 191 rtree_nodetreedump $db $zTab "" $d 1 |
| 194 } | 192 } |
| 195 | |
| OLD | NEW |