90287 Commits

Author SHA1 Message Date
Harrissou Sant-anna
959ccbd111 Use a more user-friendly "authority ID" label 2025-02-17 10:43:58 +10:00
Harrissou Sant-anna
1265fb2f30 Remove option to define layer name from WMS source select dialogs 2025-02-17 10:43:58 +10: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
Nyall Dawson
dbad2f8da1
Fix leak in QgsSQLStatement 2025-02-17 10:41:42 +10:00
Nyall Dawson
3f190bb8ba
Fix win build 2025-02-17 09:42:33 +10:00
Nyall Dawson
6c4f7dc723
[stac] Port more API to use unique_ptr
Fixes coverity scan memory leak warnings
2025-02-17 09:08:19 +10:00
Mathieu Pellerin
1aeb8bbdd4 [processing] Fix alg. postprocessing regression failing to add all but one output to the project 2025-02-17 08:35:48 +10:00
Nyall Dawson
61526c32f0
Fix unused variable warning 2025-02-17 08:15:17 +10:00
Nyall Dawson
bda30aa2ea
Resync rtree library with upstream
Move back to upstream version instead of forked version, as the
upstream is maintained and contains fixes and optimisations not
present in the for

The fork was originally used as it contained modernisation
cleanups, but those where all just cleanups and not actual
bug fixes
2025-02-15 09:24:36 +10:00
pre-commit-ci[bot]
88383c3d16 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-02-15 08:36:08 +10:00
Harrissou Sant-anna
d5c1c6d168 Add help to GDAL raster Slope and Proximity algs parameters
and remove passive form text on labels
2025-02-15 08:36:08 +10:00
Benoit D.-M. - oslandia
4fc4cfb719
fix: add exhautive clang format options (#60594)
* fix: add exhautive clang format options

In order to be compliant with QtCreator, the .clang-format needs to have all the options set.

* chore: remove .github/workflows/pr-run-pre-commit.yml.disabled
2025-02-14 21:38:56 +01:00
qgis-bot
ec73cff2fc auto sipify 🍺 2025-02-14 18:48:23 +00:00
Alexander Bruy
df80fe351b
Merge pull request #60604 from nyalldawson/fix_51273
Fix slow performance of raster image marker
2025-02-14 18:45:30 +00:00
uclaros
652554233d fix qt6 build 2025-02-14 09:48:16 +01:00
uclaros
9beebf9a42 Change the combobox logic
Now the combobox is populated with all classes from the Classification renderer, which may have a modified name, and
all available classes in the dataset, based on layer statistics. The combobox is editable so that the rest classes
can be typed-in.
2025-02-14 09:48:16 +01:00
uclaros
af2dc31d1a use combobox for classification and boolean attributes 2025-02-14 09:48:16 +01:00
uclaros
cd6810aa71 clang tidy 2025-02-14 09:48:16 +01:00
uclaros
4b563bf9fa Use -180 to 180 range for ScanAngleRank 2025-02-14 09:48:16 +01:00
uclaros
2517d3b791 Use spinbox suffix to display the human readable current value 2025-02-14 09:48:16 +01:00
qgis-bot
013b3d3d6f auto sipify 🍺 2025-02-14 04:40:15 +00:00
Nyall Dawson
0bc8825ec1 Fix maybe uninitialized warnings in QgsLayerTreeRegistryBridge::layersAdded
And make memory ownership of values clearer
2025-02-14 14:37:21 +10:00
Nyall Dawson
e278f36cdc Fix qt6 test run 2025-02-14 14:37:04 +10: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
Nyall Dawson
95fff02ae9 Update src/3d/qgscameracontroller.h 2025-02-14 13:36:07 +10:00
David Koňařík
3579992a27 Don't loop forever in test waiting for sensible near plane 2025-02-14 13:36:07 +10:00
David Koňařík
1c2a0d5628 Speed up QgsCameraController::sampleDepthBuffer() averaging 2025-02-14 13:36:07 +10:00
David Koňařík
5c1063c0ff Apply suggestions per review 2025-02-14 13:36:07 +10:00
David Koňařík
a3b6a4c51d Fix more tests 2025-02-14 13:36:07 +10:00
David Koňařík
771ff29c88 Fix tests after 3D camera changes
Part of the camera change handling now happens only once per frame, so
we need to wait for a new frame to be rendered so the changes are
applied.
2025-02-14 13:36:07 +10:00
David Koňařík
303b392439 Cache depth buffer average to improve performance
Previously the average could be computed on every mouse move event. This
is a problem, since the loop can be slow, especially on debug builds
where nothing gets inlined.
2025-02-14 13:36:07 +10:00
David Koňařík
c8b7bcfe71 Add tracing events to Qgs3DMapScene and QgsCameraController 2025-02-14 13:36:07 +10:00
David Koňařík
0f3129b7a4 Only emit cameraChanged() on frame start
Previously the entire camera change was handled on every input event,
which led to slowdown and stutters, since we can get ~1000/s such events
with common mice. We don't care about intermediate camera states and
can only process the last state before rendering.
2025-02-14 13:36:07 +10:00
Nyall Dawson
12cffa3e59
Cache original image sizes
QgsImageCache::originalSize required a re-open and parse of the
image with every call, which could result in many file opens
to the same image file.

Use a cache to store these instead, so that we only have
to determine the size once.

Note that this isn't as simple as storing the size in a hash,
as we need to handle file modifications like QgsImageCache does.
Accordingly, we subclass QgsAbstractContentCache and specialise
it for handling just the image size here.

Fixes #51273
2025-02-14 10:59:35 +10:00
Nyall Dawson
8176a94b82
More efficient cloning of QgsRasterMarkerSymbolLayer
Avoid having to open image file to clone marker

Refs #51273
2025-02-14 10:55:57 +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
9b57acc209 test_qgscircle: remove printable part 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
Alexander Bruy
1f1eec7f8b restore old parameter names in transform() expression function and
better handling of null variants and empty strings in getCrsValue()
2025-02-14 08:48:38 +10:00
Alexander Bruy
8cbe41cd02 improve functions help 2025-02-14 08:48:38 +10:00
Alexander Bruy
2655f3125f update bearing and transform expression functions to accept either string
representing CRS authid or CRS object
2025-02-14 08:48:38 +10:00
Alexander Bruy
1aad0d7d9a rename functions 2025-02-14 08:48:38 +10:00
Alexander Bruy
7ac54358bb update tests 2025-02-14 08:48:38 +10:00
Alexander Bruy
f44bcc623a add functions help 2025-02-14 08:48:38 +10:00
Alexander Bruy
d285240375 doxymentation 2025-02-14 08:48:38 +10:00
Alexander Bruy
38db75c4c5 better function name for consistency with the existing names 2025-02-14 08:48:38 +10:00