41452 Commits

Author SHA1 Message Date
Nyall Dawson
655f121af5 Merge pull request #5129 from nyalldawson/collect
[processing] Rework 'singlepart to multipart' algorithm
2017-09-05 20:56:21 +10:00
Matthias Kuhn
4ea4478bad Thread safety for feature counter
Make sure that results from a feature counter will only be delivered on
the main thread and that they will be discarded if the layer is deleted
meanwhile.
2017-09-05 12:18:52 +02:00
Nyall Dawson
7627851026 Fix bad strings 2017-09-05 19:46:49 +10:00
Nyall Dawson
08c5c4b18a Add notes to see related algorithms in algorithm help 2017-09-05 19:46:26 +10:00
Nyall Dawson
a55fbd8ef3 [FEATURE] Remove Singleparts to Multiparts algorithm
This algorithm is no longer required - it's been replaced by
the 'Promote to multipart' and 'Collect geometries" algorithms.

Tagged as feature to remember to include in release notes
2017-09-05 19:41:28 +10:00
Nyall Dawson
16c4f830b3 [FEATURE] New algorithm for 'collecting' geometries
This is basically the equivalent of the dissolve algorithm, but
instead of a dissolving overlapping geometries the geometries
are instead just collected together into a multipart geometry.

It's designed to slot between the 'promote to multipart' algorithm
(which performs no collection of geometries - it just converts
singleparts to multiparts with 1 part) and the more complex
all-encompassing 'aggregate' algorithm.
2017-09-05 19:41:27 +10:00
Nyall Dawson
3484eb019c [FEATURE] Native 'Promote to Multipart' algorithm
This algorithm is basically the equivalent of the ST_Multi(...)
command - it forces a feature's geometry to become multipart,
regardless of the input geometry type.

If input geometries are singlepart, they will output as
multipart with just 1 part. If they are already multipart,
they will be output unchanged.
2017-09-05 19:40:35 +10:00
Nyall Dawson
8776122d78 Show WKB type in vector layer information tab 2017-09-05 19:39:06 +10:00
Alexander Bruy
b5bb7df7eb Merge pull request #5111 from nyalldawson/min_bounding_geom_alg
[FEATURE] New processing algorithm "minimum bounding geometry"
2017-09-05 11:58:15 +03:00
Nyall Dawson
d08398f785 [FEATURE] Drop processing 'Select by Attribute Sum' algorithm
Tagged as feature to be included in release notes.

Because:

- The use case for this algorithm is very unclear for users - the name
does not describe what the algorithm does, and there's no help
documentation available for the algorithm either. Given this I suspect
that the algorithm is not being put into use.

