mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
Fix a crash during rebuildIndex() operation
This commit is contained in:
parent
685eef779f
commit
e97b2da2a6
@ -1160,8 +1160,15 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex )
|
||||
}
|
||||
|
||||
QgsPointLocator_Stream stream( dataList );
|
||||
mRTree.reset( RTree::createAndBulkLoadNewRTree( RTree::BLM_STR, stream, *mStorage, fillFactor, indexCapacity,
|
||||
try {
|
||||
mRTree.reset( RTree::createAndBulkLoadNewRTree( RTree::BLM_STR, stream, *mStorage, fillFactor, indexCapacity,
|
||||
leafCapacity, dimension, variant, indexId ) );
|
||||
} catch (const std::exception& e) {
|
||||
QgsDebugError(QStringLiteral("An exception has occurred during the creation of RTree: %1").arg(e.what()));
|
||||
destroyIndex();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if ( ctx && mRenderer )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user