Juergen E. Fischer
5c4bf99ce2
debian packaging update: manually merge some changes from PR#2818 and
...
some spelling fixes.
2016-02-20 16:55:16 +01:00
Alvaro Huarte
1a29030383
Remove duplicate methods of conversion
...
Remove duplicate methods of conversion of map coordinates to screen
coordinates
2016-02-19 09:43:01 +01:00
Nyall Dawson
4285d70b6c
Fix "feature rendering order" checkbox is not honored ( fix #14323 )
2016-02-19 10:11:43 +11:00
Nyall Dawson
87661a03cd
Move field icon calculation to QgsFields, show correct field type
...
icons in attribute table column filter menu (instead of new
attribute icon) and in field table in vector properties
2016-02-17 21:39:58 +11:00
Juergen E. Fischer
55727c3fcf
add sip bindings to QgsCredentialsNone (followup 42bc9387)
2016-02-16 13:29:36 +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
59b216be74
Add missing sip bindings
2016-02-15 19:02:34 +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
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
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
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
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
Juergen E. Fischer
2ea3d7744d
port more WKB parsing to Qgs(Const)WkbPtr including bounds checking
2016-02-09 14:20:07 +01: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
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
Nyall Dawson
ddabad247f
Move unit handling helpers out of QGis and QgsSymbolLayerUtils
...
into a new QgsUnitTypes helper class. Add unit tests.
TODO QGIS 3.0: Move QGis::UnitType and QgsSymbolV2::OutputUnit
to QgsUnitTypes
2016-02-04 08:01:32 +11:00
Nyall Dawson
b6c714ac20
Improve API, docs for QgsDistanceArea
2016-02-03 18:57:10 +11:00
Nyall Dawson
ac328a6993
Fix QgsDataItem docs
2016-02-03 16:30:58 +11:00
Nyall Dawson
d4ea95ea49
Improve QgsCoordinateReferenceSystem documentation
2016-02-03 07:52:40 +11:00
Nyall Dawson
c3a57434d9
Fix clazy 'pass small and trivially-copyable type by value' warnings
2016-02-02 19:47:21 +11:00
Nyall Dawson
f3c7ab61e6
Spelling fixes, updates to chkspelling.sh
2016-02-02 19:47:21 +11:00
Juergen E. Fischer
490236f2f2
spelling fixes
2016-02-02 02:37:15 +01:00
Denis Rouzaud
2797ed79b0
Merge pull request #2743 from 3nids/testfieldwidget2
...
Fix label expression/field lose when removing a join in layer properties
2016-02-01 04:54:29 -05:00
Denis Rouzaud
e453c1588d
remove join returns true in case of success
2016-02-01 03:38:16 -05:00
Nyall Dawson
7fb9b68cfe
Don't report a postgis import was successful when the user cancels
...
it mid-way through
2016-01-31 22:54:11 +11:00
Juergen E. Fischer
ecfcd319ef
sip sync QgsFeatureRendererV2
2016-01-28 12:20:20 +01:00
Nyall Dawson
082f113197
Readd missing sip binding
2016-01-28 21:43:09 +11:00
Nyall Dawson
4aafed8366
Indentation
2016-01-28 20:51:22 +11:00
Juergen E. Fischer
4dd76da7f8
geometry sip sync and some cosmetics
2016-01-28 10:31:08 +01:00
Martin Dobias
fa66583e6f
Improve indexing strategy for snapping ( fixes #12578 )
...
Implemented a simple heuristic that should keep the number of cached
features per layer reasonable - and thus lower the amount of consumed
memory and CPU for big layers.
2016-01-27 23:16:47 +01:00
Martin Dobias
86307ffc7c
Add debug capabilities to snapping utils
2016-01-27 23:16:46 +01:00
Nyall Dawson
0d433b092e
Fix warnings
2016-01-27 20:56:32 +11:00
Nyall Dawson
4ec0912001
Fix inconsistent behaviour when deleting nodes with node tool
...
(fix #14168 )
2016-01-27 20:12:20 +11:00
Nyall Dawson
c7204cc722
Fix editing composer legend titles while filtering enabled ( fix #11459 )
2016-01-27 15:51:47 +11:00
Nyall Dawson
6893f4941d
Properly fix doxygen warning
2016-01-27 14:40:51 +11:00
Nyall Dawson
59f418b763
Revert "Fix doxygen warning"
...
This reverts commit 9e1a2359ba7aab9094544f85ba04efceceedf5f6.
2016-01-27 14:40:01 +11:00
Nyall Dawson
9e1a2359ba
Fix doxygen warning
2016-01-27 14:38:05 +11:00
Nyall Dawson
fe95e4eeea
Show variables from symbol scope in symbol layer widget expression
...
builders. (This lets users know they are available).
Also swap some variable names to static strings for speed.
2016-01-27 13:58:32 +11:00
Nyall Dawson
39f0035246
Improve preview of current variable value in expression builder
2016-01-27 11:36:56 +11:00
Nyall Dawson
3744ac2fc4
Fix categorised renderer does not store changes to the source symbol
...
Avoids the frustrating situation where changes to a symbol in the
categorised renderer are lost when the layer properties window
is reopened
Also improve docs and fix a leak in the Python bindings
2016-01-27 09:58:47 +11:00
Nyall Dawson
24d9c65494
Fix more classes which violate the rule-of-three
...
Also remove some empty destructors
2016-01-26 14:24:45 +11:00
Martin Dobias
492c1a9ff0
Improve documentation for renderer registry metadata (refs #13973 )
2016-01-25 18:16:32 +01:00
Martin Dobias
83eed1109c
Improve renderer class documentation (refs #14025 )
2016-01-25 18:16:32 +01:00
Matthias Kuhn
b5ee06dc28
Merge pull request #2702 from alexbruy/styles-bindings
...
fix SIP bindings for listStylesInDatabase() method (fix #11210 )
2016-01-25 17:39:20 +01:00
Nyall Dawson
39e1f68ccc
Fix filtering legend content by map when renderer contains
...
duplicate symbols (fix #14131 )
Now, we don't test for map content using the symbols but instead
use the legend key during the hit test
2016-01-25 14:43:54 +11:00