- The algorithm needs enhancement to be more useful. There's no logic
in place which dictates how neighbouring features are chosen to
dissolve into the selected feature (it's effectively random - you're
just as likely to get a huge narrow polygon stretching across a map as
you are a nice compact cluster). To be more useful the algorithm would
need logic to either minimise the area of the dissolved feature, or
minimise the total number of dissolved features, or ... ?
2017-09-05 17:22:11 +10:00
Nyall Dawson
1b5fbf98fe Replace use of qCopy 2017-09-05 14:03:34 +10:00
Nyall Dawson
83e6858539 Replace use of deprecated QSqlError::number 2017-09-05 14:03:34 +10:00
Nyall Dawson
b196d37c1e Replace use of deprecated QShortcut string operator 2017-09-05 14:03:34 +10:00
Nyall Dawson
77c4edfbff Replace use of deprecated Qt::escape 2017-09-05 14:03:34 +10:00
Nyall Dawson
84774ee2de Replace use of qSort with std::sort 2017-09-05 14:03:34 +10:00
Nyall Dawson
422963e995 Replace use of deprecated QMouseEvent::posF() 2017-09-05 14:03:34 +10:00
Nyall Dawson
31fcc67a69 Replace use of deprecated QHeaderView methods 2017-09-05 14:03:33 +10:00
Nyall Dawson
25a18b9ca1 Replace use of deprecated QString::fromAscii 2017-09-05 14:03:33 +10:00
Mathieu Pellerin
72462ae2eb [symbology] fix duplicate layers in symbol levels dialog (#5041) 2017-09-05 09:59:40 +07:00
Nyall Dawson
b0f71e5c43 Daily Q_FOREACH -> for conversion 2017-09-05 12:23:49 +10:00
Nyall Dawson
64718766fc Add some layout undo/redo tests 2017-09-05 11:17:33 +10:00
Nyall Dawson
8b490dec55 Don't create undo commands for snap settings changes
In practice this turns out to be undesirable - snapping changes
are more of a semi-permenant interface setting as opposed to something
which should be stored in the layout's undo history.
2017-09-05 10:48:03 +10:00
Nyall Dawson
0062513bba Identation 2017-09-05 10:23:28 +10:00
Nyall Dawson
7458dbf9cb Fix unused variable warning 2017-09-05 09:54:36 +10:00
Nyall Dawson
a77950cbf6 SIP, indentation and documentation updates 2017-09-05 09:53:48 +10:00
Nyall Dawson
44a8a514fa Move guide collection under page collection 2017-09-05 09:39:22 +10:00
Nyall Dawson
62dcd0dad5 Start work on undo/redo support for layouts 2017-09-05 09:39:22 +10:00
Nyall Dawson
1589b4e648 Implement some saving/restoring layout items to XML 2017-09-05 09:39:22 +10:00
Nyall Dawson
66e1cf04e6 Port methods to retrieve layout items 2017-09-05 09:39:22 +10:00
Nyall Dawson
3bc9de51fd Fix setting custom page size 2017-09-05 09:39:22 +10:00
Nyall Dawson
d5552cdade Auto close item properties widget when item is deleted 2017-09-05 09:39:22 +10:00
Nyall Dawson
ddb3198ef2 Add some more debugging to processing algorithm test
Trying to pinpoint which algorithm occasionally segfaults during
test runs
2017-09-05 09:18:16 +10:00
Nyall Dawson
b9c7b1274a Merge pull request #5120 from strk/drop-unreachable-code
Remove unreachable code from curveToLine
2017-09-05 09:05:31 +10:00
Matthias Kuhn
c241c6a1d0 Fix include path usage from 3rd party 2017-09-04 22:42:27 +02:00
Matthias Kuhn
1db62ac600 Make sure classes do not miss their key function 2017-09-04 22:42:27 +02:00
Sandro Mani
916dbce9f7 Merge pull request #5128 from manisandro/globe
[Globe] Adapt for QGIS API changes, add Qt5 compatibility, support osgEarth up to current git master
2017-09-04 21:58:18 +02:00
Alessandro Pasotti
e21630db42 Sipify 2017-09-04 21:08:11 +02:00
Sandro Mani
14f9cd19bc [Globe] Adapt for QGIS API changes, add Qt5 compatibility, support osgEarth up to current git master 2017-09-04 20:50:58 +02:00
Alessandro Pasotti
04af8372a4 Fix build warnings 2017-09-04 20:38:06 +02:00
Alessandro Pasotti
884b58c56d Resistance is futile, you will be sipified 2017-09-04 17:35:48 +02:00
Sandro Mani
c43cd995a2 Merge pull request #5122 from manisandro/ogr_subset_fid
[OGR] Attempt to use actual ogr_fid also if subset string is set
2017-09-04 17:01:28 +02:00
Sandro Mani
217e70067f [OGR] Attempt to use actual ogr_fid also if subset string is set
If a subset string is set on an OGR layer, the feature iterator returns features with ids taken from a sequence starting from 0, regardless of the original feature id.

This causes a mismatch in the data shown by the identify results table and the attribute widget.
2017-09-04 16:28:47 +02:00
Alessandro Pasotti
d47fdbc79c Implement sourceSelectProviders() for all providers 2017-09-04 15:28:52 +02:00
Alessandro Pasotti
fd7bcb368d Updates tests for source select registry 2017-09-04 15:16:20 +02:00
Alessandro Pasotti
50e0a01008 Sip updates for source select provider and registry 2017-09-04 15:15:20 +02:00
Alessandro Pasotti
2d073d6faf Remove all hardcoded source selects: rely on the registry
The data source manager dialog is now clean from
hardcoded provider keys and there is a mean to
add items to the dialog via plugins (C++, providers
and Python).
2017-09-04 15:11:57 +02:00
Harrissou Sant-anna
399c2ca0dc Removing placement button groups declaration 2017-09-04 14:18:43 +02:00
Harrissou Sant-anna
e677e1f4ed Implement logic to use radio buttons for diagram placement 2017-09-04 14:18:43 +02:00
Harrissou Sant-anna
ea303771d1 Moving diagram placement options from combobox to radio buttons 2017-09-04 14:18:43 +02:00
Alessandro Pasotti
eb0d57072f Link gui 2017-09-04 13:12:02 +02:00