QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgspointlocatorinittask.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointlocatorinittask.cpp
3
--------------------------------------
4
Date : September 2019
5
Copyright : (C) 2019 by Julien Cabieces
6
Email : julien dot cabieces at oslandia dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgspointlocatorinittask.h
"
17
18
#include "
qgspointlocator.h
"
19
#include "
qgsvectorlayer.h
"
20
21
#include "moc_qgspointlocatorinittask.cpp"
22
24
25
QgsPointLocatorInitTask::QgsPointLocatorInitTask(
QgsPointLocator
*loc )
26
:
QgsTask
( tr(
"Indexing %1"
).arg( loc->layer()->id() ),
QgsTask
::Silent )
27
, mLoc( loc )
28
{}
29
30
bool
QgsPointLocatorInitTask::isBuildOK()
const
31
{
32
return
mBuildOK;
33
}
34
35
bool
QgsPointLocatorInitTask::run()
36
{
37
mBuildOK = mLoc->rebuildIndex();
38
return
true
;
39
}
40
QgsPointLocator
Defines the interface for querying point locations.
Definition
qgspointlocator.h:107
QgsTask
Abstract base class for long running background tasks.
Definition
qgstaskmanager.h:55
qgspointlocator.h
qgspointlocatorinittask.h
qgsvectorlayer.h
Generated on
for QGIS API Documentation by
1.17.0