1103 Commits

Author SHA1 Message Date
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
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
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
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
Nyall Dawson
1328a2bb4b Add Python hash for QgsUnsetAttributeValue 2025-02-13 19:46:34 +10:00
qgis-bot
482fa624e4 auto sipify 🍺 2025-02-13 04:57:07 +00:00
Nyall Dawson
a48ec1012f Add methods to directly buffer/offset GEOS geometry in QgsGeos
These methods directly work with GEOS geometries and avoid the
forced conversions to/from QgsAbstractGeometry objects, and are
intended for use in chained operations where the intermediate conversions
are not required.
2025-02-13 14:54:20 +10:00
Nyall Dawson
8f4893d8b2 Move some useful utility methods to QgsSymbolLayerUtils 2025-02-13 14:54:20 +10:00
Nyall Dawson
60360f9b97 Add method to directly convert QgsAbstractGeometry to QPolygonF lists
This overload avoids creating a QgsGeometry if we only have a
QgsAbstractGeometry pointer object to convert
2025-02-13 14:54:20 +10:00
qgis-bot
af393490eb auto sipify 🍺 2025-02-11 20:36:08 +00:00
Nyall Dawson
e7e41e84f8 Add equality operators for QgsDataSourceUri, missing setters 2025-02-12 06:33:14 +10:00
Nyall Dawson
148ae1fb28 Add equality operator for QgsHttpHeaders 2025-02-12 06:33:14 +10:00
ughur-a
0b9bc85378
docs(qgsprocessingcontext): fix typo (#60541)
* docs(qgsprocessingcontext): fix typo

* Update .sip.in files

---------

Co-authored-by: Even Rouault <even.rouault@spatialys.com>
2025-02-11 15:11:38 +01:00
qgis-bot
fedd040708 auto sipify 🍺 2025-02-10 23:27:24 +00:00
Nyall Dawson
2744627b4c Improve documentation 2025-02-11 09:24:35 +10:00
Nyall Dawson
c8198d865e Remove redundant providerType methods from raster, mesh layers
This exact same method is implemented in QgsMapLayer already
2025-02-11 09:24:35 +10:00
qgis-bot
ede8964249 auto sipify 🍺 2025-02-10 14:05:57 +00:00
Julien Cabieces
d58e5f24f4
Merge pull request #60139 from Djedouas/fix-exclude-end-temporal-range
Fix include/exclude in QgsRange
2025-02-10 15:02:56 +01:00
Jacky Volpes
ae65d1be44 fix(qgsdaterange): consider infinite bounds in overlaps method
Infinite left or right date bound were not considered when computing
overlaps, leading to ranges being considered overlapping where they
don't.
2025-02-07 17:29:37 +01:00