1679 Commits

Author SHA1 Message Date
Nyall Dawson
9fa19f8098 Create QgsAbstractDatabaseProviderConnection::createVectorLayerExporterDestinationUri
Creates a URI for use with QgsVectorLayerExporter corresponding to given destination
table options for the backend. The URI format and extra options which
need to be passed to QgsVectorLayerExporter differ from provider to
provider, so this new method gives us a consistent, generic method we
can call to safely generate the right URI and options in a
cross-provider way.

Implemented for all database connection providers.
2025-03-10 14:40:27 +10:00
Nyall Dawson
2b7c21fc78 Move some logic to dialog, create connection method 2025-03-10 14:40:27 +10:00
Martin Dobias
c744d96ec1 Large scene support: shift scene's origin if the camera got too far
This should greatly improve our capability to handle large scenes (e.g. more than 50km across)

Also add a checkbox to the debug panel to allow devs temporarily turn it off.
2025-03-06 13:40:29 +01:00
Withalion
4a232bb9ac Fix review issues 2025-03-06 09:35:31 +01:00
qgis-bot
c582e723e6 auto sipify 🍺 2025-03-06 08:31:58 +00:00
Withalion
c5b74ed242 Fix review issues 2025-03-06 09:29:01 +01:00
Withalion
a3694b3ed2 Refactor includes 2025-03-06 09:29:01 +01:00
Withalion
72c6762b37 Add movement state for paintbrush tool 2025-03-06 09:29:01 +01:00
qgis-bot
73fe03f222 auto sipify 🍺 2025-03-05 09:05:38 +00:00
Nyall Dawson
13aae162f0 Promote marker symbol alignment enums to enum class, move to Qgis 2025-03-05 19:02:47 +10:00
qgis-bot
620be751dc auto sipify 🍺 2025-03-05 04:11:46 +00:00
qgis-bot
210378e500 auto sipify 🍺 2025-03-03 07:15:23 +00:00
signedav
222f2c61b1 Introducing new VectorAnchorPoint Baseline to align font markers to their baseline. In GUI only exposed to font marker settings. Beautiful VerticalAnchorMode removed because it's an overhead. 2025-03-03 17:12:32 +10:00
signedav
6b5396bd53 introduce VerticalAnchorMode in FontSymbols to have a proper 'hidden' setting for this mode making a differene between legacy and baseline (and future bounds) on the positioning of the characters 2025-03-03 17:12:32 +10:00
signedav
f80df88534 with the parameter fixverticalanchor, the position of the point is calculated with the same offset like the offset of the font. this differed before what leaded to issues. still the old way is available as legacy 2025-03-03 17:12:32 +10:00
qgis-bot
41ccfa934f auto sipify 🍺 2025-03-03 03:20:01 +00:00
Nyall Dawson
896e867e98 Add method to valid SQL options before creating query layer to QgsAbstractDatabaseProviderConnection
And implement for MS SQL provider.

