48347 Commits

Author SHA1 Message Date
Nyall Dawson
f0f5211ff5 Add reclassify by table algorithm 2018-06-13 14:54:40 +10:00
Nyall Dawson
3c8f80d1e6 Unit tests for list based contains 2018-06-13 14:54:40 +10:00
Nyall Dawson
a69274ac6d Add contains check to QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
d435a7a0fb Add bounds type handling to QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
efb44ad8e6 Fix equality test for QgsRasterRange when min/max is nan 2018-06-13 14:54:40 +10:00
Nyall Dawson
e14862e3fe Tests for QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
a2042a4ace Expose a method to Python 2018-06-13 14:54:40 +10:00
Nyall Dawson
0ab63274f6 Documentation for QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
ef81f3c5c6 [FEATURE] Native reclassify raster algorithms
Adds two new native QGIS raster reclassification algorithms:

- Reclassify by layer: reclassifies a raster using the ranges
specified via min/max/value fields from a vector table

- Reclassify by table: reclassifies a raster using a fixed
table entered by users in the algorithm dialog

Sponsored by SMEC/SJ
2018-06-13 14:54:40 +10:00
Alessandro Pasotti
4d3ff9a5c7
Merge pull request #7227 from elpaso/locale-make-overrideable
Use default QLocale instead of system
2018-06-12 19:19:36 +02:00
Alessandro Pasotti
e9520311fb Use default QLocale instead of system
no effect for now, but it makes the locale override
possible through QLocale::setDefault()
2018-06-12 15:19:24 +02:00
Alessandro Pasotti
dc651b6314
Merge pull request #7220 from elpaso/bugfix-19096-DD-symbol-preview
[bugfix] Clear all DD props before creating symbol preview
2018-06-12 11:51:06 +02:00
nirvn
f1397f8439 [processing] fix geometry by expression algorithm geometryless input 2018-06-12 19:02:34 +10:00
Alessandro Pasotti
4e37f381de
Merge pull request #7188 from elpaso/locale-formatting
[bugfix] Fix double precision I/O in form widgets
2018-06-12 08:32:52 +02:00
Denis Rouzaud
e899849def
Merge pull request #7199 from 3nids/vertex_tool
vertex tool fixes
2018-06-11 19:12:15 -08:00
Denis Rouzaud
5cb86be6a2 rename some arguments and variables 2018-06-11 23:11:03 -04:00
Luigi Pirelli
f4065d8aed
Merge pull request #6647 from luipir/certs_not_removed_with_pki_postgis_on_win_port3
Certs not removed with pki postgis on win port3
2018-06-12 00:11:03 +02:00
Matthias Kuhn
55672237b8
Merge pull request #7150 from rouault/fix_plugin_login
Plugin loading: only load .so files on Linux
2018-06-11 18:52:23 +02:00
Alessandro Pasotti
d98c14a519
Merge pull request #7221 from elpaso/load-qgz
[bugfix] Also load .qgz files
2018-06-11 15:20:27 +02:00
Alessandro Pasotti
bf2542e8ea Also load .qgz files 2018-06-11 14:45:40 +02:00
Alessandro Pasotti
9fc87aab7f [bugfix] Clear all DD props before creating symbol preview
Fixes #19096 - Applying a data defined size to a categorized layer hides its category symbol in the layers panel and legend
2018-06-11 14:16:35 +02:00
nirvn
d1fa1508c0 followup 5c267f2: apply @wonder-sk 's comments 2018-06-11 18:23:51 +07:00
Nyall Dawson
03151f880c Embed Layers Dialog UI fixes
- Use a QgsFileWidget
- Disable OK button when no layers are selected
2018-06-11 20:42:20 +10:00
Nyall Dawson
6ea79e34d5 Ignore model font style and color in embed layers dialog
And always show layers in standard font and colors. Otherwise
they inherit the styling of the standard layer tree model,
which means unchecked layers show in a "disabled" looking
style, which is misleading (and meaningless) for the embedded
layer choice.
2018-06-11 20:42:20 +10:00
Ismail Sunni
a9b25ed9f0 Add missing include to make it buildable in MacOS. 2018-06-11 20:03:08 +10:00
Nyall Dawson
0038273ee1 Add new embedded indicator icon courtesy of @nirvn 2018-06-11 19:16:00 +10:00
Nyall Dawson
7b1861e473 Memory safety 2018-06-11 19:16:00 +10:00
Nyall Dawson
b3ef029498 Also show embedded indicators for groups 2018-06-11 19:16:00 +10:00
Nyall Dawson
093071856f [needs-docs] Don't show embedded layers in italics
Since the new indicator shows this in a better, less
visually noisy, way.
2018-06-11 19:16:00 +10:00
Nyall Dawson
f633bbcbc0 [needs-docs] Use an indicator icon for embedded layers
The previous approach of showing these layers with italic
text is not obvious for users to understand, and the
interface gives little clues as to why a layer cannot
be edited. There's also no way to see what project
a layer has been embedded from!

