5349 Commits

Author SHA1 Message Date
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
Nyall Dawson
70644f1ddd Fix undo stack does not correctly roll back geometry edits
in a granular manner

Fixes #17658
2018-02-13 19:48:43 +11:00
mhugent
c996c61789
Merge branch 'master' into dxf_label_layers_v3 2018-02-13 09:23:05 +01:00
Marco Hugentobler
5c3a7554de Fix dxf export for label layers and add unit test 2018-02-13 08:55:26 +01:00
Denis Rouzaud
31e93aecae [dxf] use a struct instead of QPair for layers
there was a crash in Python in QgsDxfExport.addLayers due to a bad conversion
2018-02-12 09:22:21 -04:00
Nyall Dawson
981afb3da1 Make QgsLocator more thread safe
- add a clone() method to filters, and always search using the
clone instead of the original filter
- add a prepare() method to filters, which is always run in the
main thread and can be used to prepare the filter for safe
background execution (e.g. creating feature iterators in advance)
- don't use QtConcurrent to perform searches in background threads,
since it is not safe to use with QObjects
- instead manually create threads and ensure that cloned objects
are always moved to the thread that they will run in, to ensure
that they correctly have thread affinity with the thread in which
they are executed
2018-02-12 20:26:26 +10:00
rldhont
a9d61ff508
Merge pull request #6285 from tudorbarascu/dpi
fix server issue for double devicePixelRatio leading to DPI requests with decimals
2018-02-12 11:26:18 +01:00
Tudor Bărăscu
fbc6e4d11d add Server DPI test 2018-02-12 10:45:03 +02:00
Nyall Dawson
5431a2dbae Fix crash when repairing zero length linestring geometry
Fixes #18077
2018-02-12 13:43:14 +11:00