58145 Commits

Author SHA1 Message Date
Nyall Dawson
e534463719 Readd accidentally removed Page Properties action 2019-09-27 11:35:13 +10:00
Nyall Dawson
f5c21a0fbd Optimize QgsContrastEnhancementFunction
Allow some methods to be inlined, and precalculate maximum/minimum values
possible instead of recalculating them for every pixel
2019-09-27 08:21:26 +10:00
Alessandro Pasotti
d730c97f46 Fix multiple raster calc issues
Fixes #32023 Raster calculator change sign does not work when OpenCL is on
Fixes #32025 QGIS Raster Calculator outputs nodata only rasters

Bonus: three new operators with full test coverage
- ABS
- MIN
- MAX
2019-09-26 18:26:25 +02:00
Nyall Dawson
f32d6fdcf2 [processing] Highlight row_number variable in batch expression editor 2019-09-26 20:46:38 +10:00
Nyall Dawson
e6ecfdd39b [layouts] Prevent removal of the last remaining page in a layout 2019-09-26 20:43:21 +10:00
Nyall Dawson
b784d69828 [layouts] Fix crash when exporting layout with no pages 2019-09-26 20:43:21 +10:00
Alessandro Pasotti
880de7f364 Update snapping GUI units when canvas CRS changes
Fixes #31961
2019-09-26 12:16:44 +02:00
Nyall Dawson
3610620fe7 Discard fid columns when exporting features for geopdf documents
Otherwise we run into issues with duplicate fids or incompatible
fid field types due to the geopackage format used as a temporary
store of the rendered features.

Fixes failure to create GeoPDF documents in some circumstances.
2019-09-26 16:00:37 +10:00
Nyall Dawson
fdb9b97f4e Don't report successful geopdf creation when it wasn't successful 2019-09-26 16:00:37 +10:00
Nyall Dawson
1355c1fbd2 Tweak legend symbol variable help 2019-09-26 14:49:36 +10:00
Nyall Dawson
962ac268c4 Highlight legend variables in expression editor 2019-09-26 14:49:36 +10:00
Alex
d58f84871d remove label input in layer expression 2019-09-26 13:11:53 +10:00
Nyall Dawson
95e0b9be94 Add missing file 2019-09-26 12:41:04 +10:00
Nyall Dawson
b9310ca47b Spelling 2019-09-26 12:41:04 +10:00
Nyall Dawson
1f033fe83d Fix some more conditional formatting panel high dpi issues 2019-09-26 12:41:04 +10:00
Nyall Dawson
72efc1edde Fix loss of font setting when editing conditional format 2019-09-26 12:41:04 +10:00
Nyall Dawson
a8d145a80a Use a proper panel widget for conditional formatting configuration widget
Fixes a number of UI issues, including poor hi-dpi compatibility.
2019-09-26 12:41:04 +10:00
Nyall Dawson
b9b690caac Remember splitter width for conditional formatting panel in attribute table 2019-09-26 12:41:04 +10:00
nirvn
85d2cb042d Use QStringLiteral() when building the about version string 2019-09-26 09:07:46 +07:00
Nyall Dawson
aefbf66272 Avoid overflow in QgsImageOperation 2019-09-26 10:03:08 +10:00
Nyall Dawson
651c507180 [processing] Extend api for retrieving a layer in a compatible format
A few releases ago a bug fix was implemented which forced conversions
of multi-layer sources. This was a valid bug fix, but the consequence
was that any algorithm using this api with a source file containing
multiple layers (e.g. gpkg) performed a complete copy of the target
layer to a new file, severely impacting performance.

This commit adds new API to retrieve a compatible layer path in the
case when an algorithm CAN correctly handle specific target layer names.
In this case, the forced copy of the source layer is avoided when
using multi-layer inputs like geopackage.
2019-09-26 09:27:46 +10:00
Nyall Dawson
b3f9ce1c26 Don't generate moc for header without qobject 2019-09-26 09:05:22 +10:00
Nyall Dawson
57ee33ed71 Add missing file 2019-09-26 09:05:22 +10:00
Nyall Dawson
374fce65a1 Fix indentation of qgsvectorlayer.cpp 2019-09-26 09:05:22 +10:00
nirvn
a26834076f [decoration] Fix north arrow decoration rotation not saved/restored 2019-09-25 16:42:12 +07:00
nirvn
c97b087620 [ui] Avoid hard-coded white background for north arrow / image decoration preview 2019-09-25 16:42:12 +07:00
nirvn
fb8b1f553d followup e90b25b: translation fix 2019-09-25 16:35:22 +07:00
nirvn
cb9dd24a50 Harmonize provider description string
- Remove ogr/gdal version info from ogr provider description
- Add 'data' to gdal provider description
2019-09-25 16:12:11 +07:00
nirvn
e90b25b0b4 Add active python/provider plugins in the about dialog
This extra information is added with the hope it'll add
value to issues reporting when people are pasting the
content of the about dialog's text box.

