43875 Commits

Author SHA1 Message Date
Alessandro Pasotti
f97b5a54d0 Fix test for primary key constraints 2017-11-20 18:30:49 +01:00
Alessandro Pasotti
73d6765e89 [bugfix] Editing a GPKG layer added by d&d leads
... to error and data corruption

Fixes #16935 for GPKG (OGR), still  needs to check spatialite

Thanks to Matthias Kuhn for pointing me into the right direction
2017-11-20 17:04:17 +01:00
Nyall Dawson
c9b8ddce7f Fix crash in ogr provider when loading layers with subset strings 2017-11-20 21:06:16 +10:00
Nyall Dawson
89f6ca9f18 Fix memory leak 2017-11-20 21:06:16 +10:00
Alessandro Pasotti
4e16665b0e
Merge pull request #5674 from elpaso/bugfix-17489-virtual-layer-test-crash
[bugfix] virtual layer test crash
2017-11-20 09:43:01 +01:00
Alessandro Pasotti
b3e3bcd176 Modernize code (remove "on" from slots) 2017-11-20 09:02:11 +01:00
Alessandro Pasotti
4272f5d825 [bugfix] Do not crash when testing empty virtual layers
Fixes #17489

Require backporting
2017-11-20 08:55:08 +01:00
Matthias Kuhn
e9ce901adc
Merge pull request #5617 from signedav/longrelationids
Autogenerated relation names in dialog instead of ids
2017-11-20 07:34:42 +01:00
Matthias Kuhn
67b68a841d
Merge pull request #5578 from gacarrillor/iface_copy_paste_features
Expose through iface methods to copy/paste features between given layers
2017-11-20 07:24:41 +01:00
Matthias Kuhn
970a723655
Merge pull request #5666 from signedav/tooltiprelation
Tooltip of relationstrength in project properties
2017-11-20 07:22:19 +01:00
Matthias Kuhn
30ed315392
Merge pull request #5614 from signedav/constraintindicators
Constraint result not displayed in non editable mode
2017-11-20 07:13:39 +01:00
Nyall Dawson
eb2ef6a681
Merge pull request #5672 from nyalldawson/provider_fixes2
Add tests/fixes for some provider issues
2017-11-20 11:51:49 +11:00
Nyall Dawson
8243598ff0 Even more memory safety for ogr layers 2017-11-20 10:24:55 +10:00
Nyall Dawson
6db46f7325 [ogr] Safer layer memory management
Use unique_ptr with custom deleter to ensure that
QgsOgrProviderUtils::release is called
2017-11-20 10:13:47 +10:00
Nyall Dawson
163b2e20a8 [ogr] Fix incorrect feature counts after removing subset string, fix leak 2017-11-20 09:25:01 +10:00
Nyall Dawson
af5b2a750a Add some debugging asserts to ensure that layer renderers
are used in a thread safe way
2017-11-20 09:42:03 +11:00
Nyall Dawson
a0c6e05261 Spelling 2017-11-20 09:42:03 +11:00
Nyall Dawson
fe535c5f77 Play it safe and work with clones of symbol renderers
This fixes some definite crashes, e.g. saving a vector layer
with symbology, which is caused by accessing the same
layer renderer across different threads.

But I've also swapped a lot of non-threaded code to use
clones of the renderers for extra safety.
2017-11-20 09:42:03 +11:00
Nyall Dawson
d13eaa6a3b Improve documentation 2017-11-20 09:42:03 +11:00
Nyall Dawson
3405bc1598 Fix broken export of DXF labels 2017-11-20 08:29:17 +11:00
Nyall Dawson
4143ab6e64 Fix DXF export issue when an empty layer is selected 2017-11-20 08:29:17 +11:00
Nyall Dawson
8cf9f8fb6f Fix combining extent of valid rectangle with invalid rectangle results
in invalid rectangle
2017-11-20 08:29:17 +11:00
Matthias Kuhn
8f1021c5b8 Disable WMS server test 2017-11-19 21:15:59 +01:00
Nyall Dawson
6c4a8a246e Update WFS tests 2017-11-19 17:19:04 +10:00
Nyall Dawson
6508a5d36a Modernise code 2017-11-19 16:42:04 +10:00
Nyall Dawson
7cd8e38c47 Fix unnecessarily fussy close() for QgsMsSqlFeatureIterator 2017-11-19 16:28:49 +10:00
Nyall Dawson
6f3ebdee3c Safer iterator closing, by always calling ::close() instead of
directly manipulating mClosed