So use a new indicator icon in the layer tree to
flag embedded layers, with a tooltip showing the path
to the embedded project location.
2018-06-11 19:16:00 +10:00
Nyall Dawson
404f07d4c0 Remove foreach, initialize pointer 2018-06-11 19:16:00 +10:00
Mathieu Pellerin
0a325f1eda
Avoid signalling repaint / data signals when a setSubsetString doesn't actually change (#7217)
Behavior across providers harmonized & test added.
2018-06-11 15:52:23 +07:00
Matthias Kuhn
6e3ee46414
Merge pull request #7206 from m-kuhn/fix18380
Fix loading layers within embedded groups
2018-06-11 10:31:33 +02:00
Alessandro Pasotti
d9afb899a0 [bugfix] Fix Z&M edition. Fix double conversion from locale.
Mnually Cherry-picked from 0ba36acf93353ff177f4e149215dbee8b9d5d78d
2018-06-11 07:19:45 +02:00
Nyall Dawson
4e084b63c4 [processing] Fix exception when browsing for folder in processing
options for multiple folder settings
2018-06-11 15:16:11 +10:00
nirvn
b7502b82d4 More use of QgsLayerStyleOverride 2018-06-11 12:00:16 +07:00
nirvn
d62c34af0e Use QgsLayerStyleOverride in QgsMapHitTest::runHitTestLayer 2018-06-11 12:00:16 +07:00
nirvn
5c267f22fb Create a QgsLayerStyleOverride and use it for the job renderer 2018-06-11 12:00:16 +07:00
nirvn
5ba1e91d21 [map themes] fix map renderer ignore theme blend and transparency layer settings 2018-06-11 12:00:16 +07:00
Nyall Dawson
ce6ea18280 Dox and indentation updates 2018-06-11 12:55:20 +10:00
Nyall Dawson
a3d6b9899b Refined tests for QgsProject::transactionGroup() 2018-06-11 12:55:20 +10:00
Nyall Dawson
798408b6ba Silence a clazy warning 2018-06-11 12:55:20 +10:00
Nyall Dawson
3b89ee07ce Update dox, bindings 2018-06-11 12:55:20 +10:00
C. Marcel
b88c2f42ea Add QgsProject::transactionGroup() available & with Python bindings. 2018-06-11 12:55:20 +10:00
Nyall Dawson
590b3806a5 Fix failing test 2018-06-11 12:40:26 +10:00
Denis Rouzaud
a98e7a141a add test to ensure scale lock is respected on canvas resize 2018-06-11 12:40:26 +10:00
Alessandro Pasotti
85b9d37fa8 Use QLocale to parse string representation of numbers
Because we now might have thousand separators, also
fixes the NULL issue reported by DelazJ.

Comes with many test cases.
2018-06-10 16:30:20 +02:00
Alessandro Pasotti
2872665365
Merge pull request #7211 from elpaso/bugfix-19145-legend-crash
[bugfix] Do not crash when removing a layout legend item
2018-06-09 18:43:47 +02:00
Alessandro Pasotti
cb3eb96138 Fix test, because we only accept comma for compatible locales 2018-06-09 18:42:25 +02:00
Alessandro Pasotti
bf810e9c50 Check if conversion was successful before passing to locale 2018-06-09 18:42:14 +02:00