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
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
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
Alexander Bruy
169d35f319
[processing] fix example script
2016-02-10 16:37:14 +02: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
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
Matthias Kuhn
9ad69adc35
Completely switch over to gml for processing test data
...
The different gdal versions have issues with geojson wrt null attribute types
2016-02-04 15:36:29 +01:00
Matthias Kuhn
29df8f3431
Fix broken output field types in test dataset
2016-02-04 13:36:43 +01:00
Matthias Kuhn
163894d055
[processing] Test densify with multipolygons
2016-02-04 13:36:43 +01:00
Matthias Kuhn
f0629ea5a9
[processing] Allow test creation from history window
2016-02-04 13:36:43 +01:00
Matthias Kuhn
8adc871eef
[processing] Add expected test datasets
2016-02-04 13:36:43 +01:00
Matthias Kuhn
ff04fd3b52
[processing] Add test suite
2016-02-04 13:36:43 +01:00
Matthias Kuhn
042a3db787
Add point and line test datasets
2016-02-04 13:36:13 +01:00
Matthias Kuhn
14d438db26
Add new polys and multipolys test datasets
2016-02-04 13:36:13 +01:00
Matthias Kuhn
c21889f945
Add qgis.testing module for generic qgis test helpers
2016-02-04 13:36:13 +01:00
Matthias Kuhn
a3d3ffdf02
[processing] Make polygons to lines NULL aware
2016-02-04 13:35:17 +01:00
Matthias Kuhn
1205082269
[Processing] Make DeleteHoles algorithm NULL geometry aware
2016-02-04 13:35:17 +01:00
Matthias Kuhn
cd10c6c88e
[processing] Add NULL geometry support to centroid algorithm
2016-02-04 13:35:17 +01:00
Matthias Kuhn
ce0d6102c3
[processing] Make centroid algorithm null geometry safe
2016-02-04 13:35:17 +01:00