Fixes a crash in the memory data provider (also likely fixes
issues in other providers)
2017-11-19 16:27:46 +10:00
Nyall Dawson
d6eb8eccdd Add a bit of tolerance to WFS provider test
Was failing on Fedora 27
2017-11-19 16:20:02 +10:00
Nyall Dawson
705416c489 More consistent exception throwing in QgsCoordinateTransform::transformBoundingBox
Depending on the os and proj versions, we weren't always getting an
exception when a bad bounding box transform was made. So now we
explicitly check the result, and if everything was invalid
then we also throw an exception.

This makes the behavior consistent across different platforms,
and fixes running the provider tests on non Travis platforms
(highly likely also fixes various issues encountered while running
QGIS)
2017-11-19 16:17:30 +10:00
Nyall Dawson
957cf652aa Add some more provider tests for feature count when subset string is added/removed 2017-11-19 08:59:12 +10:00
Nyall Dawson
e9e7efc6d3 Fix incorrect extents returned by memory provider when subset string set 2017-11-19 08:58:46 +10:00
Nyall Dawson
1cfd6ee829 Add provider test to ensure that extent is correctly calculated
for layers with 1 point and also no features

The first scenario should return an 'empty' rectangle with x/y
min/max matching just the single point's coordinate, the
second scenario must return a null rectangle (not an empty 0,0
rectangle!)
2017-11-19 08:56:48 +10:00
Tom Kralidis
af6b4cc791
Merge pull request #5671 from tomkralidis/issue-17347
[bugfix] [MetaSearch] fix Esri ArcGIS service chaining (fixes #17347)
2017-11-17 20:01:40 -05:00
Tom Kralidis
3ea8b74e18 [bugfix] [MetaSearch] fix Esri ArcGIS service chaining (fixes #17347) 2017-11-17 16:24:30 -05:00
Tom Kralidis
1dab575b10
Merge pull request #5669 from elpaso/bugfix-17347-metasearch
[bugfix] MetaSearch: Add WMS/WMTS data button broken
2017-11-17 13:12:20 -05:00
Daniele Viganò
7cc7375184 Fedora 26 now provides Qt 5.9, enable 3D in rpm spec for it 2017-11-17 18:45:36 +01:00
Alessandro Pasotti
1b79177bc9 [bugfix] Fix WFS in metasearch
Fixes #17347
2017-11-17 17:35:04 +01:00
Alessandro Pasotti
a0639b1a20 [bugfix] Fix WMS in metasearch 2017-11-17 16:52:41 +01:00
rldhont
1989111fb1
Merge pull request #5664 from rldhont/server-getfeatureinfo-raster-display
[BUGFIX][Server] GetFeaturInfo: do not identify raster data if point …
2017-11-17 14:46:18 +01:00
Even Rouault
48c320beb0
Merge pull request #5649 from rouault/settings_main_canvas_preview_jobs
Add a setting to be able to disable preview jobs in main canvas
2017-11-16 19:11:12 +01:00
Alessandro Pasotti
d590e98c3f
Merge pull request #5644 from boundlessgeo/bd-2648-auth-thread-safety
[auth] Thread safe auth methods with recursive mutex
2017-11-16 18:52:28 +01:00
David
adc408f82c tooltip of relationstrength in project properties
improvement of the tooltip. more info, how to activate the duplicate button.
2017-11-16 18:43:21 +01:00
rldhont
861987daa3 [BUGFIX][Server] GetFeaturInfo: do not identify raster data if point not contains
Manual forwardporting with enhancement for raster data values displayed
2017-11-16 17:08:51 +01:00
Alessandro Pasotti
6f0659742b [auth] Morph the mutex from a pointer to a member var 2017-11-16 16:01:37 +01:00
Alessandro Pasotti
674467b95e [auth] Thread safe auth methods with recursive mutex
Add a mutex to the base class and use that
mutex to protect all public methods of the
authentication methods.
2017-11-16 16:01:37 +01:00
Alexander Bruy
29c8f7ceb2
Merge pull request #5641 from NaturalGIS/master
[processing] add support for GRASS 7.4
2017-11-16 14:06:00 +02:00
Harrissou Sant-anna
7c08b7155b [Bugfix]Fix Bookmarks xmax and ymin columns inversion (#5643)
(fix #16987)
2017-11-16 18:01:55 +07:00
David
995003153a member variable for constraint result visability
...as we had it for for constraint result (status).
now the setter are called when setting the editable mode changes.
and the getter to have the current visibility status.
2017-11-16 11:50:15 +01:00
Mathieu Pellerin
793fb6114b
[processing] add vertex id details to extract nodes algorithms 2017-11-16 17:46:47 +07:00
Alexander Bruy
ee8ef42c42 [processing] boolean fieds support in the Refactor Fields algorithm (fix #17168) 2017-11-16 12:46:00 +02:00