Generates a user-friendly descriptive message when the SQL is
not valid for creating a layer in QGIS.
2025-03-03 13:16:40 +10:00
qgis-bot
f72383a365 auto sipify 🍺 2025-03-03 02:50:03 +00:00
Nyall Dawson
fa0c1f6219 A method to show completer with existing names in QgsNewNameDialog 2025-03-03 12:47:15 +10:00
qgis-bot
f3f363f095 auto sipify 🍺 2025-03-03 01:51:09 +00:00
Alexander Bruy
ce1b0c70ca address review comments and add test 2025-03-03 11:48:15 +10:00
Alexander Bruy
bb60704ed0 fetch feature with geometry when executing map layer action on feature
(fix #48964)
2025-03-03 11:48:15 +10:00
qgis-bot
992cdcbf62 auto sipify 🍺 2025-03-03 00:44:25 +00:00
qgis-bot
4de10b9d4c auto sipify 🍺 2025-02-28 08:35:24 +00:00
Nyall Dawson
febdd9d058 Add missing clone method to QgsNominatimLocatorFilter
Fixes missing accreditation message when triggering results
2025-02-28 18:32:28 +10:00
Nyall Dawson
632d196e62 Don't show useless "available in python as" notes in PyQGIS docs
Since the method name used in the docs is ALREADY the python version!
2025-02-28 18:32:09 +10:00
Nyall Dawson
43fef67bb1 Fix PyQGIS signal docs for QgsMapTool 2025-02-28 18:32:09 +10:00
qgis-bot
3b9eb96b45 auto sipify 🍺 2025-02-26 17:38:09 +00:00
Nyall Dawson
afdf432c74
Class should not be private 2025-02-26 12:09:26 +10:00
Nyall Dawson
bb4827e9f9
Create a class for managing stored database queries
This class is designed to be compatible with DB Manager's storage
of queries in projects, but extended to allow storage within
the local profile too.
2025-02-26 10:54:25 +10:00
Juho Ervasti
2e2a77ac7c SkipAttribute merge policy -> SetToNull 2025-02-25 16:20:38 +02:00
qgis-bot
886a9ce085 auto sipify 🍺 2025-02-25 08:02:39 +00:00
Nyall Dawson
090e9fb671 [feature] Saving/loading SQL queries from Execute SQL/Update SQL dialogs
This adds support for saving and loading SQL queries to a .sql text
file to the Execute SQL dialog and Update SQL dialogs.

Effectively, it ports this functionality from the DB Manager plugin
over to the core browser-based database connection facilities.

The UX has been designed to mimic the same functionality from
other standard parts of QGIS, eg the Processing Script Editor. Toolbar
actions are used accordingly, instead of the old text button approach
used in DB Manager.

Sponsored by City of Canning
2025-02-25 17:59:48 +10:00
Nyall Dawson
feb0dd789d Add a toolbar to Execute SQL dialog
Adds a toolbar to the Execute SQL window, with common actions
for cut/copy/paste/undo/redo/toggle find/clear

This matches the UI for the Execute SQL dialog to other similar
QGIS dialogs, eg the Processing script editor dialog
2025-02-25 17:59:48 +10:00
qgis-bot
9b78cf972d auto sipify 🍺 2025-02-23 16:04:49 +00:00
Ben
dc70921448 sipify 2025-02-23 11:29:45 +09:30
Ben
1d51900203 sipify 2025-02-23 11:29:45 +09:30
Ben
3b9a5f826d Add an option via a button in the categorized symbol renderer widget to delete
unused categories from the model/view. I.e. any categories which are not matched
in the attribute field or expression used to categorize the layer.
2025-02-23 11:29:45 +09:30
qgis-bot
46fe09f061 auto sipify 🍺 2025-02-21 21:32:20 +00:00
Denis Rouzaud
4c67afa698 remove old method 2025-02-22 07:26:43 +10:00
qgis-bot
f38d190f56 auto sipify 🍺 2025-02-21 19:26:45 +00:00
Nyall Dawson
a363ed1862 Fix leak when directly iterating feature in PyQGIS
Fixes #32944
2025-02-22 05:23:15 +10:00
Nyall Dawson
149c106ea0 Optimise conversion of QgsAttributes to Python objects
Applies the same optimisations as are present in the QgsFeature
methods to avoid the overhead of sip's QVariant conversion logic
when attributes are of a basic type
2025-02-22 05:22:41 +10:00
Juho Ervasti
ced40a2d8d Add more policies 2025-02-20 20:12:49 +02:00
qgis-bot
9b2870b8c7 auto sipify 🍺 2025-02-20 08:21:16 +00:00
Julien Cabieces
a96ea4a104
Merge pull request #60674 from nyalldawson/gdal-release-name
Show GDAL release nickname in about screen
2025-02-20 09:18:23 +01:00
qgis-bot
a51f4f6a35 auto sipify 🍺 2025-02-20 03:11:43 +00:00
Nyall Dawson
8911a5b726 Move QgsLegendStyle::Style enum to Qgis, rename to LegendComponent 2025-02-20 13:08:54 +10:00
Nyall Dawson
4f2bbe407a
Fix compilation on GDAL 3.11 2025-02-20 09:54:05 +10:00
qgis-bot
3a32e3e767 auto sipify 🍺 2025-02-19 22:47:39 +00:00