47274 Commits

Author SHA1 Message Date
Nyall Dawson
36432191ee [processing][gdal] Clip Vector By Mask Layer requires both
layers to have the same CRS
2018-05-02 04:55:01 +10:00
Nyall Dawson
2233bd44f9 Fix stats dock handling when refresh is clicked lots of times quickly 2018-05-02 04:54:37 +10:00
Nyall Dawson
8961ac447e Prevent tasks from spamming progress reports
Doing so grinds the QGIS to a halt, yet often progress
reports are being sent every feature (which results
in thousands of 0.00001 progress increment reports
for large layers!!)
2018-05-02 04:54:37 +10:00
Nyall Dawson
350200dffc Fix crash when unloading multiple layers from a project
The stats dock was holding onto a dangling pointer whenever
the statistics gathering task was canceled. This meant that
the next time the stats dock tried to start a calculation,
it would try to cancel the dangling task pointer and crash.
2018-05-02 04:54:37 +10:00
Matthias Kuhn
f1aaa144ff
Merge pull request #6863 from m-kuhn/selectedfeaturedeletecount
Show feature count and layer when asking for delete confirmation
2018-05-01 12:57:47 +02:00
Nyall Dawson
9ff366ff0f Fix memory leak
Code looks valid, but valgrind is reporting a leak here. In any
case Qt docs suggest not to use addAction and parent the
actions to the QActionGroup instead, so let's do that (and
it solves the reported leak)
2018-05-01 20:31:57 +10:00
Nyall Dawson
b6832916d7 Fix crash on exit
Because the map canvas is destroyed before the project instance,
and QgsProject emits the labelingEngineSettingsChange signal
during its destructor, the lambda slot was getting executed
with a dangling map canvas pointer.

Correctly set the receiver in the lambda connection instead
so that the connection gets destroyed along with the canvas.
2018-05-01 20:31:57 +10:00
Matthias Kuhn
41bf860ad3 One deletes from, not on 2018-05-01 10:11:21 +02:00
Harrissou Sant-anna
46f867cef4 Use QCoreApplication.translate() instead 2018-05-01 17:58:01 +10:00
Harrissou Sant-anna
8088659c43 More details on Processing algorithms toolbar 2018-05-01 17:58:01 +10:00
Martin Dobias
3b36cdd170
Merge pull request #6750 from lbartoletti/visibleSnapPerf
[BUGFIX][FEATURE][NEEDS-DOCS] Disable snapping on invisible features. Second version
2018-05-01 09:46:59 +02:00
Nyall Dawson
cec59c0c39 Shutup more annoying Qt warnings 2018-05-01 17:39:21 +10:00
Nyall Dawson
0449874c08 Silence annoying 'appendChild() on a null node does nothing' warning 2018-05-01 14:54:29 +10:00
nirvn
9d9955e272 [processing] improve eliminate selected polygons alg help
i.e., the use only selected option is gone since 3.0
2018-05-01 10:43:13 +07:00
Mathieu Pellerin
39c6e23c08
[needs-docs][processing] add help and clarity to the define current projection algorithm 2018-05-01 10:14:08 +07:00
Nyall Dawson
3228654e5b [diagrams] Fix bar width maximum is too small for map unit sizes
Fixes #18791
2018-05-01 11:24:56 +10:00
Nyall Dawson
16106b8cfa [processing] More verbose error when unsupported SAGA version found 2018-05-01 09:18:03 +10:00
Nathan Woodrow
27714fc5a1 [expression] Show expected arg count if wrong args passed 2018-05-01 08:20:11 +10:00
Juergen E. Fischer
dcde8eee01 update INSTALL (run scripts/scandeps.pl, integrate ce34646cf, make
t2tdoc)
2018-04-30 22:42:08 +02:00
Nyall Dawson
6ca327072a [FEATURE] Add expression functions for tapered and variable
width buffers

Adds:
- tapered_buffer
- buffer_by_m

expression functions. These expose the same functionality as the
equivalent processing algorithms but for use in expressions
such as geometry generators.
2018-05-01 06:16:01 +10:00
Nyall Dawson
9ffae600f4 [FEATURE] Variable width buffers
Adds geometry methods to create variable width buffers, including
tapered buffers (with a specified start and end diameter) and
variable width buffers from line string m values.

