89776 Commits

Author SHA1 Message Date
qgis-bot
c3f538e5cb auto sipify 🍺 2025-01-28 21:09:39 +00:00
Alessandro Pasotti
65da9bbeb4 [gui] Lazy load layer metadata in datasource manager
Fix #60018
2025-01-29 07:06:43 +10:00
vsydorov
00991982fc
Fix layer datasources incorrectly resolving to matching working directory names (#60109)
* Fix layer paths resolving to matching CWD names

- Remove redundant second call to absoluteToRelativeUri in
  QgsMapLayer::writeLayerXml
- Add a guard in QgsPathResolver::writePath to prevent this happening
  again when absoluteToRelativeUri is called two times.
- Add a regression test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove redundant relativeToAbsoluteUri call

- The b9c1c2c commit introduced redundant absoluteToRelativeUri AND
  relativeToAbsoluteUri calls. First one was removed earlier, stopping
  the #60100 issue. Remove the latter for completeness too.
- Minor indentation fix

* Fix test error [-Wclazy-unused-non-trivial-variable]

* Fix another unused variable complaint

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-28 18:13:13 +01:00
Nyall Dawson
02257426e5 Remove dedicated "show editing toolbar" action from 3d windows
Instead add right-click menu to main 3d window toolbar to toggle
optional toolbar visibilty, just like we do for the main QGIS
window.

This avoids UI bloat in 3d map windows, and removes an action which
will be rarely used.
2025-01-28 18:04:31 +10:00
Nyall Dawson
4737998efe Fix logic in pdal indexing task relating to progress updates 2025-01-28 18:03:45 +10:00
Nyall Dawson
6b490b08b4 Add missing reference 2025-01-28 18:03:18 +10:00
Nyall Dawson
d8ec63643b Avoid potential divide by zero 2025-01-28 18:03:18 +10:00
Nyall Dawson
b8067c0cc0 Avoid potential divide by 0 in layout map items 2025-01-28 18:03:18 +10:00
Nyall Dawson
8516b05d16 Validate inputs for export mesh algorithms
Avoid potential division by 0
2025-01-28 18:03:18 +10:00
Nyall Dawson
6cf8ea0aec Fix leak in zip utils 2025-01-28 18:03:18 +10:00
Nyall Dawson
c928d51387 Explicitly block initQgis, exitQgis from within application
Calling QgsApplication.initQgis() or exitQgis() from within
the main QGIS application now raises an informative RuntimeError
nstead of just crashing QGIS. These methods are only legal
to be called from standalone Python scripts.

Refs #60025
2025-01-28 18:02:57 +10:00
Nyall Dawson
790a72b4bb Fix placement of STAC tab in Data Source Manager
The metadata search tab should be last
2025-01-28 18:02:41 +10:00
Nyall Dawson
5324b48f22 Fix potential (unlikely) crash in concave hull algorithm 2025-01-28 18:00:10 +10:00
pre-commit-ci[bot]
14b2d05cb1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-01-28 13:58:20 +10:00
Mathieu Pellerin
1c85f6a17f Alternative fix that is compatible with offline editing 2025-01-28 13:58:20 +10:00
Mathieu Pellerin
ad3cf3ae5d [vector layer] Fix newly-added features in the edit buffer prior to adding a new attribute will not save the new attribute's values
(fixes #59783)
2025-01-28 13:58:20 +10:00
Alexander Bruy
fb8321c205 use last used WMS image encoding when adding WMS layers from Browser
dock (fix #57666)
2025-01-28 13:50:07 +10:00
Martin Dobias
a4f33d486b 3D views: use the correct resolution on high DPI displays!
Nowadays Qt gives us size in device independent pixels, and we were
using those values for the textures as well - but that means on high DPI
screens where device pixel ratio is 2, we were rendering in low resolution
and then upscaling the textures. This should fix that, and intermediate
textures use the correct size - the rendered output is much crispier, yay!
2025-01-28 13:44:46 +10:00
Even Rouault
3ac14b5378 WMS/WMTS provider: support 'yyyy' TIME format
Fixes #60264
2025-01-28 13:22:06 +10:00
Mathieu Pellerin
2129566b60 [gui][processing] Fix inconsistent behavior with the map layer widget's selected features only checkbox 2025-01-28 13:08:24 +10:00
Alexander Bruy
b1b378c045 allow using generic vector layer (table) source type in the
QgsProcessingParameterMapLayer (fix #56344)
2025-01-28 13:05:49 +10:00
Alexander Bruy
b574e064d8 add point cloud output to compatible output types for point cloud widget
wrapper (fix #57550)
2025-01-28 13:04:05 +10:00
qgis-bot
cf1a7b9037 auto sipify 🍺 2025-01-28 02:51:03 +00:00
Mathieu Pellerin
df1bc9c5fa [python] Fix named argument binding issue with the QgsRasterCalculator constructor 2025-01-28 12:48:08 +10:00
Mathieu Pellerin
199401a7e6 Address review 2025-01-28 12:44:34 +10:00
Mathieu Pellerin
6062ff7eef [vector layer] Fix geometry validity check preventing saving of changes after removing problematic feature(s) 2025-01-28 12:44:34 +10:00
Alessandro Pasotti
d40836d738 Update src/server/services/wms/qgswmsrenderer.cpp 2025-01-28 12:43:51 +10:00
Alessandro Pasotti
5f3d916a9b [server][wms] Fix #60216 missing transformation ctx 2025-01-28 12:43:51 +10:00
qgis-bot
d99b14927d auto sipify 🍺 2025-01-28 02:09:27 +00:00
pre-commit-ci[bot]
e066ff1ca5 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-01-28 12:06:36 +10:00
Mathieu Pellerin
f2289c83f1 [processing] Fix feature iteration against a model (fixes #60131) 2025-01-28 12:06:36 +10:00
Julien Cabieces
e66297dd84 fix(QtMultiMedia): Add qgis.PyQt.QtMultimedia
Fixes #59351
2025-01-28 10:06:20 +10:00
Alexander Bruy
59640d9fd6 fix QKeySequence use in DBManager in Qt6 builds 2025-01-28 08:37:16 +10:00
Alexander Bruy
5c67214a4d make use of QKeySququence in Processing script editor compatible with
PyQt6 (fix #60063)
2025-01-28 08:37:16 +10:00
Benoit D.-M. - oslandia
6ca514013c Update scripts/cppcheck.sh
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
2025-01-27 18:16:51 +01:00
bdm-oslandia
78463c0226 chore(cppcheck): add optional parameter to specify the directory to check, ../src by default
co-author: rouault
2025-01-27 18:16:51 +01:00
qgis-bot
13b15b4911 auto sipify 🍺 2025-01-27 15:09:36 +00:00
mhugent
3f5f9002bb
Merge pull request #60180 from mhugent/server_empty_values_highlight_labels
Server empty values in highlight labels parameters
2025-01-27 16:06:41 +01:00
mhugent
55c975ced7
Merge pull request #60031 from mhugent/wms_step_size
Allow to query larger tiles than the default max size with stepWidth/…
2025-01-27 16:05:55 +01:00
qgis-bot
0cc0e57cb0 auto sipify 🍺 2025-01-27 13:04:27 +00:00
Benoit D.-M. - oslandia
7fc95bb0a3 doc: add todo about std::source_location for logMessage
Co-authored-by: Loïc Bartoletti <lbartoletti@users.noreply.github.com>
2025-01-27 14:01:34 +01:00
bdm-oslandia
295a2377d6 fix: display real caller data instead of log call 2025-01-27 14:01:34 +01:00
bdm-oslandia
c89d3f56a1 fix(QgsMessageLog): display real caller data instead of logMessage call to QgsDebugMsgLevel 2025-01-27 14:01:34 +01:00
Even Rouault
2bef21df9f
Merge pull request #60277 from merydian/fix-60205
Fix QgsRasterLayer and QgsRasterBlock as_numpy methods
2025-01-27 10:55:59 +01:00
Even Rouault
9d8f5e7d3a
Merge pull request #60273 from elpaso/bugfix-gh60185-wfs-aspatial-transaction-followup
[server][wfs] More precise tests on WFS update permissions
2025-01-27 10:45:44 +01:00
qgis-bot
380b3c7b7f auto sipify 🍺 2025-01-27 09:05:04 +00:00
Julien Cabieces
82af874d04
Merge pull request #60254 from nyalldawson/min_xml2
Don't write mesh range settings to XML if they are default
2025-01-27 10:02:11 +01:00
Julien Cabieces
388e80eb10
Merge pull request #60252 from nyalldawson/clean_xml
Don't write custom profile tolerance to XML when not set
2025-01-27 09:59:48 +01:00
Till Frankenbach
106e5aa21a Fix QgsRasterBlock and QgsRasterLayer as_numpy methods 2025-01-26 15:12:51 +01:00
Alessandro Pasotti
1b83f716b2 [server][wfs] More precise tests on WFS update permissions
Not a critical change but more precise check in case of
aspatial layers.

Followup #60266
Related to #60185
2025-01-25 15:00:35 +01:00