41195 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Juergen E. Fischer
2920c0128c translation string fix
(cherry picked from commit 3943e7b9310714cbf2b2943669a8c8f56f3ed884)
2017-09-04 11:44:11 +02:00
Harrissou Sant-anna
b3afe17629 Right align pixel size-based visibility DD button 2017-09-04 10:12:51 +02:00
Harrissou Sant-anna
167df0127d Set labeling widgets to horizontally expand
will be consistent with diagram and symbology widgets (combobox, spinbox and textbox) behavior
2017-09-04 10:12:51 +02:00
Sandro Santilli
c555079971 Remove unreachable code from curveToLine
Drops the unused support for including control points in output.
See https://github.com/qgis/QGIS/pull/4746#issuecomment-326730297
2017-09-04 09:00:25 +02:00
Nyall Dawson
b629fbca49 Skip another test which is fragile on Travis 2017-09-04 16:55:35 +10:00
Nyall Dawson
b5122d18e2 Merge pull request #5117 from nyalldawson/skip_test_travis
Skip some task manager tests on Travis only
2017-09-04 16:38:25 +10:00
Werner Macho
3e837045be Merge pull request #5115 from Cracert/trans
New polish translators of QGIS desktop
2017-09-04 08:35:14 +02:00
Nathan Woodrow
df7c3df473 Revert "Ignore some python warnings for now"
Doesn't work on all platforms

This reverts commit f0e53db254f38071e87b993b580ea050b19f4b17.
2017-09-04 14:22:24 +10:00
Nyall Dawson
088e58aac6 Merge pull request #5118 from nyalldawson/label_rotate
Fix rotate label tool
2017-09-04 14:18:16 +10:00
Nyall Dawson
d1d5e6cf83 Fix bad icon drawn on top of points when rotating labels 2017-09-04 12:34:47 +10:00
Nathan Woodrow
f0e53db254 Ignore some python warnings for now
shhhh Qt5
2017-09-04 12:30:26 +10:00
Nyall Dawson
0f407e1e5d Fix rotate label tool results in inverted rotation
Fix #17068
2017-09-04 12:23:25 +10:00
Nyall Dawson
fadfb3562a Fix error when adding disabled plugin based processing providers 2017-09-04 11:16:17 +10:00
Nyall Dawson
700f9b2ef8 Condense qgstestutils.h and qgstest.h into a single file 2017-09-04 10:38:18 +10:00
Nyall Dawson
2286710606 Skip some task manager tests on Travis only
Instead of #ifdefing them out, only prevent them running
on Travis so that they still run locally.

Also skip another task manager test which randomly
fails only on Travis
2017-09-04 10:32:08 +10:00
Nyall Dawson
f01ad63bba Rename 'Polygon from layer extent' to 'Extract layer extent'
It's slightly simpler to understand and better reflects
what this alg does
2017-09-04 08:45:10 +10:00
Nyall Dawson
5d504dcafb Unify processing "polygon from layer extent" algorithms
Now that the extra features of the "polygon from vector layer extent"
algorithm are covered by the new "Minimum bounding geometry" algorithm,
we can replace the previous two "polygon from vector extent" and
"polygon from raster extent" algorithms by a single "polygon
from layer extent" algorithm.
2017-09-04 08:42:03 +10:00
Nyall Dawson
9eeecbed65 Add note to see 'minimum bounding geometry' alg to feature by feature alg help 2017-09-04 08:42:03 +10:00
Nyall Dawson
95eab5127f Remove redundant algorithms 2017-09-04 08:42:03 +10:00
Nyall Dawson
85cd1c1673 [FEATURE] Split minimum enclosing geometry algs into separate
feature based algorithms

Instead of algorithms which handle both whole layers/groups
of features/individual features, we leave the whole layer
and group of features handling to the "Minimum bounding
geometry" algorithm.

The feature-by-feature algorithms are now native c++
algorithms.

This affects:
- bounding boxes
- convex hulls
- minimum enclosing circle
- minimum oriented rectangles
2017-09-04 08:42:03 +10:00
Nyall Dawson
b6e35428e2 Optimise calculation of envelopes for MinimumBoundingGeometry alg
It's more efficient to calculate these on the fly, rather then
collecting all geometry points and then calculating.
2017-09-04 08:42:03 +10:00
Nyall Dawson
83affdc7f5 [FEATURE] New processing algorithm "minimum bounding geometry"
This algorithm creates geometries which enclose the features
from an input layer.

Numerous enclosing geometry types are supported, including
bounding boxes (envelopes), oriented rectangles, circles and
convex hulls.

Optionally, the features can be grouped by a field. If set,
this causes the output layer to contain one feature per grouped
value with a minimal geometry covering just the features with
matching values.
2017-09-04 08:42:03 +10:00
Nyall Dawson
85e6a63328 Daily Q_FOREACH -> for conversion 2017-09-04 08:25:29 +10:00
Robert Szczepanek
1c3e358151 New polish translators of QGIS desktop 2017-09-03 23:29:23 +02:00
lbartoletti
e30f7044c9 [FEATURE][Processing] Minimal enclosing circle 2017-09-03 07:37:53 +10:00
Harrissou Sant-anna
f51244c98b Add Help button and connect it to user manual 2017-09-02 11:17:58 +02:00
Nyall Dawson
8e12757ce6 Merge pull request #5102 from nyalldawson/socket_error
Fix QSocketNotifier error on startup
2017-09-02 16:13:38 +10:00
Nyall Dawson
bbd0beb50c Fix bad doc string
[ci skip]
2017-09-02 16:12:53 +10:00
Nyall Dawson
56040c41e8 Merge pull request #5109 from nyalldawson/fix_17086
[composer] Fix node based items (line/polygon) ignore exclude from export setting
2017-09-02 14:12:46 +10:00
Nyall Dawson
64489be468 Fix QSocketNotifier error on startup
And avoid unnecessary creation of unused QFileSystemWatchers
2017-09-02 13:59:51 +10:00
Nyall Dawson
14ce8b5bc0 [composer] Fix node based items (line/polygon) ignore exclude
from export setting

Fixes #17086

(forward port from 89c38ed)
2017-09-02 13:20:30 +10:00
Nyall Dawson
46264414bc Merge pull request #5104 from nyalldawson/composer_tweaks
Composer tweaks
2017-09-02 12:26:20 +10:00
Nyall Dawson
9d3c9e1963 [FEATURE] Expose "justify" text alignment as an option for
composer label alignment

It's supported by Qt already, just not shown as an option
in the config widget!
2017-09-01 20:59:25 +10:00
Nyall Dawson
7ca0b2deb3 [composer] Allow finer setting of scalebar height and widths
While the settings are stored as double, they were being
rounded off in the UI to the nearest mm
2017-09-01 20:44:24 +10:00