Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2b6517c0
Commit
2b6517c0
authored
Jan 24, 2017
by
Gus Grubba
Browse files
Optimize SQL set creation.
parent
f1b82fb9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/QtLocationPlugin/QGCTileCacheWorker.cpp
View file @
2b6517c0
...
...
@@ -454,6 +454,7 @@ QGCCacheWorker::_createTileSet(QGCMapTask *mtask)
task
->
tileSet
()
->
setId
(
setID
);
//-- Prepare Download List
quint64
tileCount
=
0
;
_db
->
transaction
();
for
(
int
z
=
task
->
tileSet
()
->
minZoom
();
z
<=
task
->
tileSet
()
->
maxZoom
();
z
++
)
{
QGCTileSet
set
=
QGCMapEngine
::
getTileCount
(
z
,
task
->
tileSet
()
->
topleftLon
(),
task
->
tileSet
()
->
topleftLat
(),
...
...
@@ -493,6 +494,7 @@ QGCCacheWorker::_createTileSet(QGCMapTask *mtask)
}
}
}
_db
->
commit
();
//-- Done
_updateSetTotals
(
task
->
tileSet
());
task
->
setTileSetSaved
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment