gisn8
45d40ad071
Set raise error to DbError
...
Thanks! Much more user-friendly.
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-10-18 06:47:16 +10:00
gisn8
92fcb86be6
Fix: clean up whitespace and formatting issues caught by Flake8
2024-10-18 06:47:16 +10:00
gisn8
cad4759212
Handle invalid view names with more than one period
...
I've updated the code as recommended and added an error message should there there be too many periods. Thanks for the suggestion!
2024-10-18 06:47:16 +10:00
gisn8
70e9694a12
Addressing Issue #35767 to allow for view creation into specified schema from [ Create a view ] in DBManager
2024-10-18 06:47:16 +10:00
Julien Cabieces
b264c34245
fix(ColorProject): Add new methods in sql_dictionary
2024-10-01 14:03:55 +10:00
Julien Cabieces
6c2c9b7750
feat(Expression): Add project_color_object function
...
Which contrary to project_color doesn't return a string
representation there is no rgb conversion involved
2024-10-01 14:03:55 +10:00
Nyall Dawson
ace84affb6
Don't try to translate boolean object
...
Fix #58025
2024-07-09 08:42:11 +10:00
Matthias Kuhn
52f98f8c83
Merge pull request #57834 from m-kuhn/no_pyuic
...
[plugins] Remove dependency on pyuic
2024-06-30 08:44:08 +02:00
Andrea Giudiceandrea
b120bad22d
[db manager] Allow Rename action for rasters in GPKG with GDAL >=3.10
2024-06-25 09:48:11 +10:00
Matthias Kuhn
fd663cc021
[plugins] Remove dependency on pyuic
...
Eases plugin development and deployment
2024-06-22 14:34:06 +02:00
Andrea Giudiceandrea
a840ebff04
[db manager] Fix delete raster layer in GeoPackage
2024-06-13 01:53:55 +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
2121644904
[DB Manager] Avoid printing HTML code in the Python console
2024-04-21 12:13:14 +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
b05d957b4d
Replaced QComboBox.activated[str]() with QComboBox.texActivated()
2024-03-05 05:31:11 +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
150543c6f1
Remove resources.qrc
2024-02-28 11:23:47 +10:00
Nyall Dawson
b45f68274c
Remove another compiled icon use
2024-02-28 11:23:47 +10:00
Nyall Dawson
b369f1e1b0
Port dbmanager away from compiled resources
...
These are not recommended, and removed in PyQt6
2024-02-28 11:23:47 +10:00
Nyall Dawson
86eb5daf9e
Remove unused class
2024-02-28 11:23:47 +10:00
Mathieu Pellerin
c3287126d5
[ui][db manager] Insure the information views are friendly to dark themes
2024-02-22 16:08:47 +10:00
Nyall Dawson
310b9172fb
pyqt5to6: raise warnings on fragile addAction calls
...
The object.addAction variants with multiple arguments have changed
signature in Qt 6. It's safer to explicitly create a QAction first
and then add to an object using:
my_action=QAction(...)
obj.addAction(my_action)
It's a considerably less fragile syntax to use in any case!
Fixes errors when trying to show context menu in Python console
on Qt 6 builds
2024-01-31 10:55:33 +10:00
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