Specifically, it'll allow people reviewing newly filed
issues to know whether 3rd-party plugins were active or
not without the need of asking: "did you deactivate
plugins?".
2019-09-25 16:12:11 +07:00
Nyall Dawson
bccd5a4610 Fix conditional styles in feature list view do not update when
the layer's conditional styles are changed
2019-09-25 16:55:33 +10:00
Nyall Dawson
5f7264d4d1 Fix broken display of conditional styles in feature list view
While the model was correctly returning the right values for the
font/color/decoration roles, these were not being utilised by
the delegate and had no impact on the rendering of the list.
2019-09-25 16:55:33 +10:00
Nyall Dawson
c15c727189 Fix conditional style compression incorrect considers invalid
styles as valid objects

Results in invalid conditional style settings being returned
for a feature in some circumstances
2019-09-25 16:55:33 +10:00
Nyall Dawson
bc82cffd85 Use invalid colors, not transparent colors, to indict not set colors
in QgsConditionalStyle

Otherwise we can't differentiate a "not set" value from a "set but
transparent" value. And this use case is exactly why invalid QColor
states exist.
2019-09-25 16:55:33 +10:00
Nyall Dawson
93b6b71b3f Astyle 2019-09-25 16:55:33 +10:00
Nyall Dawson
b1ee295a95 Make QgsConditionalLayerStyles a QObject
and add a "changed" signal to it, so that we can tell when the
layer's conditional styles change
2019-09-25 16:55:33 +10:00
Nyall Dawson
d43834e999 Add equality operator for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Nyall Dawson
5fa81fb8f2 Add a __repr__ method for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Matthias Kuhn
96dd42b150
Merge pull request #30972 from qgis/3nids-patch-1
Fix virtual fields that use functions requiring all attributes
2019-09-25 08:25:01 +02:00
nirvn
95fc1a1f6c [ui] Insure symbol widgets are enabled only when grid decoration is enabled
(fixes #31946)
2019-09-25 10:25:01 +07:00
Mathieu Pellerin
f21d7fafee [ui] Insure color widgets are enabled only when image decoration enabled
(fixes #31962)
2019-09-25 10:25:01 +07:00
Nyall Dawson
61bfced6a7 [labeling] When an extreme number of features are being labeled from
a single layer, place additional limits on the maximum number of
labeling candidates to generate for features in this layer

Helps avoid extreme labeling times (e.g. on my test project with
some 3000 point features being registered for labeling, the labeling
time cuts from 30 seconds to 3 seconds). There should be no loss
in quality here either, given that the labeling placement solution
for any map with this many labels is always going to be quasi-random
anyway (and is likely never going to be a cartographic masterpiece....)
2019-09-25 11:14:07 +10:00
Nyall Dawson
2f17a3ceee Identation 2019-09-25 11:07:26 +10:00
Nyall Dawson
6d67f01a4a Revert "[ASTYLE] increase max-instatement-indent to get nicer alignments on multilines"
This reverts commit 0e994fda020352a579b2ca73b94665899d7bf862.

Breaks travis on many PRs -- requires a bulk astyle update to accompany the PR
2019-09-25 11:07:26 +10:00
Nyall Dawson
b4550dc4c0 [layouts] Fix incorrect alignment of items when the align or distribute
tools are used with items with a non-top-left reference point

Fixes #31900
2019-09-25 04:31:36 +10:00
Nyall Dawson
6e2c7311bb Add Python __repr__ for QgsLayoutPoint, QgsLayoutSize, QgsLayoutMeasurement 2019-09-25 04:31:36 +10:00
nirvn
531e1b0715 [categorized][graduated] Handle categorized<->graduated renderer conversion
(fixes #31633)
2019-09-24 20:08:47 +07:00
Denis Rouzaud
f21e03c5ef
Merge pull request #31963 from 3nids/fix_bool_attrtable
fix false boolean not shown as so in attribute table
2019-09-24 14:31:45 +02:00
Alexander Bruy
4df50691bc
Merge pull request #31901 from alexbruy/fix-29336
[processing] correctly handle case when layer source is not a plain path (fix #29336)
2019-09-24 15:03:43 +03:00
Denis Rouzaud
3ee9cd7186 fix test 2019-09-24 13:09:22 +02:00
Denis Rouzaud
f4a05fd578 add code description 2019-09-24 09:28:03 +02:00