41283 Commits

Author SHA1 Message Date
Werner Macho
3e837045be Merge pull request #5115 from Cracert/trans
New polish translators of QGIS desktop
2017-09-04 08:35:14 +02:00
Alessandro Pasotti
42bd913f57 Add sourceSelectProviders() to the ogr data provider
This is the first data provider real implementation,
all other data provider will follow.
2017-09-04 08:01:59 +02:00
Alessandro Pasotti
90f873086c Attach QgsSourceSelectProviderRegistry to QgsGui
And make it a singleton
2017-09-04 08:00: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
ea09aa92a3 Remove QgsTransectSample
Because:
- it's unused in master, and is more code to maintain
just for possible use by plugins
- it's unmaintained, and has had no work done (beside compilation
fixes) in the recent past
- there's no unit tests or detailed documentation to show
how the class should be used
2017-09-04 09:05:38 +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
Alessandro Pasotti
e8685996c4 Remove all specialized methods for adding the source selects
We now have a unified interface for all dialogs.
2017-09-03 21:38:55 +02:00
Alessandro Pasotti
fa71bc3ee5 Removed specialized signal that is now in the base class 2017-09-03 21:34:42 +02:00
Alessandro Pasotti
7cd7f1685f Added last missing signal replaceVectorLayer
This is only used by virtual layers, but it
might be handy for others too and now I can
start to remove all specialized source
select add methods from the datas source
manager dialog.

This is only the first step: next is looping
through the source select provider registry
to get all needed GUI elements for the dialog.
2017-09-03 21:30:45 +02:00
Nyall Dawson
7a2f148add [ogr] Don't try to calculate CRS for geometryless layers
Slight speedup when loading attribute table containing
joins to a geometryless OGR table
2017-09-03 14:50:48 +10: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
Alessandro Pasotti
d4868b3f82 Update sip file 2017-09-01 18:20:06 +02:00
Alessandro Pasotti
4c46f64647 Add QgsSourceSelectProviderRegistry with tests 2017-09-01 17:47:55 +02:00
Alessandro Pasotti
cd1c9b1e28 Add class QgsSourceSelectProvider and tests
This is the first step for QEP 101
2017-09-01 14:30:34 +02: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
Alessandro Pasotti
d9152429a1 Merge pull request #5101 from boundlessgeo/fix_pseudocolor_ramp_widget
Fix broken qgscolorramp button
2017-09-01 08:37:15 +02:00
Nyall Dawson
247d2657ca Fix invalid regular expression warnings 2017-09-01 09:00:57 +10:00
Nyall Dawson
1037d4752d Fix QFileSystemWatcher debug warning on startup 2017-09-01 08:59:45 +10:00
Nyall Dawson
15a48df644 Pass QString by const ref 2017-09-01 08:57:24 +10:00
Nyall Dawson
7ba1b1734b Add missing SIP_FACTORY 2017-09-01 08:56:57 +10:00
Nyall Dawson
42b3e0bb10 Fix another small leak 2017-09-01 08:48:15 +10:00
Nyall Dawson
e84543d0fc Fix memory leak 2017-09-01 08:40:22 +10:00
Nyall Dawson
75c65c590c Fix uninitialized/not copied member variable 2017-09-01 08:14:41 +10:00
Nyall Dawson
0be4c67346 Avoid Coverity unchecked return value warnings 2017-09-01 08:12:40 +10:00
Nyall Dawson
e68835f12e Fix some possible leaks in tests 2017-09-01 08:00:59 +10:00
Nyall Dawson
6bddc38276 Fix possible divide by 0 (Thanks to Coverity) 2017-09-01 07:57:16 +10:00
Nyall Dawson
ed5e4b69c7 Switch some dynamic_casts to qobject_casts 2017-09-01 07:56:22 +10:00