745 Commits

Author SHA1 Message Date
Nyall Dawson
c95df01a90 Advertise qt6 compatibility for metasearch plugin
There may be some sneaky issues still, but it at least appears to
function ok!
2024-01-31 10:55:33 +10:00
Nyall Dawson
8459fe1468 Replace use of QRegExp in db manager 2024-01-31 10:55:33 +10:00
Sandro Santilli
4fbc42fd2b Drop references to unused psycopg from db_manager 2024-01-25 18:03:38 +01:00
Alexander Bruy
b851e7cbe7 fix use of deprecated API in DB Manager (fix #54916) 2024-01-25 06:06:16 +10:00
Nyall Dawson
dd2f8a9d01 Upgrade enums 2024-01-22 19:02:40 +10:00
Nyall Dawson
e42abf7dc5 Update python files 2024-01-22 05:46:15 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Julien Cabieces
9d12ae8e6d [PyQt6] Add scope for enums and get rid of PyQt5.XXX import
this has been done automatically with the following comand line

./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./python/plugins/
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./tests/src/python/
2024-01-10 21:15:27 +10:00
Nyall Dawson
4567d97687 Apply suggestions from code review 2023-11-27 06:14:51 +10:00
Patrice Pineault
c28246e0cc Set input combo box to active layer when importing vector data. Fixes #55168 2023-11-27 06:14:51 +10:00
Nyall Dawson
13bc09e706 Remove redundant "import qgis" lines from python files
These were only needed way back in the early days of qgis 3.0
transition, now they have no effect
2023-11-25 07:40:02 +10:00
nicogodet
8fb3352348 Raise error if PostgreSQL version can't be parsed 2023-08-30 09:45:40 +02:00
Nicolas Godet
138e6dad65
Use raw string 2023-08-29 10:46:53 +02:00
Nicolas Godet
8ebf323381
More robust retrieval for PostgreSQL version 2023-08-29 09:44:20 +02:00
Matthias Kuhn
1626b7e928 Move tests to QgisUnitTests 2023-07-07 14:29:28 +10:00
Alexander Bruy
d0c7c6e930 fix formula for exponential interpolation
The scale_exp function renamed to scale_polynomial and has an alias
scale_exp to preserve backward compatibility.

A new function using correct formula was added as scale_exponential.
2023-05-31 09:02:01 +10:00
Andrea Giudiceandrea
0a68d2ca10 [dbmanager] Remove Delete and Rename actions for Project layers
since it is not possible to remove or rename the Virtual Layers / Project layers items
2023-05-25 09:05:31 +10:00
Etienne Trimaille
8f33d5ee70 Upgrade DBManager and Grass plugins to Python 3.X 2023-04-26 08:24:00 +10:00
Matthias Kuhn
f591542ffe
Merge pull request #50740 from DelazJ/txIssues 2022-12-17 08:37:12 +01:00
Harrissou Sant-anna
d6b5b070d8 Remove unicode string notifier from python files 2022-12-11 08:58:21 +01:00
Harrissou Sant-anna
9f127b2815 More string fixes and make a few more available for translation 2022-12-11 07:37:55 +01:00
Harrissou Sant-anna
6a4684b94d
Solve misc issues reported in Transifex 2022-10-30 09:20:33 +01:00
Andrea Giudiceandrea
f865b3f534 [db manager] Fix import layer encodings 2022-09-09 07:12:50 +10:00
Andrea Giudiceandrea
940d95c77a [db manager] Add tooltip to enconding settings 2022-09-09 07:12:50 +10:00
Nyall Dawson
c1dbc90d30 [db manager] Don't load preview layers into project
Fixes #47159
2022-06-16 13:54:55 +10:00
Sandro Santilli
51da2ef551 Trust primary key of layers setup by DBManager TopoViewer plugin
Removes two very expensive queries per TopoViewer instance
Closes #47389
2022-02-16 16:35:37 +01:00
nicogodet
ea981d89f9 Homogenize toMapLayer function definition 2021-11-08 10:13:28 +11:00
nicogodet
40df6ec76b Add geometryType() method to root Table class 2021-11-03 18:09:27 +01:00
Alessandro Pasotti
a329b88289 Fix DB manager trigger info dlg (less than)
Fix #45420
2021-10-19 05:37:20 +10:00
Augustin Trancart
061b810dac Fix behaviour of triggers when logging an existing layer
When adding logging via db manager to an existing layer, all the
time_start of existing features are still null. When we modify one
feature for the first time, the update trigger fires and insert a row
for the past state of the feature. In turn, this fires the INSERT
trigger for this row, and the execution goes inside the `if
NEW.time_start is NULL`, which set the end timestamp to NULL, making the
old row still visible in the _current view.

In other word, the insert trigger makes the assumption that a null start
timestamp means now, which is not true in the case described above.

This commit fixes this assumption by initially setting it to `-infinity`
for existing rows.
2021-10-06 12:00:39 +10:00
Alessandro Pasotti
5a572dacaa Fix DB manager postgis double query
Fixes #45318
2021-10-02 07:18:18 +10:00
Loïc Bartoletti
98ff01ea1c
Fix Z/M dimension URI via DB Manager. Fixes #34894 (#45223) 2021-09-28 21:14:45 +02:00
Alessandro Pasotti
387c403c2f First nail in the coffin of DB Manager
Replace DB Manager legend custom menu action with
C++ implementation for SQL layer
2021-07-22 10:18:13 +10:00
Andrea Giudiceandrea
828638f661
[DB Manager] Fix No Geometry tables
Avoid to add a nonexistent 'geometry' field to the fields list of No Geometry tables.
2021-04-23 08:25:14 +02:00
Andrea Giudiceandrea
2538612a21
[DB Manager] Fix recognition of project layers with Z/M…
…or CurvePolygon/MultyCurve/... geometry types as spatial layers.
2021-04-23 08:14:57 +02:00
Andrea Giudiceandrea
57f589dd36 [dbmanager] Fix deprecation warning
Replace deprecated QgsCodeEditor setMarginVisible() with setLineNumbersVisible() for SQL dialog windows
2021-03-29 08:18:39 +10:00
Julien Cabieces
1821d7af47 Run providers tests in different CI jobs 2021-03-23 10:53:38 +01:00
Marco Bernasocchi
60f788c91d
Allow loading GPKG layers with GEOMETRY type (#42253) 2021-03-16 15:58:55 +01:00
Nyall Dawson
1040fe8705 Don't silently swallow exceptions in python context managers
Notably this causes processing modules to silently fail to load
without any warnings if the required dependancies (such as pyscopg2)
are not installed
2021-03-04 07:39:47 +10:00
Morten Sickel
ead85b1004
Make the db managers import function more robust towards (some types of) invalid layers.
Fix #41152
2021-01-27 18:17:17 +10:00
Evan Derickson
d79100a204 List comprehension formatting 2021-01-24 16:34:35 -08:00
Evan Derickson
fe184e8e71 Formatting list comprehension 2021-01-24 16:34:03 -08:00
Evan Derickson
63e77371f6 List comprehensions to generators 2021-01-24 16:26:53 -08:00
Evan Derickson
8cd0f92139 Undo removal of else 2021-01-24 16:09:53 -08:00
Evan Derickson
beefb9ed45 Replace str format with str cast 2021-01-23 20:09:01 -08:00
Evan Derickson
4e41ee6db2 More list comprehensions, str.join() 2021-01-23 20:06:27 -08:00
Evan Derickson
4b50c1a7a7 For loops to list comprehension 2021-01-23 16:06:29 -08:00
Alessandro Pasotti
3a2b8f889a Optimize column information 2020-12-21 11:36:47 +01:00
Matthias Kuhn
bcbf71ea2f
Merge pull request #39947 from m-kuhn/db_mgr_error
[db manager] Show error messages directly in place
2020-11-29 20:33:43 +01:00
Matthias Kuhn
2a30091f2c Remove unused import 2020-11-25 20:44:16 +01:00