Registry / utility / libspatialindex

libspatialindex

JSON →
library2.1.0vcpkgunverified

C++ implementation of R*-tree, MVR-tree, and TPR-tree spatial indexing with a C API.

vcpkg install libspatialindex
INSTALL
IMPORT
SIG · LIBSPATIALINDEX
L
libspatialindex
utilitycppv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

spatialindex/SpatialIndex.h
#include <spatialindex/SpatialIndex.h>

Create an R*-tree and insert a region

#include <spatialindex/SpatialIndex.h> #include <iostream> using namespace SpatialIndex; int main() { IStorageManager *disk = StorageManager::createNewDiskStorageManager("test", 4096); StorageManager::IBuffer *file = StorageManager::createNewRandomEvictionsBuffer(*disk, 10, false); id_type indexId; ISpatialIndex *tree = RTree::createNewRTree(*file, 0.7, 100, 100, 2, SpatialIndex::RTree::RV_RSTAR, indexId); double plow[] = {0.0, 0.0}, phigh[] = {1.0, 1.0}; Region r(plow, phigh, 2); id_type id; tree->insertData(0, nullptr, r, id); std::cout << "Inserted region with id " << id << std::endl; delete tree; delete file; delete disk; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

libspatialindex — pip install libspatialindex · libregistry