41254 Commits

Author SHA1 Message Date
Nyall Dawson
f12bb74b58 Add missing docs 2017-09-06 11:25:16 +10:00
Nyall Dawson
1e1ed8a462 Add unit tests for referenced geometries 2017-09-06 11:25:16 +10:00
Nyall Dawson
6ab7ebadec Metatype Qgs(Referenced)Rectangle/PointXY 2017-09-06 11:25:16 +10:00
Nyall Dawson
1194b5abea Use inheritance rather than composition for QgsReferencedGeometries
See https://github.com/qgis/QGIS/pull/4720#issuecomment-308652392
for discussion of the rationale
2017-09-06 11:25:16 +10:00
Nyall Dawson
e926f345e8 Update sip 2017-09-06 11:25:16 +10:00
Denis Rouzaud
8053b96ec0 fix constructor and skip method with same python signature 2017-09-06 11:25:16 +10:00
Nyall Dawson
1a961e8045 Template based referenced geometry class 2017-09-06 11:25:16 +10:00
Nyall Dawson
9502022bb5 Merge pull request #5141 from nyalldawson/disable_osx_travis
Disable Travis OSX builds
2017-09-06 11:20:47 +10:00
Nyall Dawson
2830f31e8b Disable Travis OSX builds
They are broken and ignored at the moment, but still
causing a massive backlog and delay in obtaining
the valid test results
2017-09-06 09:10:49 +10:00
Nyall Dawson
e464c76b64 Merge pull request #5110 from nyalldawson/ogr_crs
[ogr] Don't try to calculate CRS for geometryless layers
2017-09-06 04:23:04 +10:00
Nyall Dawson
a11e0c6687 Merge pull request #5130 from nyalldawson/deprecated
Fix use of some deprecated Qt methods
2017-09-06 04:22:40 +10:00
Nyall Dawson
26b9c043b4 Merge pull request #5116 from nyalldawson/remove_transect
Remove QgsTransectSample
2017-09-06 04:22:00 +10:00
Alessandro Pasotti
5f5be25357 Merge pull request #5124 from boundlessgeo/providers_gui_config
Providers gui config
2017-09-05 19:27:47 +02:00
Matthias Kuhn
1d0de6028e
Remove generic debug noise 2017-09-05 18:19:36 +02:00
Matthias Kuhn
ff2c109d3d
Make ogr a bit less verbose 2017-09-05 18:19:36 +02:00
Matthias Kuhn
11240a3d72
Remove dead code 2017-09-05 18:19:36 +02:00
Matthias Kuhn
93ec7616e5
Make raster rendering a bit less verbose 2017-09-05 18:19:36 +02:00
Alessandro Pasotti
59aaa2780e Use the tooltip: virtual layer needs it
... because the automatically generated one was:
"Add Virtual Layer layer"
2017-09-05 17:08:04 +02:00
Alessandro Pasotti
08588a54da Add tooltips and tests for the provider class 2017-09-05 17:03:20 +02:00
Alessandro Pasotti
e43cb79630 Q_FOREACH removal 2017-09-05 16:58:17 +02:00
Alessandro Pasotti
41eccd1bf9 Sip updates for qgssourceselectprovider 2017-09-05 16:56:09 +02:00
Alessandro Pasotti
fb125056e1 Removed SIP_FACTORY and fixed docstrings 2017-09-05 16:55:10 +02:00
DiGro
b3448ed4a8 Typo corrected
appoximation   --> should be:  approximation
2017-09-05 15:28:40 +02:00
Richard Duivenvoorde
117261bfb7 Fix for #17104 2017-09-05 14:16:48 +02:00
Matthias Kuhn
8efa9fa815 [FEATURE] Add "starts with" and "ends with" to multi attribute search 2017-09-05 14:15:38 +02:00
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
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