1175 Commits

Author SHA1 Message Date
Even Rouault
a389b1a568 QgsProcessingAlgorithm::addParameter(): add a variant that accepts a unique_ptr for QgsProcessingParameterDefinition 2024-12-09 14:58:27 +10:00
qgis-bot
d865df1e00 auto sipify 🍺 2024-12-09 03:39:15 +00:00
Nyall Dawson
47593ca156 Rename to 'snap to pixel factor' for clarity 2024-12-09 13:36:08 +10:00
Nyall Dawson
61bbd91c81 Add API to QgsRasterIterator to handle resampling factor
Allows raster iterator to calculate blocks which are exactly
multiples of the resampling factor, to aid in cases where the
iterator will be used to fetch resampled raster blocks
2024-12-09 13:36:08 +10:00
qgis-bot
d5b93354e9 auto sipify 🍺 2024-12-06 19:19:11 +00:00
Denis Rouzaud
5bfbccf63f remove multiline 2024-12-07 05:16:00 +10:00
Denis Rouzaud
5fdf6dd77a fix SIP_SKIP and SIP_FORCE being left alone 2024-12-07 05:16:00 +10:00
Denis Rouzaud
2562958772 sipify 2024-12-07 05:16:00 +10:00
qgis-bot
00ed70ba91 auto sipify 🍺 2024-12-06 09:23:37 +00:00
Nyall Dawson
af8e4432a9 Consistently return QgsAbstractGeometry from QgsGeos methods
This is more flexible then always returning QgsGeometry
2024-12-06 19:20:26 +10:00
Nyall Dawson
dbb20bb5da Add sip cast code to QgsGeos
Ensures QgsGeometry.createGeometryEngine returns a QgsGeos object
for use in Python
2024-12-06 19:20:26 +10:00
Nyall Dawson
afac0312aa Expose QgsGeos class to PyQGIS
This class has lots of (very useful!) GEOS specific functionality which
is not exposed through the base QgsGeometryEngine class
2024-12-06 19:20:26 +10:00
Nyall Dawson
c33b4e67dc Fix exception when loading processing plugin on Qt 6 builds on KDE
Something internal in KDE itself adds child QObjects to menus, so the
code which tries to find the last action in the menu fails and returns
a QObject instead of a QAction, leading to an exception in the
insertAction call.

This is all too fragile anyway, so avoid it by:

- Just creating the models menu directly in the ui
- Exposing this via interface for use in the processing plugin

