6047 Commits

Author SHA1 Message Date
Nyall Dawson
59b216be74 Add missing sip bindings 2016-02-15 19:02:34 +11:00
volaya
961c35aeb5 [processing] fixed exporting multiple vector layers in SAGA and GRASS algs 2016-02-15 08:25:50 +01: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
Juergen E. Fischer
6a3753e2e8 processing: fix translation context for AlgorithmDialogBase 2016-02-15 00:16:51 +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
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
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Juergen E. Fischer
62f272e44d processing: fix path setting for saga 2016-02-13 02:00:10 +01:00
Nyall Dawson
9f772bce29 Add API call for setting preferred distance unit for QgsExpression
(refs #13209, #12939, #4857)
2016-02-13 11:36:51 +11:00
Sebastian Dietrich
0ab3653831 [DbManager] Fix the 'MoveToSchema' functionality (fixes #14219) 2016-02-13 01:01:05 +01:00
Médéric RIBREUX
8e9b8c77cf [Processing] Fix GRASS7 v.db.select (fixes Redmine #11212) 2016-02-12 21:38:36 +01:00
Médéric Ribreux
4196293f06 [Processing] GRASS7 v.distance (implements Redmine #12817) 2016-02-12 17:51:37 +01:00
Médéric Ribreux
b780d7caf1 r.reclass inline rules also for MS-Windows 2016-02-12 11:35:43 +01:00
Nyall Dawson
d0e595f85f Indentation 2016-02-12 20:54:25 +11:00
Nyall Dawson
229ef29170 If no geomCalculator is set for QgsExpression, perform cartesian
calculations for $length, $area, $perimeter (refs #13209)

ie, the default is now to use planimeteric calculations unless
a geomCalculator has been explicitly set
2016-02-12 20:54:25 +11:00
Martin Dobias
0c478d0148 Merge pull request #2729 from dgoedkoop/digitisecrs2
Fix floating point inaccuracies when digitizing (to fix bug #13745)
2016-02-12 09:46:10 +08:00
Daan Goedkoop
384da5665e Fix floating point inaccuracies when digitizing (to fix bug #13745) 2016-02-11 21:05:34 +01:00
Alexander Bruy
8ba6149d7c [processing] make DTM2ASCII tool visible in toolbox 2016-02-11 19:45:45 +02:00
Médéric Ribreux
43b39efd73 [Processing] Add GRASS7 r.reclass inline rules (implements Redmine #5583) 2016-02-11 16:32:05 +01:00
Alexander Bruy
0d652b2fe0 Merge pull request #2774 from medspx/processing_fix_parameternumber
[processing] fix ParameterNumber float detection
2016-02-11 13:47:48 +02:00
Médéric Ribreux
477283770f [Processing] Add r.null GRASS7 algorithm (implements Redmine #6893) 2016-02-11 12:09:28 +01:00
Alexander Bruy
169d35f319 [processing] fix example script 2016-02-10 16:37:14 +02:00
Médéric RIBREUX
c931e1e715 [Processing] Split v.generalize (implements Redmine #5707) 2016-02-09 21:02:18 +01:00
Giovanni Manghi
e9e4954c58 Processing: remove wrong/non mandatory default extent for raster analysis 2016-02-09 19:37:00 +00:00
Médéric RIBREUX
5d19a3b21b [Processing] Fix ParameterNumber float detection (with unit tests) 2016-02-09 20:07:32 +01:00
Juergen E. Fischer
2ea3d7744d port more WKB parsing to Qgs(Const)WkbPtr including bounds checking 2016-02-09 14:20:07 +01:00
Juergen E. Fischer
ded1ebb33b indentation fixes 2016-02-09 14:19:13 +01:00
Alexander Bruy
475911f75f Merge pull request #2768 from NaturalGIS/processing_fix_gdal_string
[processing] fix non-translatable string in GDAL/Aspect
2016-02-09 15:12:38 +02:00
Alexander Bruy
686ad242c1 Merge pull request #2769 from NaturalGIS/processing_fix_gdal_optional_parameters
[processing] fix a few GDAL/OGR optional parameters
2016-02-09 15:12:15 +02:00
Alexander Bruy
a5ddf92dfb Merge pull request #2770 from NaturalGIS/processing_fix_ogr_convert_format
[processing] fix OGR/Convert format tool
2016-02-09 15:11:32 +02:00
Giovanni Manghi
e38222b0a4 Processing: add missing v.surf.rst.line tool to GRASS7 2016-02-09 10:41:43 +00:00
Hugo Mercier
fa78ccf74d Deprecate old WkbType in QgsDataSourceUri 2016-02-09 10:44:41 +01:00
Hugo Mercier
e2123c79e5 Fix addFeature and addPart maptool for layers with a Z 2016-02-09 10:44:41 +01:00
volaya
27da8bcd63 Merge pull request #2767 from NaturalGIS/processing_fix_gdal_nearblack
fix Processing GDAL near black tool
2016-02-09 10:01:52 +01:00
Médéric Ribreux
f49dbdc299 [Processing] Fix overwrite for GRASS7 (Redmine #13488) 2016-02-09 09:46:12 +01:00
Giovanni Manghi
24ce6d239b fix Processing OGR/Convert format tool 2016-02-08 21:59:15 +00:00
Giovanni Manghi
7072db4c47 fix a few GDAL/OGR Processing optional parameters 2016-02-08 21:05:23 +00:00
Giovanni Manghi
3593a3a12c fix non-translatable string in Processing GDAL/Aspect 2016-02-08 19:18:04 +00:00
Giovanni Manghi
5e5ddafb0e fix Processing GDAL near black tool 2016-02-08 19:02:17 +00:00
volaya
964ae1ff04 [processing] fixed typo in saga supported versions 2016-02-08 08:45:32 +01:00
Juergen E. Fischer
1ae03be59b add internal nose2 (not available on precise) and update internal six
for processing tests
2016-02-06 03:12:25 +01:00
Nyall Dawson
99cef42eef Improve QgsDistanceArea API to make it easier to determine units
for returned distances, add unit tests
2016-02-05 20:13:10 +11:00
Alexander Bruy
dbd83b3ee1 Merge pull request #2733 from nirvn/processing_memory_datetime
[processing] add date, datetime, time fields to memory output
2016-02-04 20:10:51 +02:00
Alexander Bruy
c35567b327 Merge pull request #2746 from NaturalGIS/fix_grass_r_slope_aspect
[processing] add parameter to GRASS 64/70 r.slope.aspect to allow use region resolution (ref #9979)
2016-02-04 20:09:54 +02:00
Matthias Kuhn
8b84f3adb0 Ignore extra fields on control layer 2016-02-04 17:37:52 +01:00
Matthias Kuhn
70b4f3a242 Don't compare field count 2016-02-04 16:44:11 +01:00