Nyall Dawson
a49edf1f25
[processing] Make minimum distance between points in "Random Points in polygon"
...
algorithm optional
And don't do any unnecessary index work when it's not set. Shaves roughly 1/3rd
off the time of algorithm execution.
2019-09-30 16:58:15 +10:00
Andrea Giudiceandrea
7903889f54
Modeler: Set default action to Export as Script Algorithm
...
otherwise the button tooltip is not shown
2019-09-30 09:48:30 +10:00
Nyall Dawson
86c83537f9
[layouts] Update map settings variables in UI when map extent/rotation changes
...
Fixes #24136
2019-09-28 08:40:41 +10:00
Nyall Dawson
1afdd935cf
[layouts] Fix layout variables set programmatically do not show in GUI
...
Fixes #28837
2019-09-28 08:40:41 +10:00
Nyall Dawson
2b31e03ad0
[layouts] Ensure variable panels are updated when layout or atlas
...
properties change
Fixes #26402
2019-09-28 08:40:41 +10:00
Alessandro Pasotti
860d0201ef
Merge pull request #32026 from elpaso/rastercalculator-multiple-bugs-and-new-operators
...
[needs-docs] Fix multiple raster calc issues (+ new operators)
2019-09-27 19:18:20 +02:00
nirvn
aef6cd417b
[locator] Fix crash when all layer features locator searching against an invalid layer
2019-09-27 18:22:29 +07:00
Alessandro Pasotti
e59c1134d7
Code layout
2019-09-27 11:48:06 +02:00
Denis Rouzaud
abb08c2988
[locator] allow to trigger locator search from the API ( #32017 )
2019-09-27 09:58:47 +02:00
Denis Rouzaud
c88e82af1a
rename QgsLayerTreeRegistryBridge.InsertionPoint.parent to group ( #32031 )
...
because I find it confusing to do insertionPoint.parent.insertLayer
insertionPoint.group.insertLayer
2019-09-27 09:58:27 +02:00
Harrissou Sant-anna
f75a0cc4da
Various fixes on date functions help
...
including replacement of todate and tointerval, use of third person
conjugation and addition/fix of examples
2019-09-27 17:44:11 +10:00
Alessandro Pasotti
33fe400abf
Update tests/src/analysis/testqgsrastercalculator.cpp
...
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-09-27 08:56:07 +02:00
Alessandro Pasotti
36bfb04add
Update src/analysis/raster/qgsrastermatrix.cpp
...
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-09-27 08:55:59 +02:00
Nyall Dawson
45e847ef69
[layouts][needs-docs] Move page background setting to a per-page option
...
The UI for this setting was sitting under the page properties panel,
which led users to believe it was a per-page setting (rather than
applying to ALL pages in the layout).
Instead, move this property to sit within individual layout item pages
so that the behavior matches what the UI suggests.
Fixes #25695
2019-09-27 15:17:36 +10:00
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
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