Nyall Dawson
b9356eacd6
Avoid some unnecessary label index construction
...
The pal library was originally designed so that features would be
registered once and used across multiple map redraws. We don't utilise
that, and we are gauranteed that all registered features and obstacles
already fall within the desired map boundary.
2019-12-10 18:28:11 +10:00
Nyall Dawson
25988ffbca
Don't try to build genericspatialindex test on windows
...
Can't find the magic formula to make msvc happy here!
2019-12-10 18:28:11 +10:00
Nyall Dawson
6ab265873f
Add test masks
2019-12-10 18:28:11 +10:00
Nyall Dawson
b0dc935568
Use a report for selective mask tests, try to make tests stable
2019-12-10 18:28:11 +10:00
Nyall Dawson
02f883f111
More test updates
2019-12-10 18:28:11 +10:00
Nyall Dawson
4a6b6bd533
Test updates
2019-12-10 18:28:11 +10:00
Nyall Dawson
0517da1116
More test image updates
2019-12-10 18:28:11 +10:00
Nyall Dawson
25db33cc8e
Update some label reference images
2019-12-10 18:28:11 +10:00
Nyall Dawson
7935b2e848
Avoid recursive index calls
2019-12-10 18:28:11 +10:00
Nyall Dawson
036266519d
Don't use a recursive mutex
...
Earlier versions of libspatialindex on linux had their own internal
(non-recursive) mutex, so to behavior consistent across different environments
we need to ensure we can survive without a non-recursive external mutex
2019-12-10 18:28:11 +10:00
Nyall Dawson
ef15d76917
Spelling
2019-12-10 18:28:11 +10:00
Nyall Dawson
56bab7860e
Unit tests for QgsGenericSpatialIndex
2019-12-10 18:28:11 +10:00
Nyall Dawson
e521829621
Stop fighting with templates and take the shortcut approach
2019-12-10 18:28:11 +10:00
Nyall Dawson
c4a28a25fb
Dox++
2019-12-10 18:28:11 +10:00
Nyall Dawson
fb5aa9bcea
Avoid ugly const casts
2019-12-10 18:28:11 +10:00
Nyall Dawson
3ae1b27299
Dox, nicer naming
2019-12-10 18:28:11 +10:00
Nyall Dawson
d804de0e82
Remove dead code
2019-12-10 18:28:11 +10:00
Nyall Dawson
a66e575798
Simplify code and remove dead code
2019-12-10 18:28:11 +10:00
Nyall Dawson
617defd247
Simplify code
2019-12-10 18:28:11 +10:00
Nyall Dawson
e28ad5a998
Simplify code
2019-12-10 18:28:11 +10:00
Nyall Dawson
f7d937dd69
Drop some more unused pal code
2019-12-10 18:28:11 +10:00
Nyall Dawson
d15c9e73b0
Death to pal::RTree
2019-12-10 18:28:11 +10:00
Nyall Dawson
f9a3d0589a
Remove last use of pal::RTree
2019-12-10 18:28:11 +10:00
Nyall Dawson
727a4da01f
More pal::rtree swaps
2019-12-10 18:28:11 +10:00
Nyall Dawson
94306655b7
More pal::rtree -> QgsGenericSpatialIndex ports
2019-12-10 18:28:11 +10:00
Nyall Dawson
7bbc727d9a
Start on QgsGenericSpatialIndex to replace pal rtree with libspatialindex based backend
2019-12-10 18:28:11 +10:00
Nyall Dawson
69844ec896
Start moving some spatial index related functions to QgsSpatialIndexUtils
2019-12-10 18:28:11 +10:00
Nyall Dawson
358e466517
Fix dox
2019-12-10 13:05:04 +10:00
Nyall Dawson
3aabafc2b9
Make the GPS information dock a stacked panel
...
Allows the color and symbol settings to open inline instead of as
blocking dialogs
2019-12-10 13:05:04 +10:00
Nyall Dawson
e262056148
[FEATURE][gps] Allow showing a bearing line from the GPS location
...
pointed in the GPS's direction
Allows users to view a "current path" directional line as they
navigate using a GPS
2019-12-10 13:05:04 +10:00
Nyall Dawson
9356cd8552
New map canvas item QgsGpsBearingItem, for showing a bearing line originating from the GPS location
2019-12-10 13:05:04 +10:00
Nyall Dawson
12e0b0e990
Add QgsMapCanvasLineSymbolItem for drawing QgsLineSymbols as map canvas items
2019-12-10 13:05:04 +10:00
Nyall Dawson
e0fb896ee9
Minor refactor of QgsPointMarkerItem
2019-12-10 13:05:04 +10:00
Nyall Dawson
6ee49072b4
[feature][gps] Add option to auto-rotate the map canvas to match
...
the GPS heading
When enabled, the map canvas will automatically rotate so that it's
oriented in the same direction as the GPS bearing
2019-12-10 13:05:04 +10:00
Nyall Dawson
5ea5bc438d
[mesh] Fix jump on uninitialized value, causing flaky test
2019-12-10 12:39:53 +10:00
Nyall Dawson
ce5841c847
[mesh] Add an angry comment, fix memory leak
2019-12-10 12:39:53 +10:00
Nyall Dawson
7381a2574e
[processing] Add another hash to grass imagery tests
...
This one seems to come up occasionally on Travis
2019-12-10 10:53:08 +10:00
Markus Neteler
f497cf4f41
v.to.rast: fix va -> val
2019-12-10 08:17:48 +10:00
Alessandro Pasotti
929aa0ae39
Merge pull request #33304 from elpaso/bugfix-gh33203-take2
...
Collapse double slashes in URLs regardless of Qt version
2019-12-09 17:53:23 +01:00
Alessandro Pasotti
473a807922
Collapse double slashes in URLs regardless of Qt version
2019-12-09 15:57:46 +01:00
Hugo Mercier
ac958dec89
[postgres] Speed up array parsing ( fixes #33226 ) ( #33227 )
2019-12-09 10:44:33 +01:00
Matthias Kuhn
099c62d744
Merge pull request #33282 from m-kuhn/legend_marker_symbol_field_dependent
...
When DD rotation fails to evaluate, fallback to static value
2019-12-09 09:01:08 +01:00
Nyall Dawson
c1280a595f
Fix memory leak
2019-12-09 13:54:19 +10:00
Nyall Dawson
2b195e9450
Fix ui build warning
2019-12-09 08:46:30 +10:00
Matthias Kuhn
baded30eb7
Add test for preview rotation fallback
2019-12-08 17:58:32 +01:00
Matthias Kuhn
f57da9604b
Merge pull request #33278 from m-kuhn/invalid_layers
...
Fix some warnings on invalid layers
2019-12-08 16:54:54 +01:00
Alessandro Pasotti
1730cf9a70
Merge pull request #33265 from elpaso/bugfix-gh33057-gpkg-windows-storage
...
Attempt to fix Windows GPKG project storage
2019-12-08 15:58:07 +01:00
Matthias Kuhn
c1bbe2fd28
Fix data defined rotation detection
2019-12-08 15:02:58 +01:00
Matthias Kuhn
348d2169eb
When DD rotation fails to evaluate, fallback to static value
...
The old behavior was to always fall back to 0 in case of a failing expression. Which made it hard to create a proper legend in some cases.
E.g. if you had two symbol layers with the following expressions for their rotation
"orientation"
And
90 + "orientation"
which would be two orthogonal symbol layers (e.g. denote a right angle), rotated by an orientation field.
Now in the legend (and symbol preview), both layers would be shown with a rotation of 0, because there is no associated feature with a field orientation.
The new behavior is to fallback to the static, configured values which makes it very intuitive to configure the legend for these cases.
2019-12-08 15:02:58 +01:00
Matthias Kuhn
fc5c95c28b
Merge pull request #33279 from m-kuhn/sandboxed_expression_mode
...
Fail expression evaluation if missing field is referenced
2019-12-08 14:42:52 +01:00