Nyall Dawson
1bc17e6c4f
Default to requesting all attributes for python expression functions
...
Fix #14985
2016-06-10 10:03:34 +10:00
Sandro Santilli
d1cac842d3
Reach the proper lower negative value bound
...
This was tricky, due to
https://www.postgresql.org/message-id/20160608160800.GB13838%40localhost
2016-06-09 11:48:32 +02:00
Sandro Santilli
0f0d6c09a4
Add more tests to cover full signed int ranges
2016-06-09 11:48:31 +02:00
Sandro Santilli
3accda6dab
Also test the estimatedmetadata code path for signedInts
2016-06-09 11:48:31 +02:00
Sandro Santilli
8b9a03536a
Fix handling of int64 primary keys to use a FidMap
...
There was a code duplication where only one path did the right
thing. This commit also removes the duplication.
2016-06-09 11:48:30 +02:00
Sandro Santilli
8bd6ffcfae
Fix expected test results for negative int4 and int2 FIDs
...
int8 negative identifier is still not handled correctly
2016-06-09 11:48:30 +02:00
Sandro Santilli
9a96414444
Fix storing attribute of feature with negative identifier and test
...
The test was also bogus in that it expected an inappropriate FID.
2016-06-09 11:48:30 +02:00
Nyall Dawson
cb4dacfebc
Fix style dock button not synced to dock state ( fix #14862 )
...
Add a new class QgsDockWidget which has finer control over setting
and retrieving the dock visibility, to account for dock widgets
which are open but hidden by other docks
2016-06-09 11:01:56 +10:00
Nyall Dawson
8a2e8715fb
Always use string comparison in expressions for string fields
...
Fixes #13204
2016-06-08 21:48:06 +10:00
Nyall Dawson
2265115f80
Fix issues rendering SVG with text ( fix #14644 , #14794 )
2016-06-08 18:46:01 +10:00
Nyall Dawson
0510da77ee
More tests for QgsAttributeTableConfig
2016-06-08 18:46:01 +10:00
Nyall Dawson
5301a97f81
Ensure that attribute table config is always initially populated
2016-06-07 12:02:42 +02:00
Matthias Kuhn
c07f02d6dc
QgsAbstractGeometryV2::wkbType always returns a valid type
2016-06-07 10:37:20 +02:00
Nyall Dawson
94e1d5e52e
Fix crash when using inverted polygons with heatmap renderer
...
Add methods to QgsRendererV2AbstractMetadata and QgsRendererV2Registry
to control renderer compatiblity by layer type. Should make it
easier to avoid this recurring bug popping up again in future.
Also add unit tests for QgsRendererV2Registry
Fix #14968
2016-06-07 13:33:31 +10:00
Nyall Dawson
787d206bed
Add some tests for QgsCRSCache
2016-06-07 07:26:34 +10:00
Nyall Dawson
0c6e289c8e
Update test masks
2016-06-07 07:26:34 +10:00
Nyall Dawson
ebdccf3869
Add QgsDistanceArea test for empty polygon
2016-06-07 07:26:34 +10:00
Nyall Dawson
b4f88c5396
Update test masks for arrow symbol layer
2016-06-04 19:16:47 +10:00
Nyall Dawson
05c9e07c5e
Fix shortcuts manager test on Qt5
2016-06-04 19:07:11 +10:00
Juergen E. Fischer
6e66eef1ef
add missing copyright headers
2016-06-03 10:33:09 +02:00
Even Rouault
edace8d0e6
Merge branch 'master' of github.com:qgis/QGIS
2016-06-02 17:58:11 +02:00
Sandro Mani
1828563331
Add QgsWKBTypes::zmType test
2016-06-02 13:36:08 +02:00
Even Rouault
3351f5533a
test_provider_ogr_sqlite.py: rename class to TestPyQgsOGRProviderSqlite and add it in CMakeLists.txt
2016-06-02 10:26:20 +02:00
Hugo Mercier
efd32ff2a8
Arrow symbol layer: option to repeat or not the arrow on the line
2016-06-02 09:52:03 +02:00
Hugo Mercier
6c9b588906
Arrow symbol layer: halved arrows and head width/height
...
The head size can now be configured by its width and its height
Arrows can also be rendered as "half arrows"
2016-06-02 09:52:03 +02:00
Nyall Dawson
0e03115d33
Add support for field renaming in QgsVectorLayer and edit buffer
2016-06-02 17:09:46 +10:00
Nyall Dawson
ccc67ef7a5
Rename attributes support for postgres provider
2016-06-02 17:09:45 +10:00
Nyall Dawson
251474a62e
Add support for attribute renaming to OGR provider
2016-06-02 17:09:45 +10:00
Nyall Dawson
58cc89019c
[FEATURE] Add support for attribute renaming to QgsVectorDataProvider
...
Implemented in memory layer provider only, not yet supported
in edit buffer or configurable in GUI
2016-06-02 17:09:45 +10:00
Nyall Dawson
7af33661eb
Fix leak in test
2016-06-02 13:18:56 +10:00
Nyall Dawson
e0c87ffe6b
[FEATURE] Move QgsShortcutsManager, QgsConfigureShortcutsDialog to gui
...
This allows plugins to reuse the shortcuts manager if they
want to add the ability for users to customise their shortcut
key sequences.
The shortcut manager has been extended to also handle customisation
of QShortcut objects as well as QActions.
2016-06-02 10:25:16 +10:00
Even Rouault
fb49f700f2
[OGR provider] Fix deleteAttributes() when mFirstFieldIsFid
2016-06-01 23:31:06 +02:00
Juergen E. Fischer
9efbf28d71
spelling fixes
2016-06-01 23:22:15 +02:00
Even Rouault
73ab289e1b
Fix Coverity warnings in testqgsogcutils.cpp and testqgsgdalprovider.cpp
2016-06-01 19:20:15 +02:00
Blottiere Paul
ea097becae
replace "" by QString()
2016-05-31 20:16:22 +02:00
Blottiere Paul
9ddb441855
fix test doc
2016-05-31 20:16:21 +02:00
Blottiere Paul
aba02f11e0
rename constraint to expression for method's name
2016-05-31 20:16:21 +02:00
Blottiere Paul
020d20a968
[FEATURE] constraints on widgets
2016-05-31 20:16:21 +02:00
Even Rouault
a023f55b9d
Merge pull request #3148 from rouault/wfs_better_behaviour_with_wrong_capability_extent
...
[WFS Provider] Implement workarounds to better behave when extent reported by capabilities is wrong
2016-05-30 17:46:35 +02:00
Even Rouault
86f6e7eb0d
Merge pull request #3142 from rouault/identify_result_float_precision
...
Do not print excessive decimals when identifying value on a Float32 raster
2016-05-30 17:46:08 +02:00
Even Rouault
4b130cbf42
Merge pull request #3134 from rouault/do_not_write_nodata_if_not_existing
...
Nodata related fixes
2016-05-30 17:45:48 +02:00
Nyall Dawson
ddd37ad8bd
Merge pull request #3138 from sbrunner/limit
...
Add and fix WFS server MAXFEATURES test
2016-05-30 12:15:32 +02:00
Nyall Dawson
00502620c0
[FEATURE] Allow web map style shift-drag zoom
...
When certain map tools are active, you can hold down shift
and drag a rectangle on the map to zoom to that area. This
is enabled for the map tools which are not selection tools
(since they use shift for adding to selection), and edit
tools.
Gracias a Girona!
2016-05-30 19:39:57 +10:00
Matthias Kuhn
ebf434037f
Merge pull request #3077 from pvalsecc/legend_url
...
WMS: Better logic to pick the legend URL
2016-05-30 10:17:58 +02:00
Stéphane Brunner
47cf9240b3
Add and fix WFS server MAXFEATURES test
...
It was not working when we do a POST with an XML
2016-05-30 07:33:51 +02:00
Even Rouault
2ac20c665f
[WFS Provider] Implement workarounds to better behave when extent reported by capabilities is wrong
...
Some servers like http://geodata.nationaalgeoregister.nl/bag/wfs report wrong layer
extent in their GetCapabilities response.
This commit implements a work around :
- in the 'Request only features intersecting extent' mode, if no feature is returned
in a BBOX enclosing the GetCapabilities extent, then query a single feature to
initialize the extent. The user will then to zoom again on layer and zoom out.
- in the other mode, the extent is updated with the feature geometry extent as soon
as features come from the server, and the user can zoom on layer regularly to se
it updated.
2016-05-29 18:02:53 +02:00
Nyall Dawson
5377952a1a
[FEATURE] ctrl+wheel on canvas results in smaller zoom
...
Holding down ctrl while using the mouse wheel to zoom in or
out now results in a finer zoom. This behaviour brings canvas
into line with composer.
2016-05-30 01:50:13 +10:00
Nyall Dawson
aa53cfe387
[composer] Prevent zooming out/in too far
...
Would cause issues when scale became 0 and it was impossible
to further interact with the composer.
2016-05-30 01:50:13 +10:00
Even Rouault
f3b635dcbb
[GDAL provider] Ignore nodata value that are not representable in the data type.
...
This is related to commit e0d38ba3f912b7ae6b34e66a44e529ec37394458. In case
we have to deal with an inconsitent raster where the nodata value is set to
a value not representable in the data type, ignore it. Otherwise, a NaN value
in a Byte raster would be cast as 0.
2016-05-29 12:55:23 +02:00
Patrick Valsecchi
69bed21837
WMS: Better logic to pick the legend URL
...
QGIS had two problems:
1) It was using the specified legend URL only if its mime type was matching
the layer's mime type. There is no reason for that.
2) When QGIS was using the default layer (empty string), it was not even
trying to find out in what style to pick the legend URL.
2016-05-29 12:47:57 +02:00