10018 Commits

Author SHA1 Message Date
Nyall Dawson
a48c146916 Fix vector file formats show in processing options for raster output
extension (fix #16894)
2017-07-26 10:22:57 +10:00
Nyall Dawson
a95cbe9d2f Move 'Run as batch' button to bottom of algorithm dialog
Inserting it into the tab widget doesn't work well cross
platform/between hidpi/lowdpi displays. So instead add
it as a normal button in the button box.

Also fix capitalization of button text

Fixes #16767
2017-07-26 09:45:27 +10:00
Nyall Dawson
383422f069 Fix "wrapped object has been deleted" errors in Processing
Ownership of Python subclass algorithm instances was getting
mangled due to passing through multiple functions with /Factory/
annotations.

As per Phil Thomson's advice on
https://www.riverbankcomputing.com/pipermail/pyqt/2017-July/039450.html:
"
/Factory/ is used when the instance returned is guaranteed to be
new to Python. In this case it isn't because it has already been
seen when being returned by createInstance(). (However for a different
sub-class implemented in C++ then it would be the first time it was seen
by Python so the /Factory/ on create() would be correct.)

You might try using /TransferBack/ on create() instead - that might be
the best compromise.
"

Changing to /TransferBack/ indeed fixes the error for me.
2017-07-26 07:03:16 +10:00
Hugo Mercier
1b9c5be10d Merge pull request #4839 from pblottiere/joinconstraints
[FEATURE] Constraints are resolved for joined fields
2017-07-25 16:36:21 +02:00
volaya
c5371b64cb added new SAGA descriptions
(cherry picked from commit a3bb3f13902638ee38f85c25c57d68b34b33bfbc)
2017-07-25 14:01:06 +03:00
Alexander Bruy
30be72210c Merge pull request #4916 from NaturalGIS/master_fix_saga_cluster_analysis
[processing] fix SAGA cluster analysis for rasters
2017-07-25 08:21:57 +03:00
Mathieu Pellerin
778e84ba7b [FEATURE] Add copy to clipboard function to save as image (#4914)
Sponsored by Andreas Neumann.
2017-07-25 08:50:03 +07:00
Giovanni Manghi
ecd2c650ca master: fix SAGA cluster analysis for rasters 2017-07-24 14:56:41 +01:00
Blottiere Paul
0dca126c55 Update sip binding 2017-07-24 14:45:46 +01:00
Denis Rouzaud
33071f4720 fix doxymentation 2017-07-24 13:44:25 +02:00
Nyall Dawson
d055def2d1 Merge pull request #4907 from nyalldawson/symbol_button
New QgsSymbolButton widget
2017-07-24 20:29:14 +10:00
Denis Rouzaud
db745df4a4 fix indentation 2017-07-24 11:36:38 +02:00
Denis Rouzaud
500175b8e8 remove QgsScrollAreaWidgetPlugin from custom widgets
it had to be removed form the widget list in uic plugin. It might be better to provide the real list of implemented widgets rather than the full gui list.

fixes #16428
2017-07-24 10:45:42 +02:00
Nyall Dawson
78b05c1a7f Allow copying and pasting symbols between QgsSymbolButtons 2017-07-24 16:57:30 +10:00
Alexander Bruy
c440ade2d8 [processing] remove Z/M addition from "random" algorithms 2017-07-24 09:20:47 +03:00
Alexander Bruy
c7645a3884 [processing] port Random points along lines 2017-07-24 09:20:47 +03:00
Alexander Bruy
f8b0c06942 [processing] port Random points in polygons 2017-07-24 09:20:47 +03:00
Alexander Bruy
ae2e32b36e [processing] restore Random points in layer bounds 2017-07-24 09:20:47 +03:00
Alexander Bruy
eb9f45cbb0 [processing] port Random points within extent 2017-07-24 09:20:47 +03:00
Denis Rouzaud
2723f4f199 remove duplicate method
followup 391712d2d42a761acb4bacce81cbe9ed8da52f6b
2017-07-24 07:30:48 +02:00
Nathan Woodrow
391712d2d4 Always log message bar messages to message log
Mainly so they don't just disappear on the user
2017-07-24 15:19:07 +10:00
Nathan Woodrow
12c634cef3 Load default profile name from global
Also adds overrideLocalProfile to ignore local profiles.ini file
2017-07-24 14:52:10 +10:00
Nathan Woodrow
e37f682cca Also load profiles-path from global settings 2017-07-24 14:20:09 +10:00
Nathan Woodrow
7b92f1f1e4 [FEATURE] Add user profiles.
All user settings/plugins, etc are now loaded from APPDATA for each
platform and no longer .qgis3 and are isolated from each other.
 This allows for different profiles depending on what the user of QGIS
needs, e.g test, prod, demo, etc

Profile menu allows for switching between profiles, or creating new
ones.
2017-07-24 13:20:01 +10:00
Nyall Dawson
15f3bbf9c8 Add some missing /Factory/ annotations 2017-07-24 13:02:20 +10:00
Nyall Dawson
e304662a4f Use standard QgsUnitTypes::RenderUnit throughout labeling
Instead of duplicate labeling specific unit enum, reuse
the QgsUnitTypes::RenderUnit enum in labeling.

This brings several improvements, including:
- label offset/distance/repeat units now works correctly
in all available unit types (inc pixels, map unit meters,
points, inches, etc)
- less duplicate code
- labeling can use the robust QgsRenderContext methods for
converting between different units and painter coordinates

Also change comments for members to doxygen comments, so
that these get included in the API docs.
2017-07-24 11:18:30 +10:00
Nyall Dawson
46f6f83fb9 Port some symbol buttons across to QgsSymbolButton
- composer shape style button (no other composer ones for now- they're
all getting removed with layouts anyway)
- point cluster/displacement renderer buttons
2017-07-24 11:07:55 +10:00
Nyall Dawson
22c4740f63 [FEATURE] New standard widget for symbol buttons
Button widgets for configuring symbol properties were reimplemented
multiple times throughout the codebase. This commit creates a new
standard QgsSymbolButton widget which should be used whenever
a button for configuring symbol properties is required.

Features include:
- automatic use of inline panels whenever possible
- dropdown menu with shortcuts to color settings, copy/pasting colors
- accepts drag and dropped colors to set symbol color
2017-07-24 11:07:55 +10:00
Nyall Dawson
faa4a09ed0 Merge pull request #4877 from nyalldawson/layout_next
Layouts, chapter II
2017-07-24 08:42:51 +10:00
Nyall Dawson
99bf32bafb Fix crash in displacement/distance renderers
Individual symbol instances were being rendered multiple times
concurrently
2017-07-23 17:21:52 +10:00
Juergen E. Fischer
90fa6c2e91 sub layer dialog: sort by layer id and feature count numerically (fixes #16917) 2017-07-22 13:41:20 +02:00
Giovanni Manghi
dfc9285121 master: fix SAGA LTR mosaiking tool 2017-07-21 14:42:14 +01:00
Nyall Dawson
38c8268400 Allow setting width/height spin boxes to link to QgsRatioLockButton
When set, these spin boxes will automatically be updated when their
accompanying spin box changes value so that the ratio is maintained.
2017-07-21 14:20:45 +10:00
Nyall Dawson
eb5ac44b27 Update test 2017-07-21 11:28:43 +10:00
Giovanni Manghi
5e03f579d1 mater: fix SAGA LTR Catchement Area tools 2017-07-20 12:15:09 +01:00
Nyall Dawson
96cf6612d3 Port geometry by expression to new API 2017-07-20 15:28:50 +10:00
Nyall Dawson
c0669d4fd2 Port extend lines to new API 2017-07-20 15:28:50 +10:00
Nyall Dawson
1cac3bb635 Port single sided buffer to new API 2017-07-20 15:28:50 +10:00
Nyall Dawson
4a935c1090 Resurrect Translate algorithm 2017-07-20 15:28:50 +10:00
Nyall Dawson
d4af76150f Flip some more algorithms to feature based algorithms 2017-07-20 15:28:50 +10:00
Sandro Santilli
9efd666e48 Test that PostGIS query can be passed as both unicode and string literal
See https://issues.qgis.org/issues/16833
2017-07-19 19:05:39 +02:00
Sandro Santilli
2a572be73e Add test for #16833
Tested to pass with Python 2.7.13
2017-07-19 16:48:36 +02:00
Mathieu Pellerin
0665072d94 [FEATURE] Locked aspect ratio state for Save as image/PDF" (#4880)
Sponsored by Andreas Neumann.
2017-07-19 15:04:52 +07:00
rldhont
08c06def1b Merge pull request #4846 from rldhont/server-wms-configparser-getfeatureinfo
[Server] WMS GetFeatureInfo refactoring
2017-07-19 10:00:01 +02:00
Juergen E. Fischer
4f9a9e0360 s/( )/()/; s/== /== /; s/!= /!= /; 2017-07-19 09:19:37 +02:00
Nyall Dawson
857f8437d1 Merge pull request #4873 from nyalldawson/processing_feature_alg
Add QgsProcessingFeatureBasedAlgorithm subclass
2017-07-19 05:31:30 +10:00
Nyall Dawson
11cfc78a24 Skip invalid returned features 2017-07-18 22:13:50 +10:00
Alessandro Pasotti
0b263f9ac6 Merge pull request #4737 from boundlessgeo/browser-sync
[bugfix] Sync the browser connections when changed from the select dialogs
2017-07-18 13:27:32 +02:00
Mathieu Pellerin
6acd326a8f [FEATURE] Draw extent onto canvas in save as image/PDF dialog (#4878) 2017-07-18 18:13:52 +07:00
Alessandro Pasotti
bd925cd648 Rebase and partially revert 9bae83275368
All signals are now in the base class, even if only
a subset of available providers actually emits them.

This way we can handle all source select dialogs
the same way, regardless if they are vector, DB
or raster (or others).
2017-07-18 12:15:57 +02:00