Matthias Kuhn
fd663cc021
[plugins] Remove dependency on pyuic
...
Eases plugin development and deployment
2024-06-22 14:34:06 +02:00
Even Rouault
07067d37b5
python/plugins: turn on GDAL exceptions to avoid deprecation warning
...
Fixes #57344
2024-05-22 13:34:35 +10:00
Andrea Giudiceandrea
94f56380f9
[db manager] Fix field property editing
2024-04-05 15:34:09 +10:00
José de Paula R. N. Assis
b815d34d1e
Using QElapsedTimer instead of QTime in DB Manager
2024-03-05 05:31:11 +10:00
José de Paula R. N. Assis
57d60c7161
DB Manager: tweaks for running Qt6
...
Small tweaks to running in Qt 6(removed obsolete method calls
QTime().start() and QTime().elapsed(), and changed an overloaded slot
(QComboBox::activated()) to a non-overloaded one (textActivated()).
2024-03-05 05:31:11 +10:00
Nyall Dawson
b45f68274c
Remove another compiled icon use
2024-02-28 11:23:47 +10:00
Nyall Dawson
86eb5daf9e
Remove unused class
2024-02-28 11:23:47 +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
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
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
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
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
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
Evan Derickson
63e77371f6
List comprehensions to generators
2021-01-24 16:26: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
Alessandro Pasotti
6cbbf5ebd1
DB manager: PG read enum value for sslmode
...
Fixes #38245
2020-11-16 13:13:21 +10:00
Denis Rouzaud
eddf6feb45
modernize CMakeLists.txt files
2020-11-12 07:14:46 +10:00
Nyall Dawson
8c623b268e
Revert "DB manager: PG read enum value for sslmode"
...
This reverts commit 26e9ec98e76591286576d2dde098578877bef9c0.
It results in unfixable crashes on many platforms, likely due to some
issue in sip itself
Fixes #38393 , reopens #38245
The original bug (being asked twice for credentials) is preferable
over a hard crash
2020-10-23 08:22:15 +10:00
Alessandro Pasotti
eb3c78d12d
DB manager fix add comment while creating table
...
Fixes #38394
2020-09-25 10:56:13 +02: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
871f534ef9
Fix PG db-manager rename schema
...
Fixes #38998
2020-09-24 14:23:26 +02:00
Alessandro Pasotti
9880a751a9
DB manager Fix SHOW in PG queries
...
Fixes #8975
2020-09-23 15:14:04 +02:00
Alessandro Pasotti
ef02c54252
Be smart when adding limit: followup #8092
2020-09-22 09:26:13 +02:00