Now there's no risk of this code breaking in future if the Project
menu is re-arranged.
2024-12-06 19:20:05 +10:00
qgis-bot
2c266b98f5 auto sipify 🍺 2024-12-05 12:23:03 +00:00
Denis Rouzaud
76f702e48a sipify 2024-12-05 13:19:50 +01:00
qgis-bot
6ac62032fb auto sipify 🍺 2024-12-04 19:17:09 +00:00
Nyall Dawson
2140c555fe Double-clicking a mouse handle for a layout label resizes to fit text
Double-clicking a handle will auto-size the label to exactly fit
the contained text (growing or shrinking as needed). The opposite
side of the label will remaining fixed in place, so eg double-click
the bottom-right handle causes the bottom-right corner of the label
to move.
2024-12-05 05:13:53 +10:00
qgis-bot
3fca3fc3cc auto sipify 🍺 2024-12-03 17:01:09 +00:00
Nyall Dawson
87efed6b0e Expose mode 2024-12-04 02:57:51 +10:00
qgis-bot
dd32d0e8f9 auto sipify 🍺 2024-12-03 08:30:06 +00:00
David Koňařík
d47ad7dfe0 Minor changes per review 2024-12-03 09:26:55 +01:00
David Koňařík
f2afd6a498 Expose point cloud class statistics to Python 2024-12-03 09:26:55 +01:00
David Koňařík
e5064f092a Refactor QgsPointCloudIndex statistics methods 2024-12-03 09:26:55 +01:00
qgis-bot
eb1ce83af1 auto sipify 🍺 2024-12-03 07:47:10 +00:00
qgis-bot
a6946c6909 auto sipify 🍺 2024-12-03 03:01:14 +00:00
hxbb00
33b22c6519 feat: Enhance the ability to customize icons for QgsPluginLayer 2024-12-03 12:58:00 +10:00
Nyall Dawson
37478db0c1 Fix more function links 2024-12-03 12:57:44 +10:00
Nyall Dawson
d50fe2a9e5 Fix function links, sipify 2024-12-03 12:57:44 +10:00
qgis-bot
b397c66689 auto sipify 🍺 2024-12-02 21:09:13 +00:00
Nyall Dawson
8d60d4f6d7 Make some factories return unique_ptr 2024-12-03 07:06:02 +10:00
Nyall Dawson
596ecbee9c [sip] Implement MappedType for unique_ptr to Python conversion 2024-12-03 07:06:02 +10:00
qgis-bot
09e649608b auto sipify 🍺 2024-12-02 18:43:00 +00:00
Even Rouault
cf868f8f4c QgsMapLayerConfigWidget/QgsRendererRasterPropertiesWidget: suppress -Woverloaded-virtual warning related to syncToLayer() method 2024-12-03 04:39:49 +10:00
qgis-bot
f802e20284 auto sipify 🍺 2024-12-02 14:21:09 +00:00
Nyall Dawson
7670fbe362
Move class, method out of QgsPalLabeling to central location 2024-12-02 12:46:23 +10:00
qgis-bot
292bb8fa79 auto sipify 🍺 2024-11-29 21:40:53 +00:00
Nyall Dawson
bb6919aeea Move QgsRasterMinMaxOrigin enums to Qgis, promote to enum class 2024-11-30 07:36:47 +10:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
qgis-bot
192e107577 auto sipify 🍺 2024-11-28 14:24:33 +00:00
Jacky Volpes
bd49d6cf41 fix(featurepool): cache management - fixes #58113
Geometry checker cache does not work properly with memory layers.
refreshCache now handles a list of updated features to be thread-safe.

Also, fixes a locker mode, and correctly remove features from spatial
index.
2024-11-28 15:21:21 +01:00
qgis-bot
da86bc17a6 auto sipify 🍺 2024-11-28 04:40:16 +00:00
Jean Felder
9d372b6019 qgsrasterlayer: Remove refresh logic
This is not used anymore.
2024-11-28 14:37:06 +10:00
Jean Felder
76cbf8b3a5 qgsrasterlayer: Make computeMinMax public
This will be used in the next commit to refresh a renderer.
2024-11-28 14:37:06 +10:00
Jean Felder
dd36eb7249 qgsrasterrenderer: Introduce refresh
This is similar to what is achieved in
`QgsRasterLayer::refreshRenderer()` to refresh the renderer according
to an extent. Contrary to the first one, this method does not perform
any GUI update or emit any signal.

It is not used at the moment. This will replace the logic to refresh a
renderer in the following commits.
2024-11-28 14:37:06 +10:00
Jean Felder
2747710499 qgsrasterrenderer: Introduce needsRefresh
This is similar to what is achieved in
`QgsRasterLayer::refreshRendererIfNeeded()` to check if the renderer
needs to be refresh according to an extent. It does not perform any
refresh.

It is not used at the moment. This will replace the logic to refresh a
renderer in the following commits.
2024-11-28 14:37:06 +10:00
Jean Felder
efaff7e2f5 introduce qgsrenderedlayerstatistics
This will be used in the next commits to store the min-max values of a
raster layer and report them to the main canvas.
2024-11-28 14:37:06 +10:00
Nyall Dawson
0dbf6e730b Add equality operator for QgsMesh3DSymbol 2024-11-27 10:53:53 +10:00
qgis-bot
cfeafb4610 auto sipify 🍺 2024-11-26 21:13:42 +00:00
Yoann Quenach de Quivillic
8a61c97df3 Apply suggestions from code review 2024-11-27 07:10:29 +10:00
Yoann Quenach de Quivillic
32c6a3d8e7 Add global enum 2024-11-27 07:10:29 +10:00