1220 Commits

Author SHA1 Message Date
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
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
Alexander Bruy
3d44213606 do not enable default Duplicate Feature and Digitize action for geometryless layers (refs #57916) 2025-02-20 08:44:48 +10:00
qgis-bot
6e46c78421 auto sipify 🍺 2025-02-19 02:08:09 +00:00
Nyall Dawson
2ffb8c00db Fix data-defined overrides ignored in legend text format
Fixes #60628
2025-02-19 12:05:10 +10:00
Juho Ervasti
a2fda5c1c6 Add largest geometry policy to enum 2025-02-18 15:58:12 +02:00
qgis-bot
adbc6f99af auto sipify 🍺 2025-02-17 14:45:29 +00:00
Nyall Dawson
a152cbecdb
Fix numerous leaks in sip method code
From the sip documentation:

    If state is not NULL then the location it points to is set to
    describe the state of the returned C/C++ instance and is the
    value returned by any %ConvertToTypeCode. The calling code
    must then release the value at some point to prevent a memory
    leak by calling sipReleaseType().

These methods were only calling sipReleaseType in the case that
an error occurred, which is incorrect -- it should always be
called.
2025-02-17 10:42:19 +10:00
qgis-bot
ec73cff2fc auto sipify 🍺 2025-02-14 18:48:23 +00:00
qgis-bot
013b3d3d6f auto sipify 🍺 2025-02-14 04:40:15 +00:00
Nyall Dawson
46b0436bbc Also fix render order for arrow line 2025-02-14 14:37:04 +10:00
Nyall Dawson
ed0bd43ee0 Also fix render order for filled line 2025-02-14 14:37:04 +10:00
Nyall Dawson
849063d4e5 Fix render order of symbol layers for filled marker subsymbol
If a filled marker had eg a centroid fill marker in the subsymbol,
this would always be rendered on top, regardless of the actual
defined order
2025-02-14 14:37:04 +10:00
qgis-bot
cf9738a99b auto sipify 🍺 2025-02-13 22:59:00 +00:00
Loïc Bartoletti
a6beaa96e8 docs(QgsCircle): pet doxygen 2025-02-14 08:56:11 +10:00
Loïc Bartoletti
e637eb3df2 move SegmentCalculationMethod to qgis.h 2025-02-14 08:56:11 +10:00
Loïc Bartoletti
157383300c feat(QgsCircle): Add segment calculation methods 2025-02-14 08:56:11 +10:00
qgis-bot
06502da4e5 auto sipify 🍺 2025-02-13 14:50:17 +00:00