1243 Commits

Author SHA1 Message Date
Nyall Dawson
9b96cfde8b Move DOM compare function to QgsTestUtils 2025-03-24 10:25:39 +10:00
Nyall Dawson
b9b519950d [api] Add advanced network request preprocessor capabilities
Allows mutating the request, network operation and request data.

Intended for mocking eg post requests in unit tests
2025-03-24 10:25:39 +10:00
qgis-bot
13ba59af3e auto sipify 🍺 2025-03-14 05:01:07 +00:00
Julien Cabieces
d528d9ab31 refactor(LegendUrl): Make legend url part of server properties 2025-03-14 14:58:15 +10:00
qgis-bot
b5d94cdc06 auto sipify 🍺 2025-03-14 00:22:43 +00:00
Julien Cabieces
716af56b62 doc(RasterTemporal): fix documentation 2025-03-14 10:19:50 +10:00
Julien Cabieces
545e14350b feat(RasterTemporal): Add fixed date/time to raster temporal mode 2025-03-14 10:19:50 +10:00
qgis-bot
1a146380f8 auto sipify 🍺 2025-03-13 23:50:15 +00:00
Nyall Dawson
3cc451f7d5 Const correctness 2025-03-12 18:31:51 +10:00
qgis-bot
fcff8582dc auto sipify 🍺 2025-03-12 08:04:24 +00:00
Julien Cabieces
044b3aecf1
Merge pull request #60956 from nyalldawson/http_method_enum
Remove duplicate http method enums
2025-03-12 09:01:36 +01:00
Nyall Dawson
a2f9868f6f
Remove duplicate http method enums 2025-03-12 11:10:57 +10:00
qgis-bot
9e873c7bc9 auto sipify 🍺 2025-03-12 01:08:22 +00:00
Nyall Dawson
5f82c62212 Add missing sip downcasts for triangulated surface, polyhedral surface 2025-03-12 11:05:35 +10:00
Nyall Dawson
403bdbd405 Don't allow qgsgeometry_cast to cast away const 2025-03-12 11:05:35 +10:00
qgis-bot
f14a9a0caf auto sipify 🍺 2025-03-12 00:28:39 +00:00
Nyall Dawson
8fdd39fca9 Add support for setting output fields for QgsVectorLayerExporter
Allows remapping fields from the source fields, including specifying
the exact output field type, and source expression
2025-03-12 10:25:48 +10:00
qgis-bot
cf5320a4e1 auto sipify 🍺 2025-03-11 00:09:21 +00:00
Nyall Dawson
6681fead3c
Merge pull request #60912 from nyalldawson/browser_export_filter
Add optional extent, expression based filter when importing tables to database
2025-03-11 10:06:29 +10:00
Nyall Dawson
3a4357dcde
Fix typo 2025-03-11 08:28:41 +10:00
Nyall Dawson
eaafdc07ba
Fix build, docs 2025-03-10 18:11:55 +10:00
qgis-bot
41d5fc2c30 auto sipify 🍺 2025-03-10 04:43:19 +00:00
Nyall Dawson
f22baa38f1
Add expression based filter for QgsVectorLayerExporter 2025-03-10 14:41:21 +10:00
Nyall Dawson
32373e1999
Add extent filter for QgsVectorLayerExporter 2025-03-10 14:41:21 +10:00
Nyall Dawson
e17d9f722b
Add more flexible API variant for QgsVectorLayerExport.exportLayer 2025-03-10 14:41:20 +10:00
Nyall Dawson
56bc177e4e Add provider connection method to set table comment
Currently supported for Postgres provider only
2025-03-10 14:40:27 +10:00
Nyall Dawson
d5a812e3d4 Add metadata methods for primary key capabilities 2025-03-10 14:40:27 +10:00
Nyall Dawson
b1727f8b73 [api] Add connection metadata methods for default geometry column name, import capabilities 2025-03-10 14:40:27 +10:00
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
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
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
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
qgis-bot
3b9eb96b45 auto sipify 🍺 2025-02-26 17:38:09 +00: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
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