11983 Commits

Author SHA1 Message Date
Nyall Dawson
bf19eb6f35 [processing] Non-filed based outputs (e.g. postgis, geopackage)
options should be available for certain model outputs and script
algorithm outputs

We do this by swapping the test for non-file based output support
from checking only the algorithm's provider to instead checking
on a parameter-by-parameter basis.

This is done in order to support models. For models, depending
on what child algorithm a model output is based off, an individual
model may or may not have support for non-file based outputs. E.g
a model may generate outputs from a native qgis alg (supporting
these outputs) AND an output from a GDAL alg (with no support
for these outputs). In this case we need to enable or disable
the ui controls for non-file based outputs on an individual
output basis.

For scripts (for now) we blindly just say all outputs support
non-file based formats. This is going to be the case most of
the time, since scripts will usually be written using PyQGIS
API. For the exceptions (e.g. scripts which call other algs
like GDAL algs) we probably should add some way for the script
to indicate whether an individual output supports this, but
for now we just say they all do.

Fixes #17949
2018-01-25 15:47:42 +11:00
Nyall Dawson
975ef8e899 Show field type in tooltip in attribute table header 2018-01-25 11:35:54 +11:00
Denis Rouzaud
0e7cea2244 QgsGeometryUtils: rename 2 methods
- projPointOnSegment has been renamed to projectPointOnSegment
- getSelfIntersections has been renamed to selfIntersections
2018-01-24 03:38:59 -09:00
nirvn
5f5f1f9c05 [processing] don't modify output filename in build virtual raster 2018-01-24 18:18:32 +07:00
nirvn
746701bf33 [processing] add default extension to empty filter when available 2018-01-24 18:18:32 +07:00
Nyall Dawson
097a437af8 [processing] Fix missing outputs in modeler for grass algs (fixes #17703) 2018-01-24 19:00:58 +11:00
Nyall Dawson
4e6aa3c359 [processing] Fix error on win when grass path isn't set correctly 2018-01-24 19:00:58 +11:00
Nyall Dawson
2013725793 Fix gui handling of NULL/None default values in processing script algorithms 2018-01-24 17:54:47 +11:00
Mathieu Pellerin
c5d9830db2
[needs-docs][processing] move providers actions into the processing
panel toolbar (#6150)
2018-01-24 13:24:44 +07:00
Alexander Bruy
5dc8c3f0a2
Merge pull request #6141 from alexbruy/processing-gdal
[processing] restore GDAL rasterize algorithm
2018-01-24 08:16:01 +02:00
Nyall Dawson
54f9846eda Fix executing processing scripts through script editor 2018-01-24 15:53:33 +11:00
Denis Rouzaud
0cc29569f5 reformulate doxymentation 2018-01-23 21:28:00 -04:00
Nyall Dawson
d60f00dc85 [processing] Add Toolbox action to the main window toolbar
I realise this adds another toolbar button... but I'd strongly
argue that the toolbox is used FAR FAR more often than many of the
other toolbar actions!
2018-01-24 11:38:07 +11:00
Nyall Dawson
63db1be890 [processing] Improve main window Toolbox action
Brings the behaviour into line with the styling dock, where
the action is checkable and checked only when the toolbox
is open AND user visible (i.e. not hidden behind another tab). If
the toolbox is open but hidden, then hitting the Toolbox action
brings it to the front tab.

Otherwise it's often necessary to hit to Toolbox shortcut twice -
once to close a hidden toolbox tab, and a second time to open
and raise it.
2018-01-24 11:38:07 +11:00
Nyall Dawson
e5d00a26ab
Merge pull request #6147 from slarosa/processing_toolbar
[processing][needs-docs] add toolbar to processing toolbox
2018-01-24 11:35:39 +11:00
Denis Rouzaud
6a2a626926 move QgsCadUtils::lineCircleIntersection to QgsGeometryUtils
also add a test
2018-01-23 15:01:10 -09:00
Salvatore Larosa
b49c3964bb [processing] set icon size to toolbar 2018-01-23 23:39:02 +01:00
Salvatore Larosa
36768aad88 [processing] change icon for options action in toolbar 2018-01-23 23:16:01 +01:00
Salvatore Larosa
eb8a810ddf [processing] followup: 9c400324e2 - restore ellipses in menu actions 2018-01-23 23:13:13 +01:00
Salvatore Larosa
9c400324e2 [processing] add toolbar to toolbox 2018-01-23 22:30:29 +01:00
Mathieu Pellerin
dce341e152
[reports] allow header and footer sections to always be included 2018-01-23 20:08:14 +07:00
Alexander Bruy
77a6bbbb0a [processing] restore GDAL rasterize algorithm 2018-01-23 12:27:04 +02:00
Alexander Bruy
c09c301803 [processing] throw error if no layers selected in raster calculator
algorithm (refs #17920)
2018-01-23 10:38:59 +02:00
Alexander Bruy
d7e1813180 [processing] make items hidden after adding them to the view (fix #17881) 2018-01-23 10:00:28 +02:00
Mathieu Pellerin
aaf97933c2
[needs-docs][processing] merge grid algorithms and add point grid type 2018-01-23 13:54:53 +07:00
Nyall Dawson
c91fd5a067 [reports] Tweak sub-section logic for multi-layer reports
Instead of requiring a single layer for use with nested field group
sections, allow use of different layers. In this case the child
layers are filtered so that any fields with names matching their
parent groups are filtered to match the parent section's value.

Also only include headers and footers for child field group sections
if the child has matching features found.
2018-01-23 17:51:50 +11:00
Nyall Dawson
88808615a8 Drop composer
It's been a great journey, but your time has come...
2018-01-23 15:30:01 +11:00
Nyall Dawson
c87f5aad1b [processing] Fix misleading errors in grid algorithms 2018-01-23 12:35:29 +11:00
Nyall Dawson
b8e1f7707c [processing] Port 'Add unique value index field' to c++
And implement some fixes/improvements (refs discussion on the dev mailing list):
- allow user to specify created field name
- allow optional creation of a summary table showing new class value vs original
value
2018-01-23 12:18:55 +11:00
Nyall Dawson
40f09fab85 [processing] Fix creating tests when alg has optional outputs 2018-01-23 12:18:55 +11:00
Nyall Dawson
a530b213e9 [processing] Fix error when dragging alg group in modeler 2018-01-23 11:07:48 +10:00
Borys Jurgiel
2b2b65305f
Merge pull request #6129 from alexbruy/plugins-rating
[plugin manager] fix sending plugin votes
2018-01-22 22:07:50 +01:00
Nyall Dawson
7a2ab1cc7c [layouts] Fix multiframe items (tables, html) cannot be pasted
Fixes #10456, #17882
2018-01-23 07:14:44 +11:00
Nyall Dawson
35a77013ca Fix handling of multiframe objects in layout templates 2018-01-23 07:14:44 +11:00
Nyall Dawson
d9b6c8b5d1 Add missing sip casting for layout multiframe objects 2018-01-23 07:14:44 +11:00
Nyall Dawson
20f50fbac9 [layouts] Fix some linked map items not correctly restored when
loading projects.

Also remove some outdated TODOs

Fixes #17892, #17891
2018-01-23 07:14:44 +11:00
Alexander Bruy
08255f7ba0 fix indentation 2018-01-22 18:50:43 +02:00
Alexander Bruy
c6870777e7 fix sending plugin votes 2018-01-22 16:20:54 +02:00
Nyall Dawson
884ccc8695 Fix documentation 2018-01-20 13:24:17 +10:00
Nyall Dawson
2b61591e37 Documentation++ 2018-01-20 13:24:17 +10:00
Nyall Dawson
aa0d377164 Add separate bool for controlling whether vector layer labels
are enabled

Instead of clearing the labeling configuration in order to
disable labels, we need a way to disable them without
losing the configuration. Labels are oftern temporarily
switched on/off as an analysis tool, and we don't want the
settings to be lost as a result

Refs #17656
2018-01-20 06:10:51 +10:00
Nyall Dawson
f5876eab98 [layouts] Don't needlessly calculate layer sets for maps linked
to a map theme

This is very expensive to do, so avoid calculating it as much
as possible

Refs #17027
2018-01-19 09:25:30 +10:00
Nyall Dawson
d8402acee8 Remove composer from more code, port georeferencer reports to layouts 2018-01-18 09:21:45 +10:00
Nyall Dawson
5804745326 Port more tests to layouts, drop more QgsCompositions use 2018-01-18 09:21:45 +10:00
Nyall Dawson
fe48aeca0c Fix crash with undo/redo and layout multiframes, restore test 2018-01-18 09:21:45 +10:00
Denis Rouzaud
0304708130 fix .gitignore to add missing sip files 2018-01-17 10:16:37 -04:00
Denis Rouzaud
0644f59cde fix variable used for configuration 2018-01-17 10:16:37 -04:00
Denis Rouzaud
4a0eedde2e version compare is not strict
also fix sipify test
2018-01-17 10:16:37 -04:00
Denis Rouzaud
458cab7b20 run sipify 2018-01-17 10:16:37 -04:00
Denis Rouzaud
7722010ca8 rename *.sip to *.sip.in for the auto generated sip files 2018-01-17 10:16:37 -04:00