40018 Commits

Author SHA1 Message Date
Nyall Dawson
3f4d6de54b Fix aggregate expression calculation when used with virtual fields
The layer expression context (which is required for aggregate
calculation to work) was not being added to the context used
by vector layer feature iterators.

Fix #15930
2017-07-14 10:21:56 +10:00
Nyall Dawson
0639264a4a Merge pull request #4852 from nyalldawson/heatmap_source
Use QgsFeatureSource instead of QgsVectorLayer for QgsKde
2017-07-14 10:19:15 +10:00
Harrissou Sant-anna
0d9945deac Use JavaScript instead of javascript/Javascript
+ update INSTALL doc
2017-07-13 17:40:55 +02:00
Harrissou Sant-anna
99ea2e8e8f Use Cartesian instead of cartesian 2017-07-13 17:40:55 +02:00
Nyall Dawson
4fa69643fc Fix heatmap widget wrapper, update to use source input 2017-07-13 20:52:16 +10:00
Nyall Dawson
b7ae44fb30 Move method to evaluate a variant to a feature source to QgsProcessingUtils 2017-07-13 20:51:47 +10:00
Nyall Dawson
8f19f74893 Fix reportError call 2017-07-13 20:11:37 +10:00
Nyall Dawson
653ef7b243 Update heatmap alg to use feature source instead of layer 2017-07-13 20:11:28 +10:00
Nyall Dawson
d9e29b9742 Use QgsFeatureSource instead of QgsVectorLayer for QgsKde
Allows generation of heatmaps from feature sources instead
of requiring vector layer inputs
2017-07-13 20:07:33 +10:00
Nyall Dawson
eb0c3015f9 Push minimumValues/maximumValues up to QgsFeatureSource base class
Allows these methods to be called on feature sources
2017-07-13 20:07:33 +10:00
Nyall Dawson
cfbed91103 Merge pull request #4843 from alexbruy/processing-heatmap
[processing] port heatmap algorithm
2017-07-13 20:07:02 +10:00
Alexander Bruy
8285712d68 more test fixes 2017-07-13 12:11:42 +03:00
Alexander Bruy
b01ffa5cd4 [processing] add test for heatmap algorithm 2017-07-13 12:11:42 +03:00
Alexander Bruy
229d2f1add [processing] port heatmap algorithm 2017-07-13 12:11:42 +03:00
Juergen E. Fischer
fc7ac8323f vector file writer: reapply integer options (accidentally removed in 9a6235db; fixes #16811, #16819) 2017-07-13 09:58:36 +02:00
Alexander Bruy
a2b82bfc8e Merge pull request #4851 from alexbruy/processing-exception
[processing] use QgsProcessingException instead of old exception class
2017-07-13 10:52:40 +03:00
Radim Blazek
50df255edc Merge pull request #4847 from blazek/remove-grass6
Remove GRASS 6 support
2017-07-13 08:56:04 +02:00
Mark Johnson
172e809181 [FEATURE] New unit type for rendering in map unit meters sizes
Allows setting symbols other map item sizes to Map Units in Meters. This allows setting the size always in meters, regardless of what the underlying map units are (e.g. they can be it geographic degrees). The size in meters is calculated based on the current project ellipsoid setting and a projection of the distances in meters at the center of the current map extent.
2017-07-13 16:26:41 +10:00
Alexander Bruy
56208540f9 [processing] remove GeoAlgorithmExecutionException 2017-07-13 09:02:24 +03:00
Alexander Bruy
97a5a3dcbd [processing] use QgsProcessingException in algorithms 2017-07-13 09:02:10 +03:00
Alexander Bruy
69dab42785 [processing] remove unused version() function 2017-07-13 08:38:22 +03:00
Mathieu Pellerin
d3ad9131f4 [processing] restore intersection algorithm (#4849) 2017-07-13 11:07:01 +07:00
Nyall Dawson
93a8025bb2 Merge pull request #4842 from mj10777/master3.qgsdatetimeedit
changes to QgsDateTimeEdit to support the minimal Date supported by Q…
2017-07-13 12:57:53 +10:00
mj10777
6434d8dce0 changed setMinimumEditDateTime to private. 2017-07-13 04:39:36 +02:00
Nyall Dawson
64575b3a09 Silence some more gcc fallthrough warnings (no real issues) 2017-07-13 08:28:15 +10:00
Nyall Dawson
8fc37bf548 Fix use of integer constants in boolean context warning 2017-07-13 08:21:43 +10:00
Nyall Dawson
3c1bdf059d Silence implicit-fallthrough warning in GCC when FALLTHROUGH macro is used 2017-07-13 08:17:57 +10:00
Nyall Dawson
773b2e7f9e Port grass followup to area calculation fix
https://trac.osgeo.org/grass/changeset/71259

refs discussion at

https://trac.osgeo.org/grass/ticket/3369
2017-07-13 07:41:42 +10:00
Radim Blazek
eb6301e023 [GRASS] remove GRASS 6 support 2017-07-12 17:51:03 +02:00
rldhont
7cbf9df21a [Server] Tests update mask image 2017-07-12 16:01:55 +02:00
Mathieu Pellerin
b46373b084 [processing] restore union algorithm 2017-07-12 20:54:51 +07:00
Alessandro Pasotti
846abe7104 Skip bindings for classes migrated from app 2017-07-12 14:13:28 +02:00
Alessandro Pasotti
d952ce11b1 Revert "SIP include"
This reverts commit f2b9a936d0938cf8f6afa364cc3a19c090fbd138.
2017-07-12 13:12:17 +02:00
Alessandro Pasotti
f2b9a936d0 SIP include 2017-07-12 11:46:13 +02:00
Alessandro Pasotti
f66c19b9d3 Merge pull request #4769 from boundlessgeo/unified-button-movetogui-2
Move all app/ogr and datasource manager dialog to GUI
2017-07-12 11:10:21 +02:00
Nyall Dawson
6067d514dc Fix crash when using line pattern fills
Line pattern fill was not calling stopRender on the line symbol!
2017-07-12 19:01:42 +10:00
Nyall Dawson
a87cc53e96 Nicer debugging from boundary alg 2017-07-12 18:55:27 +10:00
Nyall Dawson
5c844a5cfb Really delete processing dialogs
The dialogs are parented to the main window, which means sip
transfers the ownership to the main window - and they are
never deleted as a result. This results in various error
messages caused by the widgets hanging around forever
and listening out for various signals they are connected to.
2017-07-12 18:52:53 +10:00
Nyall Dawson
77351fdba4 Update processing.algorithmHelp for new API 2017-07-12 18:33:01 +10:00
Nyall Dawson
c59aeab544 Initialise algorithms when they are added to a provider
By initializing the prototype of the algorithm stored in the
provider we allow shortcuts like directly querying the parameter
definitions from the provider's prototype (instead of having
to create a new instance and manually initialize it first)
2017-07-12 18:33:01 +10:00
Nyall Dawson
0b737ff1f4 Merge pull request #4840 from nyalldawson/processing_next
[processing] Simplify output creation
2017-07-12 15:25:46 +10:00
mj10777
b7ff59c064 changes to QgsDateTimeEdit to support the minimal Date supported by QDateTimeEdit (0100-01-01) 2017-07-12 07:18:32 +02:00
Nyall Dawson
91d6ac9537 Update script algorithms for auto output creation 2017-07-12 07:50:13 +10:00
Nyall Dawson
7bb1b7ade0 Cleanup some imports, remove use of dataobjects 2017-07-12 07:44:39 +10:00
Nyall Dawson
d92583c10e Take advantage of auto created outputs in ported algorithms 2017-07-12 07:39:43 +10:00
Nyall Dawson
058271b0c1 Auto create corresponding outputs when adding destination style
parameters to an algorithm

QgsProcessingAlgorithm::addParameter() has a new createOuput
argument (true by default).

If the createOutput argument is true, then a corresponding
output definition will also be created (and added to the
algorithm) where appropriate. E.g. when adding a
QgsProcessingParameterVectorDestination and createOutput is
true, then a QgsProcessingOutputVectorLayer output will be
created and added to the algorithm. There is no need to call
addOutput() to manually add a corresponding output for this
vector. If createOutput is false then this automatic output
creation will not occur.

This should simplify declaration of outputs for algorithms
as it avoids the need to manually declare these corresponding
outputs.
2017-07-12 07:18:53 +10:00
Mathieu Pellerin
18b52b22f1 [processing] restore difference algorithm 2017-07-11 17:00:44 +07:00
Nyall Dawson
1bc0b365d6 Partially revert "categorized renderer: also setup symbol render context for hashed symbols"
This partially reverts commit c7c52442f71a6a17ea1ad97e741b2b4b6d51f698.

Causes a race condition which results in random crashes while
using the categorised symbol renderer.

The intent behind the original commit is unknown
2017-07-11 14:13:03 +10:00
Nyall Dawson
fabf32efc5 Add an assert to protect multiple calls to QgsSymbolV2::startRender()
while rendering has already been started for a particular symbol instance

Relates to a random but frequent crash which occurs when using the
categorised symbol renderer - tracked down to a race condition
in which multiple concurrent calls to startRender() are performed
on a single symbol instance.
2017-07-11 14:12:02 +10:00
Nyall Dawson
67c6e8f2b8 Merge pull request #4834 from mhugo/fix_attribute_element_sip
Fix QgsAttributeEditorContainer SIP
2017-07-11 11:02:25 +10:00