10057 Commits

Author SHA1 Message Date
Alessandro Pasotti
0580e9eb76
Merge pull request #39154 from elpaso/bugfix-gh37666-no-geometry-in-fields
Fix DB manager does not show geography in query results
2020-10-03 11:59:54 +02:00
Nyall Dawson
6078fe4842 Cleanup color handling in QgsCodeEditor classes
Remove a bunch of duplicate default color definitions, and ensure
that all subclasses correctly respect any user defined color overrides,
yet that we still default to following the application theme's matching
color schemes.
2020-10-03 19:58:50 +10:00
nirvn
b7c28df02a [processing] Add missing layers overwrite parameter to two layout exports algorithms 2020-10-03 19:07:35 +10:00
Alessandro Pasotti
b0189b4149 Return a proper QgsProviderConnectionException from python table()
Fixes #39151
2020-10-03 19:06:05 +10:00
Alessandro Pasotti
ad96c991fc Fix DB manager does not show geography in query results
Fixes #37666
2020-10-03 09:33:59 +02:00
Nyall Dawson
fa28c42ab4 Remove use of deprecated QDateTime constructor 2020-10-02 19:02:52 +10:00
Alessandro Pasotti
7ef302d66b
Merge pull request #39126 from gacarrillor/pr_test_write_weak_relations
Test for writing weak relation attributes to XML (followup #39090)
2020-10-02 07:47:36 +02:00
Nyall Dawson
ab6bbfda1d Fix all remaining Qt QFlags deprecated constructor warnings 2020-10-02 13:04:49 +10:00
Germán Carrillo
7407e0f129 Test for writing weak relation attributes to XML (followup #39090) 2020-10-01 16:12:01 -05:00
nirvn
7af60f6eb1 [ogr] Fix decodeUri unable to handle newline characters in the subset string 2020-10-02 07:05:10 +10:00
Even Rouault
80f00f84c0 GML streaming parser / WFS: correctly deal with gml:id attributes before passing geometry to OGR (fixes #39081) 2020-10-02 07:03:58 +10:00
Alessandro Pasotti
ebeb016c69
Merge pull request #39043 from elpaso/bugfix-gh39036-39025-relations-quoting
PG fix relation discovery with table/schema that require quotes
2020-10-01 22:55:51 +02:00
Even Rouault
55ee2935a2
Merge pull request #39100 from rouault/ogrprovider_decodeuri
OGR provider: make decodeUri() set a 'databaseName' component
2020-09-30 20:24:24 +02:00
Even Rouault
30e5fe5011
OGR provider: make decodeUri() set a 'databaseName' component
Instead of hijacking 'layerName' which has a different semantics.

This modifies commit 84eed010f, which returns the database name in
the layerName URI component, which is not the right semantic, since
layerName should be a OGR layer name.

With this fix encodeUri() can roundtrip with decodeUri()
2020-09-30 15:05:58 +02:00
Paul Blottiere
9cf95ff49a
Merge pull request #38831 from pblottiere/fcngeomz_null
Check if a point is 3D before returning its z value
2020-09-30 09:28:14 +02:00
Paul Blottiere
8351e06e96
Merge pull request #38807 from pblottiere/gfi_null
GetFeatureInfo and no data values
2020-09-30 09:25:11 +02:00
Germap
612129e3cb
Fix writing weak relations to XML (#39090) 2020-09-30 08:26:48 +02:00
Even Rouault
9083c56241
tests: replace wrong uses of unittest.skip() by unittest.skipIf() 2020-09-29 22:46:01 +02:00
Alessandro Pasotti
52663c7db9
Spelling 2020-09-28 17:02:39 +02:00
Blottiere Paul
1aee462acc Add unit test 2020-09-28 16:29:56 +02:00
Blottiere Paul
ba33c3a767 Add unit test 2020-09-28 16:23:34 +02:00
Blottiere Paul
5c74aeeb11 Add unit tests for json format 2020-09-28 15:07:05 +02:00
Blottiere Paul
77cbd0c591 Update unit test 2020-09-28 14:59:23 +02:00
Blottiere Paul
053ae1edb5 Add a raw parameter to assert methods 2020-09-28 14:58:23 +02:00
Blottiere Paul
636942aae3 Add unit test for HTML format 2020-09-28 11:05:59 +02:00
Blottiere Paul
cd2032ff45 Add unit tests 2020-09-28 10:02:50 +02:00
Alessandro Pasotti
84e204954f PG raster: support mosaics with no metadata
Fixes #39017
2020-09-26 10:31:13 +10:00
Alessandro Pasotti
5870cba39f PG fix relation discovery with table/schema that require quotes
Fixes #39036 #39025  (temptative, because I could not reproduce the
exact issue without project and data)
2020-09-25 18:43:40 +02:00
root676
04ae0ca20d add correct control dataset for test 2020-09-25 15:50:58 +10:00
root676
0fe9955590 add testcase for variance from Int32 raster data type 2020-09-25 15:50:58 +10:00
Nyall Dawson
e6d316ace7 When restoring a custom CRS from XML, if the CRS does NOT match
any of the existing user defined CRS's on the QGIS profile then
still restore the previously saved name of the custom CRS

This way we will correctly show the CRS with its original
name as defined by the original project author (instead of just
"custom crs")
2020-09-25 14:52:56 +10:00
Nyall Dawson
d3833fd8d6 Don't refer to valid but custom CRSes as "Unknown CRS" and instead
use "Custom CRS" phrasing

Otherwise it's confusing and appears as though the CRS is "unknown-
as-in-missing" (as opposed to "existing-but-not-matching-a-known-crs").
2020-09-25 14:52:56 +10:00
Nyall Dawson
d586dda9de Drop unsupported Python fallback
We only support Python 3.6+
2020-09-25 11:24:14 +10:00
Karthikeyan Singaravelan
4adb937ced Fix warning regarding ABC import from collections 2020-09-25 11:24:14 +10:00
Nyall Dawson
776768eb9f Only build list of supported raster/vector filters and formats once
It's expensive to calculate, so only ever do it once...

Refs #38987
2020-09-25 11:13:52 +10:00
Nyall Dawson
c7633874aa
Merge pull request #38968 from 3nids/rel-ref-fix-ps
fix edge case where fkey is 0 in relation reference widget
2020-09-25 09:16:31 +10:00
Julien Cabieces
2379adbcad Fixes #37702 : move Forms style import/export under the right category 2020-09-25 09:07:47 +10:00
Denis Rouzaud
955d38e89a replace struct by QVariantMap 2020-09-25 08:42:55 +10:00
Denis Rouzaud
d7b9e0b095 Apply suggestions from code review
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2020-09-25 08:42:55 +10:00
Denis Rouzaud
5e4fe3da60 [locator] active filter lists all matching fields as results when typing '@'
results can be triggered to restrict the search to the given field
2020-09-25 08:42:55 +10:00
Alessandro Pasotti
411433c8cb Make test resilient to postgis versions 2020-09-25 08:41:40 +10:00
Alessandro Pasotti
ef6a7e5d9f Expose PG unrestricted empty tables as apatial items
also fix test
2020-09-25 08:41:40 +10:00
Alessandro Pasotti
83a4c7cde3 Fix unreported issue with fields not retrieved for certain PG tables 2020-09-25 08:41:40 +10:00
Julien Cabieces
f3a5b69691
[VirtualLayer] Catch exception while updating virtual layer stats
Fixes #34378
2020-09-25 08:37:33 +10:00
Alessandro Pasotti
3b6178ad3b
Merge pull request #38981 from elpaso/bugfix-gh38975-and-other-db-manager-issues
Bugfix gh38975 and other db manager issues
2020-09-24 18:42:56 +02:00
Alessandro Pasotti
c1702db1be Adjust test for DPIs 2020-09-24 09:04:36 +10:00
Alessandro Pasotti
2dc86db74c Test debug code 2020-09-24 09:04:36 +10:00
Alessandro Pasotti
83525abd5c Respect scale lock when panning/zooming the map
Fixes #38953 and #38417
2020-09-24 09:04:36 +10:00
Alessandro Pasotti
dd64c6d2a7 PG: accept duplicated fields for query layers
Fixes #38976
2020-09-23 16:04:59 +02:00
Denis Rouzaud
756b2930d4 fix edge case where fkey is 0 in relation reference widget
the list of identifiers was initialized with a list QVariant(Int) for Null, but they are equal to 0
now, we also control that the value is valid to determine if the identifier is not null
2020-09-23 13:58:22 +02:00