Also adds processing algorithms which expose these methods
to processing.
2018-05-01 06:16:01 +10:00
Nyall Dawson
2d3d6a8b83 [afs] Fix handling of date/datetime field values 2018-05-01 06:15:22 +10:00
Loïc Bartoletti
9f3d571155 clean tests and add a new test for snapping on inivisble feature 2018-04-30 17:02:47 +02:00
Blottiere Paul
1104721923
Merge pull request #6892 from pblottiere/bugfix_attrform
Fixes crash when deleting last field from attribute table
2018-04-30 14:19:52 +01:00
nirvn
fca5238847 [processing] replace define current projection with reproject layer in vector menu 2018-04-30 16:50:34 +07:00
nirvn
57b3c58d06 [processing] add some missing icons for the data management tools menu 2018-04-30 16:50:34 +07:00
nirvn
2402b35a67 [processing] add missing icons for the analysis tools menu 2018-04-30 16:50:34 +07:00
nirvn
df28351386 [processing] add missing icons for the geometry tools menu 2018-04-30 16:50:34 +07:00
Blottiere Paul
9ecb0b275e Fixes crash when deleting last field from attribute table 2018-04-30 10:24:53 +01:00
Loïc Bartoletti
68f463e34d Improve onFeatureAdded and onAttributeValueChanged 2018-04-30 10:50:04 +02:00
Matthias Kuhn
84bdd47eba
Merge pull request #6886 from m-kuhn/snapperdocs
Remove QgsSnapper API change docs. It is ✝
2018-04-30 08:24:47 +02:00
Nyall Dawson
cad0f3d5b7 [processing] Throw warning when menu item links are broken 2018-04-30 16:07:13 +10:00
nirvn
3bfc93d95b [processing] fix grass provider svg path 2018-04-30 13:04:20 +07:00
nirvn
08db66fb03 [processing] draw vector icons when available in modeler 2018-04-30 13:04:20 +07:00
nirvn
1370a5cd99 [processing] add vector icons for geoprocessing tools menu 2018-04-30 12:39:02 +07:00
nirvn
f8a3de45bf [processing] fix some native algorithm IDs for menu items 2018-04-30 12:39:02 +07:00
Nyall Dawson
5017e94b38 Fix crash when opening vector properties on geometryless layer 2018-04-30 15:31:20 +10:00
Matthias Kuhn
aa44334ede
Merge pull request #6880 from daniviga/rpm-f27
Update RPM spec since GRASS 7.4 has been backported to F27
2018-04-29 19:56:14 +02:00
Matthias Kuhn
9a85616731 Remove QgsSnapper API change docs. It is ✝ 2018-04-29 07:59:47 +02:00
Matthias Kuhn
f4c00f5316
Merge pull request #6883 from m-kuhn/removeUnrequiredSemicolons
Remove unrequired `;` semicolons
2018-04-29 07:50:39 +02:00
Tom Elwertowski
d3a9fad429 macOS needs path to GEOS framework 2018-04-29 06:09:03 +10:00
Matthias Kuhn
01dd718afb Remove unrequired ; semicolons 2018-04-28 12:57:13 +02:00
Matthias Kuhn
4aaa652dce
Merge pull request #6870 from m-kuhn/offlineediting_zm
[FEATURE] Offline editing support for Z and M coordinates
2018-04-28 11:33:18 +02:00
Nyall Dawson
c1552e728a [processing] Add createByDefault argument to destination parameter
constructors

Allows this setting to be set for parameters created from
description text files
2018-04-28 05:51:07 +10:00
Nyall Dawson
c314639e00 [processing] More stringent testing of parameter validity
- Check static QgsProperty parameter values
- Properly check QgsProcessingFeatureSourceDefinition and
QgsProcessingOutputLayerDefinition values
2018-04-28 05:50:47 +10:00
Nyall Dawson
e25fd4c90b [processing] Use info logging instead of warning logging for non-warnings 2018-04-28 05:50:47 +10:00
Nyall Dawson
249dca7830 [processing] Consist helpful error messages when sinks cannot be created
And throw exceptions always when sinks are not created to avoid
generic errors
2018-04-28 05:50:47 +10:00
Nyall Dawson
5339d62715 [processing] More helpful errors when sources cannot be loaded
Include descriptive text with the specified parameter value
in error, and always check that sources were loaded to avoid
raw Python exceptions when they are not
2018-04-28 05:50:47 +10:00
Nyall Dawson
199af26048 Fix some warnings 2018-04-28 05:50:47 +10:00
Daniele Viganò
5f11692cbe Update RPM spec since GRASS 7.4 has been backported to F27 2018-04-27 19:29:40 +02:00