libspatialindex

C++ spatialindex library: loading/storing main memory RTree from/to disk

雨燕双飞 提交于 2020-01-06 08:18:25
问题 I have created a main memory R* index with the help of spatialindex library in the following way (DBStream implements the interface for bulkLoading) // creating a main memory RTree memStorage = StorageManager::createNewMemoryStorageManager(); size_t capacity = 1024; bool bWriteThrough = false; fileInMem = StorageManager ::createNewRandomEvictionsBuffer(*memStorage, capacity, bWriteThrough); DBStream dstream(streets); tree = RTree::createAndBulkLoadNewRTree(SpatialIndex::RTree::BLM_STR,

(Re)loading the R Tree with spatialindex library

℡╲_俬逩灬. 提交于 2019-12-23 02:00:37
问题 I am bulkloading an R Tree with spatialindex (http://libspatialindex.github.com/) library: string baseName = "streets"; size_t capacity = 10 * 1024 * 1024; bool bWriteThrough = false; indexIdentifier = 0; IStorageManager *disk = StorageManager::createNewDiskStorageManager(baseName, 512); fileInMem = StorageManager ::createNewRandomEvictionsBuffer(*disk, capacity, bWriteThrough); // bulkLoads my tree bulkLoadRTree(); cout << "tree info:" << endl; cout << *tree << endl; delete disk; The

(Re)loading the R Tree with spatialindex library

巧了我就是萌 提交于 2019-12-08 11:31:28
I am bulkloading an R Tree with spatialindex (http://libspatialindex.github.com/) library: string baseName = "streets"; size_t capacity = 10 * 1024 * 1024; bool bWriteThrough = false; indexIdentifier = 0; IStorageManager *disk = StorageManager::createNewDiskStorageManager(baseName, 512); fileInMem = StorageManager ::createNewRandomEvictionsBuffer(*disk, capacity, bWriteThrough); // bulkLoads my tree bulkLoadRTree(); cout << "tree info:" << endl; cout << *tree << endl; delete disk; The following is output at the info about the built tree: Dimension: 2 Fill factor: 0.7 Index capacity: 100 Leaf