31108 Commits

Author SHA1 Message Date
Alexander Bruy
1ffccf05c9 [processing] fix Modeler Calculator (ref #14305) 2016-02-16 20:59:50 +02:00
Sandro Santilli
2bd7f446b4 Fix signed 32bit integer overflow in PostgreSQL provider
Fixes #13958
Includes test for signed integer attributes
2016-02-16 17:40:34 +01:00
Alexander Bruy
a15f51e71b Merge pull request #2788 from medspx/processing_fix_vdbselect
[processing] аix GRASS7 v.db.select (fix #11212)
2016-02-16 18:26:23 +02:00
Hugo Mercier
103856c976 Add TODO QGIS 3 comments 2016-02-16 16:18:58 +01:00
Sandro Santilli
6365eb7ee6 Do not hard-code database connection parameters
Rely on libpq defaults instead (overridable via environment)

Fixes #14308
2016-02-16 15:28:19 +01:00
Matthias Kuhn
427e5e9ffd Fix android build 2016-02-16 14:56:33 +01:00
Matthias Kuhn
4a27e3037e Fix android build CMake 3.2 and don't force Python 3 with Qt5 2016-02-16 14:56:33 +01:00
Juergen E. Fischer
55727c3fcf add sip bindings to QgsCredentialsNone (followup 42bc9387) 2016-02-16 13:29:36 +01:00
Matthias Kuhn
54fa23c453 Merge pull request #2783 from SebDieBln/FixVectorDialogTitle
[UI] Make title of QgsNewVectorLayerDialog consistent
2016-02-16 13:19:01 +01:00
Juergen E. Fischer
42bc938700 add QgsCredentialsNone to not return any credentials and make it default instead of QgsCredentialsConsole (fixes #14269; reverts f8d2091) 2016-02-16 10:45:58 +01:00
Nyall Dawson
14f9a88811 Follow up c6c8277, fix bad behaviour of QgsBrowserModel introduced
by 44d9b35 (fix #14296)
2016-02-16 14:12:54 +11:00
Nyall Dawson
13c5848e5e Fix deselecting null category when categorising using expression
hides all features (fix #14273)
2016-02-16 13:19:36 +11:00
Nyall Dawson
4094bae960 Respect project ellipsoid and unit settings in virtual fields
Fix #12622, #4252
2016-02-16 12:12:40 +11:00
Nyall Dawson
2265eb90ec "Fix" QgsDistanceArea test on OSX
Test has revealed that the current algorithm used for ellipsoidal
calculations is unstable when measuring small very areas (eg < 1m2)

For now, modify the test to use larger areas
2016-02-16 12:11:27 +11:00
Juergen E. Fischer
f8d2091255 avoid credentials requests in PyQgsPostgresProvider 2016-02-16 00:34:14 +01:00
Juergen E. Fischer
e7e8d58aa8 oracle provider: don't acquire provider connection from pool 2016-02-15 23:21:08 +01:00
Nyall Dawson
54b998ff5d Disable PyQgsDistanceArea test on Travis OSX builds for now
Newly added tests have revealed a deep underlying issue with area
measurement on OSX
2016-02-16 06:19:44 +11:00
Sandro Santilli
ab580fbd0e Do not hard-code database connection parameters
Rely on libpq defaults instead (overridable via environment)
2016-02-15 18:17:34 +01:00
Hugo Mercier
942c5e5f73 Fix virtual layer file name handling (in Windows) 2016-02-15 16:44:17 +01:00
Matthias Kuhn
30910df388 Partially revert fa40e78
It failed to load functional plugins also
2016-02-15 12:51:53 +01:00
Matthias Kuhn
8a3e94365d Followup fa40e78, make strings translatable 2016-02-15 10:45:03 +01:00
Matthias Kuhn
fa40e78f60 [Plugins] disable plugins which crash on load 2016-02-15 10:23:39 +01:00
Radim Blazek
8af571ae06 [GRASS] use plain text for r/.proj, fixes partially #2575 2016-02-15 10:05:48 +01:00
Nyall Dawson
6f2d11b567 Fix setting a layer to act as a label obstacle does not stick 2016-02-15 20:06:18 +11:00
Nyall Dawson
59b216be74 Add missing sip bindings 2016-02-15 19:02:34 +11:00
Radim Blazek
5dd86aabfa [GRASS] removed absolute path from t.list, fixes #14241 2016-02-15 08:54:53 +01:00
volaya
961c35aeb5 [processing] fixed exporting multiple vector layers in SAGA and GRASS algs 2016-02-15 08:25:50 +01:00
Nyall Dawson
479d90a5ce Make measure tool respect project area unit setting
Also add unit tests for measure tool length and area measurement
to ensure they return the same results as field calculator
and identify tool

Refs #13209, #4252
2016-02-15 17:26:16 +11:00
Nyall Dawson
6dc0b6910f Move handling of angular units to QgsUnitTypes, swap angle and distance
radio buttons to combo boxes in options dialog for consistency with
project properties
2016-02-15 15:22:30 +11:00
Nyall Dawson
dfdcec8922 Fix project unit confusion (pt 3): add area unit settings with a
ton of available area units (eg m2, km2, mi2, ft2, yd2, ha, ac,
etc)

Adds a new option in both the QGIS setting and project properties to
set the units used for area measurements. Just like the distance
setting, this defaults to the units set in QGIS options, but can
then be overridden for specific projects.

The setting is respected for area calculations in:
- Attribute table field update bar
- Field calculator calculations
- Identify tool derived length and perimeter values

Also adds unit tests to ensure that area calculated by attribute table
update bar, field calculator and identify tool are consistent wrt
ellipsoidal calculations and area units.

TODO: make measure tool respect area setting

(refs #13209, #4252 and fixes #12939, #2402, #4857)
2016-02-15 12:47:36 +11:00
Nyall Dawson
35c2d185fb Add square nautical miles as a supported areal unit, add API
method for converting a distance unit to corresponding area unit
2016-02-15 12:47:36 +11:00
Jürgen Fischer
bd3bbc4707 Merge pull request #2790 from SebDieBln/ImproveVersionCheck
[Bugfix] Improve version check (refs #14022)
2016-02-15 02:18:23 +01:00
Juergen E. Fischer
36000463ff alternate fix for #13938 (folloup 5d989ab) 2016-02-15 02:16:43 +01:00
Juergen E. Fischer
6a3753e2e8 processing: fix translation context for AlgorithmDialogBase 2016-02-15 00:16:51 +01:00
Sebastian Dietrich
8359bfe40c add command line option to skip the version check at startup
--noversioncheck or -V are recognized
2016-02-15 00:12:31 +01:00
Sebastian Dietrich
25a727a05a show correct host name when version check fails to find host 2016-02-15 00:12:30 +01:00
Sebastian Dietrich
af88924ad9 new setting to allow disabling the version check at startup (refs #14022) 2016-02-15 00:12:30 +01:00
Juergen E. Fischer
5d989abd6f fix parsing of IS NOT and NOT LIKE, NOT ILIKE and dumping of IS (NOT ...) (fixes #13938) 2016-02-14 23:44:06 +01:00
Juergen E. Fischer
b7a9634264 don't run version check from build directory 2016-02-14 22:06:10 +01:00
Nyall Dawson
1f2cc3d051 Revert deprecation of QgsSymbolV2Utils::encode/decodeOutputUnit
...as it causes circular dependancies. Defer to 3.0 when we can
move QgsSymbolV2::OutputUnit to QgsUnitTypes
2016-02-15 07:24:35 +11:00
Juergen E. Fischer
9a081df105 fix git marker detection (fixes #13680) 2016-02-14 20:43:40 +01:00
Jürgen Fischer
25c289441e Merge pull request #2789 from SebDieBln/DbManager_FixMoveToSchema
[DbManager] Fix the 'MoveToSchema' functionality (fixes #14219)
2016-02-14 19:07:21 +01:00
Nyall Dawson
ddbdcf8ab1 Fix project unit confusion (pt 2): add project distance unit setting
Adds a new option in project properties to set the units used for
distance measurements. This setting defaults to the units set in
QGIS options, but can then be overridden for specific projects.

The setting is respected for length and perimeter calculations in:
- Attribute table field update bar
- Field calculator calculations
- Identify tool derived length and perimeter values
- Default unit shown in measure dialog

Also adds unit tests to ensure that length and perimeter calculated
by attribute table update bar, field calculator and identify tool
are consistent wrt ellipsoidal calculations and distance units.

(refs #13209, #12939, #2402, #4857, #4252)
2016-02-14 21:04:41 +11:00
Nyall Dawson
17a29f90d6 Add area units to QgsUnitTypes (refs #13209) 2016-02-14 14:57:38 +11:00
Nyall Dawson
85b51fd554 Fix outdated notes in QgsExpression docs 2016-02-14 14:57:38 +11:00
Nyall Dawson
6453907cb6 Fix project unit confusion (part 1)
- Remove existing (confusing and totally useless) "canvas units"
setting. This setting was supposed to be used for a confusing number
of totally different uses, eg changing the coordinate display
format and changing the default measurement units, but it was
so broken it did none of these things except change the
coordinate display and it only did that if OTF was off.

- Add a new "coordinate display" section in project settings,
which allows choice of format for coordinate display via a
combo box (this will also make it easy to add additional custom
formats in future), and make this setting work regardless of
whether OTF is on or off. This setting applies to both the
coordinate display in the status bar and coordinates shown
via the identify tool

(refs #13209, fixes #9730)
2016-02-14 14:57:38 +11:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Werner Macho
67d89355fa Merge pull request #2784 from Cracert/trans2
Add polish translator
2016-02-13 23:06:12 +01:00
Nyall Dawson
be4909776b Avoid warning 2016-02-13 20:59:54 +11:00
Nyall Dawson
c62a6e76d5 Optimise some loops over QMap/QHash objects
Avoid iterating over keys() and then later retrieving the matching
values, and instead use QMap/QHash iterators to retrieve both the
keys and values at the same time
2016-02-13 20:59:54 +11:00