Knowledge Base Article
KB10279 - What is the R-Tree file and how can it be used?
R-Tree is a spatial index file used in TatukGIS products to dramatically increase the speed of spatial operations relating to the viewing of very large vector map files (hundreds of megabytes) at relatively closer zoom levels. When a selected layer contains vector data with binary representation, such as SHP, TAB, and DGN data, upon opening, the DK will try (if R-Tree is enabled) to create an R-Tree index file - *.rtree - for future use. In an event that the R-Tree file creation is not possible, such as in the case of a read-only situation, the index file is created in-memory. In-memory R-Tree files are also created for any other vector coverages, such as TGIS_LayerVector, TGIS_LayerMIF, TGIS_LayerDXF, but not for SQL-based geodatabase layers (because this would be meaningless for SQL layers). The use of the index file speeds up most map viewing operations in most situations. For situations when R-tree indexing is not required, this feature can be easily turned off within the layer properties.
To enable r-tree: layer.useRTree := True ; after attaching the layer to the viewer.
To disable r-tree: layer.UseRTtree := False; after attaching the layer to the viewer.
When R-Tree is enabled, the optimal enabling level is calculated internally.
In the event that the R-tree file is corrupted for some reason, the *.rtree file can be safely deleted. The index will then be reactivated automatically.
Created: 2005-09-14, Modified: 2009-07-11
|