Nyall Dawson
9e023bdab2
[afs] Fix/optimise handling of filter rect feature requests
...
Before a filter rect request would usually force fetching every
single feature from the server before the request could be
complete.
Instead, if a filter rect is passed we first obtain a list
from the server of matching features within this rect, and
then iterate only over those.
Fixes broken (multi-minute hang) identify tool use on AFS
layers.
2018-02-20 13:20:38 +10:00
Nyall Dawson
7307650862
Fix accidental test change
2018-02-20 13:20:38 +10:00
Nyall Dawson
4af24bf878
More provider check handling of extra fields
2018-02-20 13:20:38 +10:00
Nyall Dawson
7711f1335a
[afs] Ensure that null attributes are correctly mapped for PyQGIS
2018-02-20 13:20:38 +10:00
Nyall Dawson
7d620e28f1
Make feature source/provider test handle additional fields
2018-02-20 13:20:38 +10:00
Nyall Dawson
87207dde79
[afs] Fix provider ignores FilterFids requests and returns
...
incorrect features
2018-02-20 13:20:38 +10:00
Nyall Dawson
394e1a1bb1
[afs] Remove unused code
2018-02-20 13:20:37 +10:00
Nyall Dawson
258527ccd2
Don't try to run provider tests which require subsetStrings on providers which don't support them
2018-02-20 13:20:37 +10:00
Nyall Dawson
10ceac60ac
Exempt AFS provider from certain provider tests
2018-02-20 13:20:37 +10:00
Nyall Dawson
b434ab10eb
Start implementing the provider test suite for ArcGIS Feature Server provider
2018-02-20 13:20:37 +10:00
Nyall Dawson
3d4f6f82bb
Followup 0548f4, fixes to layer metadata and metadata widget
...
Address outstanding review requests so that this PR can be merged
2018-02-20 11:10:55 +10:00
Juergen E. Fischer
f14b729e3b
fix some references to PROJ.4
2018-02-19 22:12:09 +01:00
Denis Rouzaud
4d6b0e6aea
extend QgsSettings::enumSettingValue to handle flags (with test)
2018-02-19 05:55:09 -09:00
Denis Rouzaud
a7ca742d30
fix double/int comparison
2018-02-19 02:08:36 -09:00
Denis Rouzaud
3f9963e248
tweak match from nearestEdge to return an Area type
...
also make that VisitorArea return the given point as the match point
2018-02-19 02:08:36 -09:00
Denis Rouzaud
1d0043edd7
add test for QgsPointLocator::nearestArea
2018-02-19 02:08:36 -09:00
Nyall Dawson
0e3af9c6a9
[layouts] Remove use of QStyleOptionGraphicsItem from QgsLayoutItem API
...
Turns out the useful methods in QStyleOptionGraphicsItem were deprecated
in Qt 5.10. To future protect our API this replaces all public
use of QStyleOptionGraphicsItem, so that we're free to revise
the internals of how we use QStyleOptionGraphicsItem without breaking
the public QGIS API.
2018-02-19 19:18:24 +11:00
Juergen E. Fischer
2c53630747
add missing copyright headers
2018-02-18 20:53:40 +01:00
Blottiere Paul
323e75c029
Merge pull request #5823 from pblottiere/bugfix_curvedstrings_z
...
[bugfix] Fixes #17576 and #17574 Add Z support and fixes crashes
2018-02-18 10:58:09 +00:00
Denis Rouzaud
b0bc2b20c7
improve test for QgsSettings::enumSettingValue
2018-02-17 09:33:35 -09:00
Denis Rouzaud
f31ba78ccd
Merge pull request #6364 from 3nids/setting_enum_value
...
[settings] add method to get value for a setting associated to an enum
2018-02-17 06:28:35 -09:00
Denis Rouzaud
bda67ada90
add test for QgsSettings::enumSettingValue
2018-02-17 10:46:01 -04:00
Juergen E. Fischer
125370076f
string truncations now uses ellipses (followup c3573b163)
2018-02-17 14:14:28 +01:00
Nyall Dawson
7e4cdc024b
Update test
2018-02-17 19:10:46 +11:00
Nyall Dawson
877efca82e
Correct test
2018-02-17 19:10:04 +11:00
Nyall Dawson
141caddb62
Add test that providers always accept features with null geometry
2018-02-17 19:10:04 +11:00
Nyall Dawson
0e68a3e775
Rollback rejection of features with too many attributes
...
Turns out editable joins rely on this situation. Instead change
the providers to warn on this occurance, and make the memory
provider alone truncate the extra attributes (since it doesn't
have an external backend or disk based format which natively
applies this truncation)
2018-02-17 19:10:04 +11:00
Nyall Dawson
5ee54e095d
Fix test
2018-02-17 19:10:04 +11:00
Nyall Dawson
0a5d48612c
Add provider test to ensure providers reject adding features
...
with geometry type mismatch
2018-02-17 19:10:04 +11:00
Nyall Dawson
4ae476da99
Add provider test to ensure that adding features to a provider
...
with MORE attributes than expected results in a failure
We need to flag these and not silently discard the extra
attributes resulting in loss of information -- if thisi
situation occurs there's a deeper bug present whic
needs to be addressed.
2018-02-17 19:10:04 +11:00
Nyall Dawson
52585cf226
Fix memory provider handling of missing attributes when adding features
...
Ensure that features added to a memory provider (and returned when
fetching features from a memory provider) always have the correct
number of attributes present.
Fixes many random behavior bugs when working with memory providers.
2018-02-16 22:36:23 +11:00
Nyall Dawson
6d3b37a85e
Add provider test to ensure that features added with missing attributes
...
are transparently padded out with NULL attributes to the required fields
length
Currently the behavior is inconsistent - some providers reject these
features, others pad them out, and worse -- some add them with
missing attributes (memory provider), causing ALL sorts of flow-on,
difficult to debug issues.
2018-02-16 22:36:23 +11:00
Blottiere Paul
cd4d9d0b0d
Drop z dimension in case of circle from tangential points
2018-02-16 10:06:42 +00:00
Blottiere Paul
12392f75b3
Some clean
2018-02-16 10:06:42 +00:00
Blottiere Paul
ce9e012be8
Add some tests for regular polygon map tools
2018-02-16 10:06:42 +00:00
Blottiere Paul
d7860e25b0
Add some tests for ellipse map tools
2018-02-16 10:06:42 +00:00
Blottiere Paul
868c869e88
Add some tests for ellipse map tools
2018-02-16 10:06:42 +00:00
Blottiere Paul
58610b4298
Add some tests for circle map tools
2018-02-16 10:06:42 +00:00
Blottiere Paul
916e4bae2e
Add some tests for circular string map tools
2018-02-16 10:06:42 +00:00
Blottiere Paul
d2ed783de2
Add test for z values on QgsMapToolAddFeature with LineStringZ
2018-02-16 10:06:42 +00:00
Alessandro Pasotti
0310c1d253
Merge pull request #6354 from elpaso/NathanW2-settings_17670
...
Nathan w2 settings 17670
2018-02-16 09:57:58 +01:00
Nyall Dawson
14787ffb32
[processing] Add easy method to retrieve layers from context
...
Allows python algorithms to call
layer = context.getMapLayer(other_alg_results['OUTPUT'] )
2018-02-16 19:49:30 +11:00
Nyall Dawson
a6a36acc14
Merge pull request #6316 from nyalldawson/locator_thread
...
Make QgsLocator more thread safe
2018-02-16 12:36:09 +11:00
Nyall Dawson
d380c61096
Merge pull request #6353 from nyalldawson/proc_normalize
...
[processing] Don't replace " with ' when handling layer paths
2018-02-16 12:33:50 +11:00
Alessandro Pasotti
e4407c6bb4
Remove debug output from stdout
2018-02-15 14:39:21 +01:00
Marco Hugentobler
fa815f023f
Fix warning
2018-02-15 11:17:35 +01:00
Nyall Dawson
5c40975fe7
[processing] Don't replace " with ' when handling layer paths
...
Since netcdf, and possibly other gdal drivers, use layer uris
of the format NETCDF:"/tmp/test.nc":var1 we can't safely
remove or reformat these quotations.
2018-02-15 16:43:21 +10:00
Mathieu Pellerin
543e4f0dd1
[attribute table] fix long UI freeze when resizing columns for large filtered datasets ( #6341 )
2018-02-14 21:25:43 +07:00
Marco Hugentobler
256e4419b2
Escape blanks in MTEXT and add unit test
2018-02-13 15:50:42 +01:00
mhugent
bf4ba08a40
Merge pull request #6331 from mhugent/dxf_label_layers_v3
...
Fix dxf export for label layers and add unit test
2018-02-13 10:46:54 +01:00