8186 Commits

Author SHA1 Message Date
Nyall Dawson
6ffe50704f [composer] Remove support for upgrading pre 2.2 project atlas map
settings

Open the project in a recent 2.x release and resave to upgrade
the project
2017-01-14 19:14:48 +10:00
Nyall Dawson
b5480633e4 Standardise names for static variables
All non-const variables are prefixed with "s", all const
statics are ALL_CAPS
2017-01-14 16:40:24 +10:00
Nyall Dawson
231f6af0e1 Don't return const references to implicitly shared Qt classes
Instead return the inexpensive copies. Should provide extra safety
against issues like #14822

(refs #14822)
2017-01-14 15:53:45 +10:00
Hugo Mercier
ef8a135f1b Merge pull request #3987 from mhugo/servermultithread
[server] parallel map rendering
2017-01-13 16:16:14 +01:00
Alexander Bruy
49b6c5f342 [processing] more fixes to "selection" type settings handling 2017-01-13 16:43:16 +02:00
Alexander Bruy
3605d4fce3 Revert "[processing] handle string settings from previous install (followup 03eaad5bfd)"
This reverts commit daf65d8fdf3f8eb238c07f682c4d9a508e613f7a.
2017-01-13 16:38:30 +02:00
Alexander Bruy
daf65d8fdf [processing] handle string settings from previous install (followup 03eaad5bfd) 2017-01-13 15:50:38 +02:00
Alexander Bruy
f01b2f0597 [processing] extent is mandatory parameter for interpolation algorithms 2017-01-13 15:50:38 +02:00
Alexander Bruy
ce88da6eb9 [processing] raise error if cellsize is not defined in interpolation
algorithm
2017-01-13 15:50:38 +02:00
matteo
8994877717 processing zonal statistics 2017-01-13 12:37:51 +01:00
matteo
c259070102 processing single to multi test 2017-01-13 12:37:51 +01:00
matteo
7958db29d1 processing mean coordinates test 2017-01-13 12:37:50 +01:00
matteo
2c6649358a processing points along lines test 2017-01-13 12:37:50 +01:00
matteo
94856b59b1 processing qgis count points weighted 2017-01-13 12:37:39 +01:00
matteo
590abf0a44 processing qgis countsuniquepoints test 2017-01-13 12:37:39 +01:00
Blottiere Paul
932d9fb5d3 [server] parallel map rendering 2017-01-13 09:24:31 +01:00
Alexander Bruy
8f291a92df [processing] allow other output formats than shapefile in GDAL
polygonize
2017-01-13 09:16:19 +02:00
Denis Rouzaud
6c74e4ea5d spelling fixes 2017-01-12 22:01:50 +01:00
Alexander Bruy
b6632b0731 [processing] workaround for fixing broken build 2017-01-12 14:49:26 +02:00
Alexander Bruy
75a7637838 [processing] fix typo in method name 2017-01-12 12:54:13 +02:00
Alexander Bruy
03eaad5bfd [processing] fix handling of the "selection" type settings 2017-01-12 12:52:04 +02:00
Nyall Dawson
b7706b358f Rename some static variables for consistency
Ensure non-const statics have "s" prefix and const statics
are in all caps
2017-01-12 15:17:47 +10:00
Alexander Bruy
6214d4d446 [processing] fix wrong parameter definition (fix #16063) 2017-01-11 19:23:08 +02:00
Alexander Bruy
80d0d05b18 [FEATURE][processing] remove TauDEM provider from core Processing
TauDEM is quite specific set of tools and it requires installation of
some additional tools. So we decide to turn it into separate provider,
reducing core codebase size and maintenance efforts.

Tagged as feature to not forget mention in changelog and documentation
2017-01-11 15:15:37 +02:00
Denis Rouzaud
4467487e1c respect CamelCase for enums and their values 2017-01-11 14:10:11 +01:00
Alexander Bruy
6be4505493 [processing] update OTB's white- and blacklist. Drop obsolete 3.x
versions and add latest 5.8.0
2017-01-11 13:43:17 +02:00
Alexander Bruy
371fe1dd48 [processing] add new MultiImageSamplingRate algorithm from OTB 5.8.0 2017-01-11 13:42:29 +02:00
Denis Rouzaud
748be8de71 [spelling] replace behaviour by behavior 2017-01-11 11:35:19 +01:00
Nyall Dawson
e656c63ab7 Remove duplicate QgsFeature::setFeatureId method
Leave just QgsFeature::setId and document api break
2017-01-11 10:05:31 +01:00
Nyall Dawson
f2032ea268 [FEATURE] item_variables expression function inside compositions
This adds a new item_variables expression function when expressions
are used inside a composition context.

The function takes a single argument, the id for an item inside
the composition, and returns a map of variable name to value
for that item.

This allows you to do things like insert text in a label fetching
properties of another item in the composition, eg

Insert scale of map into a label:

map_get( item_variables( 'map'),'map_scale')

Insert x coordinate of map center into a label:

x(map_get( item_variables( 'map'),'map_extent_center'))
2017-01-11 12:26:32 +10:00
Nyall Dawson
d25fcec03d Add method to retrieve variables from a QgsExpressionContext as a QVariantMap 2017-01-11 12:25:37 +10:00
Nyall Dawson
86e1138a04 [processing] Correctly handle when no feedback object is passed 2017-01-11 11:11:11 +10:00
Nyall Dawson
ede452be85 [processing] Port feedback object to c++
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
Nyall Dawson
04eb293362 [processing] Move some SVG icons out of plugin to themes
...and swap to using QgsApplication methods for retrieving cached icons,
implement svgIconPath for providers with SVG icons
2017-01-11 10:55:16 +10:00
Nyall Dawson
bf484dafa8 [processing] Allow providers to return path to SVG icon 2017-01-11 10:55:16 +10:00
Nyall Dawson
dca697b427 [processing] New c++ QgsProcessingRegistry class
Intended as a registry for the various processing components,
including providers, algorithms and various parameters and outputs.

Currently handles only registration of providers, as a step toward
removing processing's algList (this requires first porting
the algorithm class to c++)

A QgsProcessingRegistry instance is attached to QgsApplication,
and is retrieved by QgsApplication::processingRegistry()
2017-01-11 10:55:15 +10:00
Nyall Dawson
bb24dfe245 [processing] c++ base class for providers
Nothing particularly exciting here yet, but this commit
moves the definition of the provider base class to a c++
QgsProcessingProvider abstract base class.

As part of this some existing python methods were renamed
to make their use clearer and to fit with the QGIS c++
api conventions:

- getName was renamed to id
- getDescription was renamed to name
- getIcon was renamed to icon

These API breaks are documented
2017-01-11 10:55:15 +10:00
Denis Rouzaud
37ebcdd1cd [spellcheck] allow inwords checks and line skipping
spell check will be done automatically in words by default (when some conditions are fulfilled)
possibility to avoid in words checking by adding :* at the end in spelling.dat

one can add #spellok at the end of a line of code to skip spell check on this line
2017-01-10 20:18:37 +01:00
Alexander Bruy
1ad965b4fa [processing] add test for Distance matrix algorithm to prevent
TableWriter class breakage in future
2017-01-10 20:24:05 +02:00
Alexander Bruy
c4cc954141 [processing] restore functionality of the TableWriter class (fix #16053) 2017-01-10 20:23:05 +02:00
Alexander Bruy
f77e677734 add missed SIP bindings 2017-01-10 17:55:52 +02:00
Alexander Bruy
b74aefd3c9 move QgsHelp to gui 2017-01-10 17:55:51 +02:00
Alexander Bruy
212406cd65 make all QgsHelp methods static 2017-01-10 17:55:51 +02:00
Alexander Bruy
6c3c5331dc add SIP bindings 2017-01-10 17:55:50 +02:00
Alexander Bruy
3145a01db6 [processing] support OTB 5.8.0 2017-01-10 16:52:05 +02:00
Alexander Bruy
9909109928 Merge pull request #3973 from ghtmtt/good_test2
[processing] other gdal tests
2017-01-10 16:32:17 +02:00
David Marteau
4f996980be Replace headersWritten by headersSent 2017-01-10 14:34:18 +01:00
David Marteau
3f41db3759 Fix sip syntax error 2017-01-10 14:34:18 +01:00
David Marteau
bfc081d3dd Fix indent and documentation 2017-01-10 14:34:18 +01:00
David Marteau
262969015d Add headers keys and value accessors 2017-01-10 14:34:18 +01:00