Latest news will appear here soon.
Edit on GitHub

QGIS 3.24の変更履歴

image1

リリース日: 2022-02-18

In Memorium: This release is named 'Tisler' after a small Norwegian island that was a favourite visiting place of Håvard Tveite who passed away in May 2021. Håvard was a very active member of the QGIS community, providing valuable input to the documentation, developing numerous plugins, and taking care of the QGIS Resources Sharing Repository to name just a few of his contributions. The map on the QGIS 3.24 splash screen is an orienteering map that Håvard has created. He liked spending some time each year map-making at Tisler.

We would also like to extend a big thank you to the developers, documenters, testers, and all the many folks out there who volunteer their time and effort (or fund people to do so) to make these releases possible. From the QGIS community, we hope you enjoy this release! If you wish to donate time, money, or otherwise get involved in making QGIS more awesome, please wander along to QGIS.ORG and lend a hand!

For a whirlwind tour of all the new functionalities introduced, you can view the highlight reel video on youtube at https://youtu.be/gVgR4Oxqtkk

QGIS is supported by donors and sustaining members. A current list of donors who have made financial contributions large and small to the project can be seen on our donors list. If you would like to become an official project sustaining member, please visit our sustaining member page for details. Sponsoring QGIS helps us to fund our regular developer meetings, maintain project infrastructure, and fund bug fixing efforts. A complete list of current sponsors is provided below - our very great thank you to all of our sponsors!

Flagship

Large

Medium

Small

QGIS はフリーのソフトウェアです。利用する上で金銭を支払う義務はありません。実際、私たちは利用者の財政状況や社会的地位にかかわらず、より多くの人に QGIS を利用して欲しいと思っています。私たちは地理空間的な意思決定ツールによって人々が力を持つことが、全人類の社会をより良くすると信じています。

ユーザーインタフェース

機能: マップの範囲をレイアウトマップとブックマークから直接取得する

これは便利な時間節約です!QGISの範囲ウィジェットは、プロジェクト内のブックマークとレイアウトから地図の範囲を直接取得して一致させることができるようになりました。

image3

This feature was developed by Mathieu Pellerin

機能: カスタム座標参照系の簡単な作成

We've added a new option when selecting a Coordinate Reference System (CRS) which allows you to just directly enter a custom CRS definition (from proj or WKT strings), instead of requiring you to specifically add these custom CRS to the projection database first.

It's much friendlier when you just want to define a custom projection for a single-purpose use, e.g. an overview map with a projection designed for a particular latitude and longitude location.

image4

This feature was developed by Nyall Dawson

シンボロジ

Feature: Marker/hash line: offsets along line by "percent" of line length (and negative offsets!)

マーカーとハッシュ線シンボルレイヤタイプの両方に対して、線に沿ってオフセット をパーセンテージで指定できるようになりました。 (これらのオフセットは、全体の線の長さのパーセンテージとして扱われます)。

さらに、マーカーまたはハッシュラインシンボルレイヤーの オフセットに沿った 設定が 閉じた リングのサイズよりも長い場合、QGISはオフセットをリングの周りをループし続けるものとして扱うようになりました。たとえば、オフセットを150%に設定すると、オフセットは閉じたリングの長さの50%として扱われます。

最後に、私たちは閉じたリングに対してネガティブな「線に沿ったオフセット」を指定することも可能にしました。ネガティブなオフセットはリングに沿って逆方向に計算されます。

image5

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能: マルチパートジオメトリのあらゆる部分に最初/最後の頂点配置が適用されるかどうかを制御します

マーカーとハッシュラインのシンボルタイプのこの新しいシンボルオプションを使用すると、最初と最後の頂点配置オプションをマルチパートライン(またはポリゴン)のすべての部分に個別に適用するか、マルチパートジオメトリ全体中の最初と最後の頂点だけに適用するかを制御できます。

image6

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: Marker/hash line "on vertices" placement option replaced by "on inner vertices"

新しい 内部の点 モードでは、シンボルはすべての 内部の 頂点に配置されます(つまり、最初または最後の頂点以外の全ての頂点)。

Previously, the old "Vertex" mode put symbols on the first and last vertex as well as all inner vertices, making it basically impossible to style a line with a different marker on the first or last vertex to the rest of the line's vertices. With the new On Inner Vertices option it's easy to create a style where a line has a different marker on the first or last vertex vs the rest of the vertices!

(This change is paired nicely with the switch to using checkboxes for the placement options -- to get a marker to show on all vertices, just make sure the first, last and inner vertices options are checked).

image7

この機能は North Road, thanks to SLYR によって資金提供されました

This feature was developed by Nyall Dawson

機能:マーカーとハッシュ線シンボルレイヤの配置オプションは、相互に排他なボタンではなく、チェックボックスになりました

この改善により、最初 最後の頂点の両方にマーカーを持ったマーカー(またはハッシュ)ラインを作成することがかなり容易になります(その他の便利な組み合わせもあります!)

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能: グラデーションランプを補間する際に使用されるカラーモデルを制御します

グラデーションランプをレンダリングする場合、補間が赤/緑/青のチャネルを個別に使用して実行されると、グラデーションの色のいくつかの組み合わせにより、ランプが暗い灰色の中間調を通過します。別のアプローチは、代わりに、色相/彩度/明度または値チャネルを介して色を補間することです。このアプローチにより、これらの彩度の低いミッドトーンを回避でき、視覚的に心地よいグラデーションが得られます。

We now allow the color specifcation to be set per stop in a multi-stop color gradient to give users control over which interpolation technique to use. There's also an option to control the direction which interpolation should follow for the Hue component of a HSL/HSV color spec interpolation,m which can help avoid unwanted interpolation through the entire rainbow hue spectrum in some circumstances!

This video shows the difference in mid-tones of a color ramp, where the RGB interpolation results in murky colors, while the HSL/HSV interpolation remains nice and vibrant.

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能:スタイルマネージャダイアログ内のサムネイルのサイズ調整

We've added a new slider to control the size of thumbnails shown in the style manager dialog, because sometimes these thumbnail sizes are just too small to get a good representation of a symbol!

image8

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: "Lineburst" symbols

We've added a brand new "Lineburst" symbol layer type, which renders a gradient along the width of a line (as opposed to the Interpolated Line renderer, which renders a gradient along the length of a line). It's just like the Shapeburst fill symbol type, but for lines!

image9

This feature was funded by North Road, thanks to SLYR!

This feature was developed by Nyall Dawson

Feature: "Raster Line" symbols

We're super-excited to bring you this brand new line symbol type, which allows you to render a raster image following a line feature's shape. This symbol type opens a whole new realm of possibilities for QGIS symbology, and is especially useful when creating maps in a hand drawn or painted style.

制御するオプションが利用できます:

  • 写真のパス(データ定義パスを含む)
  • 線幅
  • 透明度
  • 線の継ぎ目と両端のスタイル

image10

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能: ラインパターン塗りつぶしのクリッピング動作の選択

ラインパターン塗りつぶしシンボル内の線がポリゴン形状に切り抜かれる方法を制御できるようになりました。利用可能なオプションには次のものがあります:

  • レンダリング中のみクリップ :地物の バウンディングボックス 全体をカバーする線が作成され、描画中にクリップされます。線の端(開始と終了)は表示されません(これは古いQGISリリースと同じ動作です)。
  • レンダリング前に線をクリッピング: ラインはレンダリング前にポリゴンの 正確な形状 に切り抜かれます。ラインの端部(キャップスタイル、開始/終了マーカーラインシンボルなどを含む)は見えるようになり、(ラインシンボルの設定によっては)ポリゴンの外側に拡張されることがあります。
  • クリッピングしない: クリッピングは一切行われず、ラインは地物のバウンディングボックス全体をカバーします

image11

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能: ラインパターン塗りつぶしのレンダリングが改善

ベクタ形式(PDFやSVGなど)にエクスポートする場合、またはラインのサブシンボルに動的(データ定義)プロパティがある場合、塗りつぶしをレンダリングするためにラインごとのアプローチに自動的に切り替えるようになりました。 (以前は、タイルパターンのアプローチが常に使用されていたため、パターンに望ましくないアーティファクトや目に見える継ぎ目が生じることがよくありました)。

この変更の多くの利点には、次のものがあります:

  • Smaller PDF/SVG output file sizes -- the line pattern fills aren't stored as raster images in the output so the overall file size will often be much smaller
  • PDF/SVGでエクスポートされたファイルは、パターン内の個々の線を修正することができるため、ポストプロダクション用の外部アプリケーション(Inkscapeやアドビイラストレーターなど)で修正するのがより容易です。
  • Better quality PDF/SVG outputs, since the fill isn't DPI dependent and looks pixel perfect regardless of how far in you zoom
  • 特定の角度、距離、または特定のラインシンボルスタイルでは、見えるアーティファクトはありません

さらに興奮することに、それは新しいシンボルスタイルの幅広い選択肢を開くのです。例えば:

  • 個々の線で色/幅/破線などが変わるラインパターン
  • 中点/その他の所にマーカーラインシンボルを使用するラインパターン
  • 線ごとのジオメトリジェネレータ効果、例えば、波線パターン、手書きラインスタイルなど

image12

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能: ポイントパターン塗りつぶしのための回転角度

Now you can specify an optional rotation angle for point pattern fills, which causes the entire point pattern to be angled. This can be extremely useful when overlaying multiple point pattern fills!

image13

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能: ポイントパターン塗りつぶしのランダム化ポイントオフセット

This (optional) setting allows each point in a point pattern fill to be randomly shifted up to the specified maximum distance in the x or y direction. You can specify the maximum offset in millimeters, points, map units, or even "percentage" units (where percentage is relative to the pattern width or height).

You can set an optional random number seed to avoid the symbol patterns "jumping" around between map refreshes. Data defined overrides are also supported.

The main difference between this new setting and the existing random marker fill symbol type is that the random offset with a point pattern allows for quasi-"regular" placement of markers -- because the points in the pattern are effectively constrained to a grid, this allows creation of semi-random fills which don't have empty areas or overlapping markers. (As opposed to the random marker fill, which will always place points completely randomly... sometimes resulting in visual clusters of points or unwanted empty areas).

image14

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能:ラインパターンとポイントパターン塗りつぶしシンボルレイヤの座標参照モードの設定

ラインパターンとポイントパターン塗りつぶしシンボルレイヤには、パターンのアンカリングを微調整するための新しい座標参照モード設定があります。実際的には、これにより、隣接する地物や重なり合う地物に対してパターンをきれいに整列させることができます。

relief

image16

This feature was developed by Mathieu Pellerin

機能: ポイントパターン塗りつぶしのためのマーカーのクリッピングを制御する

This new option gives you control over how markers are clipped in a point pattern fill. The available options include:

  • Clip to shape: markers will be clipped by the boundary of the shape, so "cut off" markers may be visible (same behaviour as previous QGIS versions)
  • Marker centroid within shape: markers will be drawn only if their centroid falls within the shape, and markers will not be clipped to the shape boundary
  • Marker Completely Within Shape: markers will only be drawn if they fit completely within the shape
  • No clipping: whole marker symbols will be drawn if any part of the marker falls within the shape

image17

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

機能: 三角波/正方形波/曲線波を作成するための式関数

We've added some new expression functions which produce "wavy lines" along geometry boundaries. Multiple wave shapes are available, including:

  • Wave (正弦に似た)
  • Triangular
  • Square

In addition, expressions functions have also been added for creating waves in a regular fashion or with randomization.

When used with geometry generators, these expressions can be used for some very advanced cartographic effects!

image18

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

ラベリング

Feature: "Percentage" units for text buffer size, shadow offset and blur radius

テキストバッファ、シャドウオフセット、シャドウブラー半径のサイズをフォントサイズのパーセンテージとして設定できるようになりました。これは、テキストサイズが変更されたときに個別に調整する必要がある固定のバッファ/シャドウサイズではなく、テキストサイズの変更に応じてコンポーネントが適切にスケーリングされるテキスト形式を作成できるため、望ましい方法です。

image19

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: Data defined label positions by point geometries

これで、データで定義されたラベルの配置を、ポイントジオメトリフィールドまたは式にバインドするように設定できます。 (以前のQGISバージョンでは、2つの別々の数値のxフィールドとyフィールドを介してデータ定義の配置のみを設定できました)。

この変更により、 ラベルの移動 ツールを使用して、ポイントジオメトリフィールドにバインドされているラベルの位置を変更し、新しいラベルの位置をその属性にポイントジオメトリとして保存することもできます。

image20

この機能はスイスQGISユーザーグループによって資金提供されました

This feature was developed by Damiano Lombardi

機能:ラベルとテキスト形式のための伸縮テキスト

This improvement allows your text to be horizontally stretched or condensed by a percentage factor. It's often handy for tweaking the widths of fonts to fit a bit of extra text into labels (when used sparingly, that is... you can certainly abuse font stretching with some horrendous results!)

Note: This improvement requires Qt 6.3+ or KDE's 5.15 fork. (On other builds the stretch options are hidden and can't be set)

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

レンダリング

Feature: Rendering layers as groups

This is another exciting cartographic enhancement which opens up a whole new arena of symbology and map visualisation in QGIS!

Prior to this improvement, QGIS supported grouping layers within the layer tree as a means of structuring projects, but these groups had no impact on how the component layers were rendered. In QGIS 3.24 we've introduced a new option allowing these layer groups to "Render as Group", which causes all the component layers to be rendered as a single flattened object during map renders.

このオプションは、グループレイヤーが選択されている場合は常に、レイヤースタイリングドック内で使用できます。このパネルでは、グループ全体の不透明度、ブレンドモード、レイヤー効果のオプションを使用して、グループ全体の外観を制御することもできます。

Additionally, when a layer is contained in a group which has the new Render as Group option activated, new blending modes will be available which perform "clipping" style operations during the render. These allow you to achieve some very powerful results, such as clipping the render of one layer's content by the content in a second "mask" layer!

image21

この機能は Andrew Fletcher によって資金提供されました。

This feature was developed by Nyall Dawson

Feature: Support for "Line pattern" when converting Mapbox GL vector tile layer styles

Making use of the brand new raster line symbol layer, QGIS 3.24 now properly renders Mapbox GL line pattern styling for newly-added vector tile layers.

image22

This feature was developed by Mathieu Pellerin

Feature: Support background styles for Mapbox GL-styled vector tile layers

We now correctly render any predefined background styling present in Mapbox GL-styled vector tile layers. This dramatically improves the appearance of vector tile layers with dark styles!

image23

This feature was developed by Mathieu Pellerin

三次元機能

Feature: Respect Z ordering when rendering point clouds in 2D

We've added an option to render point clouds according to their Z-order in 2D map views. With the new bottom-to-top ordering option enabled, points with larger Z values will cover lower points -- resulting in the appearance of a true orthographic photo. There's also an option for reverse sorting (top-to-bottom), where the scene appears as if viewed from below.

image24

This feature was funded by Crowdfunding: Enhancing elevation data and point clouds in QGIS

This feature was developed by Stefanos Natsis (Lutra Consulting)

Feature: Dock/Undock 3D views

We've been aware that using dock widgets for 3D maps can be inconvenient, and in many situations these are frustrating to resize and move as they are prone to re-dock as you adjust their sizes! With QGIS 3.24 we added the ability to switch 3D maps from a dockable widget to a top-level window (and back to a dock widget), so that these map views can now be managed, resized and moved just like a standard application window.

image25

This feature was funded by Crowdfunding: Enhancing elevation data and point clouds in QGIS

This feature was developed by Nedjima Belgacem (Lutra Consulting)

Feature: 3D map view manager

Previously, if you closed a 3D map view and then saved your project, the 3D map view and all its settings would be lost when you reopen that project. So in QGIS 3.24 we've added a "3D map view manager" that takes care of listing, removing, renaming and duplicating 3D map views in your projects!

We've also added a new "3D Map Views" menu, which contains all your created 3D map views for easy access!

image26

This feature was funded by Crowdfunding: Enhancing elevation data and point clouds in QGIS

This feature was developed by Nedjima Belgacem (Lutra Consulting)

Feature: Improved camera navigation

The default navigation mode in earlier versions of QGIS would sometimes behave strangely when moving around, rotating or zooming in/out. A lot of effort went into improvements of the camera control, so since QGIS 3.24 the camera navigation's behavior should feel more natural and similar to other 3D mapping software.

For more details, see Fixing terrain and camera issues in 3D

この機能は QGIS.org grant (2021) によって資金提供されました

This feature was developed by Nedjima Belgacem (Lutra Consulting)

印刷レイアウト

Feature: Full text rendering capabilities for layout text labels

以前のQGISリリースでは、HTMLやCSSを使用して、地図レイアウトのテキストにドロップシャドウなどの効果を追加するなど、ハッキーなトリックに戻す必要がありました。もうハックしないでください! 3.24では、レイアウト上のテキストのラベル付けテキストオプションからおなじみのプロパティを使用できるようになりました。これは、レイアウト内のテキストアイテムに、シャドウ、テキストバッファ、背景、文字と単語の間隔などをすべて追加できることを意味します。

image27

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

計算式

Feature: geometry_type function

The new geometry_type function returns the high-level type of a geometry (i.e. 'Point', 'Line' or 'Polygon').

image28

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: Overlay intersects sort by intersection size

We have added further enhancements to the overlay_intersects function. The change adds two new optional arguments to the existing function:

  • return_details: only valid when used with an expression, set this to true to return a list of maps containing (key names in quotes) the feature 'id', the expression 'result' and the 'overlap' value, the 'radius' of the maximum inscribed circle is also returned when the target layer is a polygon.
  • sort_by_intersection_size: only valid when used with an expression, set this to true to return the results ordered by the overlap value in descending order.

image29

This feature was funded by Kanton Solothurn, Amt für Geoinformation

This feature was developed by Alessandro Pasotti

Feature: Show all layer field names when building expressions

As a handy time-saver, we now make a list of all field names from all layers in your project available directly in the expression builder. If you double-click any of these field names, they'll be added to your expression as string values ('field_name').

image30

この機能は ARPA Piemonte によって資金提供されました

This feature was developed by Alessandro Pasotti

Feature: represent_attributes function

This new function returns a map with all attribute (field) names as the keys and the configured representation values as values. The representation value for the attributes depends on the configured widget type for each attribute.

The function can be used with zero, one, or more arguments:

  • If called with no parameters, the function will return the representation of the attributes of the current feature in the current layer.
  • If called with a 'feature' parameter only, the function will return the representation of the attributes of the specified feature from the current layer.
  • If called with a 'layer' and a 'feature' parameter, the function will return the representation of the attributes of the specified feature from the specified layer.

image31

この機能は Kanton Solothurn によって資金提供されました

This feature was developed by Alessandro Pasotti

Feature: Optional minimum overlap area and circle radius for overlay_intersection

We have added two optional arguments to the overlay_intersection() expression function:

  • min_overlap: for polygons an optional minimum area in current feature squared units for the intersection (if the intersection results in multiple polygons the intersection will be returned if at least one of the polygons has an area greater or equal to the value), for lines an optional minimum length in current feature units (if the intersection results in multiple lines the intersection will be returned if at least one of the lines has a length greater or equal to the value)
  • min_inscribed_circle_radius: for polygons only an optional minimum radius in current feature units for the maximum inscribed circle of the intersection (if the intersection results in multiple polygons the intersection will be returned if at least one of the polygons has a radius for the maximum inscribed circle greater or equal to the value). Read more on the underlying GEOS predicate, as described in PostGIS ST_MaximumInscribedCircle function.

image32

この機能は Kanton Solothurn によって資金提供されました

This feature was developed by Alessandro Pasotti

Feature: map_prefix_keys function

In QGIS 3.24 we've added a new map_prefix_keys function that takes a map and a prefix, the function returns a map with all keys prefixed by the prefix.

Example: map_prefix_keys(map('1','one','2','two'), 'prefix-')

returns: { 'prefix-1': 'one', 'prefix-2': 'two' }

image33

この機能は Kanton Solothurn によって資金提供されました

This feature was developed by Alessandro Pasotti

Feature: densify_by_count and densify_by_distance functions

This functionality, which was previously only available through the Processing toolbox, is now available for use in expressions!

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: Rotate parts of multi-part geometries independently with "rotate" expression function

The new "per_part" option for the "rotate" expression function allows you to rotate each part of a multi-part geometry around the center of each part (instead of the center of the geometry as a whole). This enhancement is designed to help out symbology when the rotate function is used as a cartographic tool as part of a geometry generator symbol layer.

image34

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: apply_dash_pattern function

This exciting new expression function applies a dash pattern to a geometry, returning a MultiLineString geometry which is the input geometry stroked along each line (or ring) using a dashed line pattern.

Rules can be set to control how the dash pattern is adjusted at line endings. If you specify a start rule or end rule, then the "adjustment" option defines whether both dash and gaps, or only dash or gap sizes are adjusted to apply these rules.

You can also set an optional pattern offset to specify how far along the pattern the result should start at.

image35

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: scale function

This new expression function allows you to scale (resize) a geometry. Just like the 'rotate' function, the function accepts an optional point position to apply the scaling from. If no anchor point is not specified then scaling is done from the center of the geometry's bounding box.

image36

This feature was funded by North Road, thanks to SLYR

This feature was developed by Nyall Dawson

Feature: Filter by multiple attributes for get_feature function

We extended the get_feature function to allow multi-attribute filtering, by adding an option to pass an array of filter values to the input.

This feature was developed by Alex

データ管理

Feature: Multiedit support for relation editor

We've added a new multi edit mode for the relation editor, which allows the rapid addition of child features to multiple parent features. This improves efficiency for data management operations, such as the ability to select multiple trees and adding a maintenance item to all of them in one click.

image37

This feature was funded by QGIS Model Baker

This feature was developed by Damiano Lombardi, OPENGIS.ch

メタデータとメタサーチ

Feature: Support for OGC API - Records in MetaSearch

We updated the MetaSearch tool to provide support for the OGC API - Records (OARec) standard. As part of the OGC API evolution, OGC API - Records is the successor to OGC:CSW (like OGC API - Features is to WFS, etc.).

The OGC API - Records standard is currently in development and the current timeline for a public RFC by OGC is Q1 2022. This we ask you to take note of the draft status of the specification so you are aware that the specification may change a bit more over the next few months. We still need to flesh out how actionable links are handled over the next few months (which should be a significant improvement compared to the CSW publish/find/bind workflow).

Adding this feature to QGIS is a huge win for easier search and will help both users and providers for the long term.

image38

This feature was developed by Tom Kralidis

フォームとウィジェット

Feature: Form submit actions with HTTP POST

In QGIS 3.24 we added two new HTTP POST actions, similar to the existing Open action which uses an HTTP GET request.

The two actions differ in the way the form data are encoded:

  1. application/x-www-form-urlencoded
  2. multipart/form-data

In both cases, data are passed to the action in a URL encoded URL.

A new function url_encode(<map>) is provided to convert a dictionary (a map) to the encoded format.

The response from the submitted URL is opened by delegating to the operating system QDesktopServices::openUrl() after the payload has been stored in a temporary file.

image39

この機能は Kanton Solothurn によって資金提供されました

This feature was developed by Alessandro Pasotti

Feature: New button to open attribute table on filtered features

We've added a new button to the attribute form (when in search mode) which enables you to open an attribute table filtered to only show the matching features.

image40

この機能は ARPA Piemonte によって資金提供されました

This feature was developed by Alessandro Pasotti

分析ツール

Feature: Add roundness method to curve polygon

We added a "roundness" method to QgsCurvePolygon, allowing the calculation of the "roundness" of an area feature based on the formula Roundness = (4 * pi * Area) / Perimeter^2.

This includes the addition of a new expression and a processing tool for calculating roundness. The processing tool creates a new layer with the roundness of each feature in a new field.

image41

This feature was developed by Antoine Facchini

プロセシング

Feature: Extract labels algorithm

For 3.24 we added a new tool to QGIS' processing toolbox: "Extract labels". As its name hints at, this algorithm extracts label information from a rendered map at a specific extent and scale.

Extracted label information include its position (as point geometries), the associated layer name and feature ID, as well as label appearance properties such as rotation, text, alignment, font family, size, weight, etc.

このアルゴリズムは、出力レイヤーのデフォルトのシンボルなしのラベル付きスタイルも生成します。これにより、保存されたレイヤーをプロジェクトにドラッグアンドドロップして、エクスポートされたとおりにラベルを描画できます。

If a map theme is specified when extracting labels, the exported labels will match the visibility and symbology of that theme. If left blank, the project's current visible layers will be used.

image42

This feature was funded by TEKSI

This feature was developed by Mathieu Pellerin

Feature: Optional output extent parameter for the GDAL Raster Calculator algorithm

When running against GDAL 3.3 or newer, QGIS processing toolbox's GDAL Raster Calculator algorithm now allows you to specify an optional "output extent" parameter. This can be quite useful when working with large datasets, often avoiding the need to create an intermediary clipped raster prior to running the calculator algorithm.

image43

This feature was developed by Mathieu Pellerin

Feature: Optional extent parameter for the GDAL clip raster by mask algorithm

We added an optional extent parameter to the GDAL "clip raster by mask" algorithm, which can come in handy when working with large raster datasets.

image44

This feature was developed by Mathieu Pellerin

Feature: Processing history rework

QGIS 3.24 includes a partial implementation of the framework described in QEP 130, and ports the Processing history log over to this framework.

これは、実行されたツールに関する無制限の追加情報(すべての入力パラメーター、出力結果、および全文ログも含む)を保存できるため、処理履歴を保存するためのはるかに柔軟なアプローチです。履歴ログは、以前に使用されていたテキストファイルではなく、sqliteデータベースに保存されるようになりました。これにより、より効率的なストレージ/取得/フィルタリングが可能になります。

The new framework potentially extends to more than just Processing - it could also be used to store the history of other user operations, such as project edits, layout exports etc!

We'll be using this framework in future to further extend the Processing history dialog. For 3.24, we're using it to expose a number of helpful additions to the history dialog:

  • Right clicking an entry in the log has a new option to copy the execution parameters as a "qgis_process" command line equivalent, giving you a super-easy way to generate qgis_process commands for execution in a CLI.
  • Right clicking an entry also shows a new "Copy as JSON" option, which copies a JSON string of the input parameters and algorithm settings

image45

This feature was funded by the Research Institute for Nature and Forest, Flemish Govt

This feature was developed by Nyall Dawson

Feature: Advanced actions in Processing dialogs

We have added new actions on the processing dialog including copy as qgis_process command, and copy/paste as JSON. Together these actions:

  • Allows for easy copying of the equivalent PyQGIS command to run the tool using the parameters defined in the dialog
  • Allow for easy generation of qgis_process commands via the QGIS GUI, including any tricky parameter values like GeoPackage outputs with specific layers
  • Provide a way for you to copy the settings defined in the dialog in a text format, so that you can store these easily and then restore them later by pasting the values.
  • Provides an easy way for you to copy the settings into the JSON format consumed by qgis_process, so that it is easy to see the expected format even for complex parameters (like TIN interpolation parameters).

image46

This feature was funded by the Research Institute for Nature and Forest, Flemish Govt

This feature was developed by Nyall Dawson

Feature: Single file exports from Atlas to PDF algorithm

You can now export an atlas layout to a single (collated) PDF file using the "Export atlas layout as PDF" processing algorithm.

image47

This feature was developed by Nyall Dawson

Feature: Project Models are shown in the Project menu

We added a new submenu to the "Project" menu, which will list any Processing models stored within the current project. This gives you a quick way to launch these project-specific models, in either a single or batch mode!

image48

この機能は Kanton Solothurn によって資金提供されました

This feature was developed by Alessandro Pasotti

Feature: Add point cloud destination parameter and output to Processing

We have extended and improved point cloud support in Processing, namely by:

  • Fixing the filtering of point cloud layers in QgsProcessingMapLayerComboBox-based widget used for parameters
  • Adding a destination point cloud parameter type and point cloud output types with corresponding widgets. (Currently these are useful for 3rd party providers and plugins which create point cloud outputs.)
  • Exposing the newly added point cloud output and destination parameters to the algfactory wrapper

This feature was developed by Alexander Bruy

Feature: Array field support

In QGIS 3.24, we've made array field types first-class citizen in the Processing toolbox! The following algorithms have all been updated to support array fields:

  • Refactor algorithm;
  • Aggregate algorithm;
  • Add field to attributes table algorithm;
  • Field calculator algorithm; and
  • Advanced (i.e. python) field calculator algorithm

This feature was funded by SwissTierras Colombia

This feature was developed by Mathieu Pellerin

アプリケーションとプロジェクトのオプション

Feature: qgis_process --no-python argument

This new, optional command line parameter for the qgis_process command-line tool allows you to skip launching Processing with Python support when it is not required. This can result in a significant improvement in qgis_process startup times!

This feature was funded by North Road

This feature was developed by Nyall Dawson

Feature: Suppress "bad layers" handler on startup

We've added support for a new command line flag for the qgis executable, which allows you to disable the default dialog which shows when opening a project with missing/broken layers:

[--skipbadlayers]       don't prompt for missing layers

Example invocation: ./qgis --skipbadlayers or ./qgis -B

このユースケースは、自動化やその他の起動後のプロセスが発生し、プロジェクトに不良レイヤーが存在する場合に起動プロセスを中断したくない場合があります。起動後、QGISは欠落しているレイヤーを無視しますが、レイヤーリストでは壊れているという印が付きます。

この機能は、 2021年12月17日、QGIS Open Dayの期間に、Giuseppe Baiamonteによって提案され、ライブコーディングされました。

image49

This feature was developed by Tim Sutton

Feature: Parameter values for qgis_process can be specified as a JSON object via stdin

We now provide a mechanism to support complex input parameters for algorithms when running the qgis_process command line tool.

To indicate that parameters will be specified via stdin then the qgis_process command must follow the format

qgis_process run algid -

(with a trailing - in place of the usual arguments list).

The JSON object must contain an "inputs" key, which is a map of the input parameter values.

echo "{"inputs": {\"INPUT\": \"my_shape.shp\", DISTANCE: 5}}" | qgis_process run native:buffer -

Additionally, extra settings like the distance units, area units, ellipsoid and project path can be included in this JSON object:

{
    'ellipsoid': 'EPSG:7019',
    'distance_units': 'feet',
    'area_units': 'ha',
    'project_path': 'c:/temp/my_project.qgs'
    'inputs': {'DISTANCE': 5, ..... }
}

(Specifying input parameters via stdin implies automatically the --json output format for results.)

One big motivation behind this enhancement is to provide a way for the qgis_process R libraries to support parameter types such as aggregates!

This feature was funded by the Research Institute for Nature and Forest, Flemish Govt

This feature was developed by Nyall Dawson

Feature: Run Python script algorithms directly via qgis_process

The qgis_process command-line tool now supports running a Python script algorithm directly by specifying the path to the .py file, in place of an algorithm ID or model file path!

This feature was developed by Nyall Dawson

データプロバイダ

Feature: Friendlier errors from XYZ raster tiles, WMS and vector tiles

Server errors which occur during XYZ, vector tile or WMS network requests are now shown directly in the QGIS window via the message bar. We've made these error messages much more descriptive and helpful, by including the original response error text wherever possible!

image50

This feature was funded by MapTiler

This feature was developed by Lutra Consulting (Vincent Cloarec)

Feature: Add out-of-the-box connection to Mapzen Global Terrain tiles

QGIS now sports built-in support for the Terrarium DEM format for WMS/XYZ layers. In addition, we now have out-of-the-box ability to add Mapzen Global Terrain Tiles hosted on AWS. You can find the new MapZen option in the XYZ section of the browser panel. Users now have an immediately accessible global DEM source for their projects!! See also https://registry.opendata.aws/terrain-tiles/

image51

This feature was developed by Nyall Dawson

Feature: HMAC SHA256 auth method for MapTiler

We've added a new authentication method specific for MapTiler which allows you to use a token encrypted with HMAC-SHA256.

image52

This feature was funded by MapTiler

This feature was developed by Lutra Consulting (Vincent Cloarec)

Feature: Template parameter {usage} for XYZ raster and vector tiles

For XYZ tile-based raster layers and for vector tile layers, we now allow the possibility to insert {usage} template parameters (in addition to {x}, {y}, {z}). If present, this parameter will be replaced by the context in which the request is being made.

The possible context values are:

  • view - when the request comes from 2D or 3D map canvas
  • export - when the request comes from exporting a layer or exporting a print layout for high-quality output (map previews in print layout designer are classed as “view”)
  • unknown - when coming from some other context, but the source is unknown

This functionality is useful for MapTiler clients, where they need to recognize the context in which tiles are used in order to bill users accordingly.

This feature was funded by MapTiler

This feature was developed by Lutra Consulting (Vincent Cloarec)

Feature: Convert WMTS/XYZ raster tiles to terrain (DEM)

In QGIS 3.24 we've introduced the possibility to convert WMTS/XYZ raster datasets to a raster layer of single band float type following a predefined encoding scheme.

You can activate this option and choose an encoding scheme (for now, "MapTiler Terrain RGB" or "Terrarium Terrain RGB" are available) in the source settings of the XYZ connection or in the Data Source Manager when adding a WMST layer.

選択したコンバーターは、R​​GBソース値を各ピクセルのフロート値に変換します。ロード後、レイヤーはシングルバンド浮動小数点ラスターレイヤーとして表示され、疑似カラーまたはヒルシェードレンダラーを使用してスタイリングできるようになります。

image53

This feature was funded by MapTiler

This feature was developed by Lutra Consulting (Vincent Cloarec)

Feature: Array field types for scratch layers

You can now add array field types directly to newly created scratch layers. (While array field types have previously been supported by scratch layers, there was no way for users to add them when creating a new scratch layer.)

image54

This feature was developed by Mathieu Pellerin

Feature: JSON field types for new GeoPackage layers

We've added support for creating JSON fields directly to newly created GeoPackage layers. (While JSON field types have previously been supported by GeoPackage layers, there was no way for users to add them when creating a new layer.)

image55

This feature was developed by Mathieu Pellerin

Feature: Delimited text type overrides and other improvements

We've given some love to the delimited text data provider in 3.24, with several enhancements which include:

Boolean type support and automatic detection

Boolean data types are now first-class citizens, which are automatically recognized when all records in a column contain one of the following values (case insensitive):

  • t/f
  • true/false
  • yes/no
  • 0/1

Boolean fields are also detected from a CSVT file, a GDAL/GeoCSV format e.g.

Integer(Boolean)

You can also add custom string representations for TRUE/FALSE (for example a localized "yes"/"no" value).

Column type override

Column types are automatically determined (by an initial limited scan of the file for immediate feedback followed by a full scan of the file which happens in a separate thread to not block the GUI and is user-interruptible), the types are exposed to the GUI as combo boxes and the user can override the automatically determined types.

Enhanced CSVT support.

CoordX, CoordY, Point(X/Y), WKT are now recognized as specified in https://giswiki.hsr.ch/GeoCSV

image56

この機能は Stadt Freiburg im Breisgau によって資金提供されました

This feature was developed by Alessandro Pasotti

Feature: New authentication method for HTTP header based authentication

A new authentication method is available for network requests which that supports user defined HTTP header authentication. Multiple custom headers can be included in these requests.

This is useful in various scenarios, such as when a WMS requires an API key that is to be used in a HTTP header with the header key being X-API-KEY, which can now be included in requests from QGIS to authenticate against the WMS endpoint.

image57

This feature was developed by Tom C

Feature: Expose secondary PostGIS geometry columns as referenced geometries

As discussed in this issue, we have added support for exposing additional geometry columns from the Postgres provider as QgsReferencedGeometry. This allows more efficient interaction with additional geometry columns through the API. For example, in label placement, the additional geometry column can be used instead of the feature geometry. The fields will be represented as WKT [CRS User-Friendly Identifier] in the attribute table.

This can be used in expressions and in the label placement properties tab where you can link the label placement to the second geometry column using the Point property. In the case where you using it for labelling, the second geometry column will be updated automatically if you use the move tool and the columnt type is Geometry. If the column type is text, you could also use that as a second geometry by doing e.g.

geom_from_wkt("my wkt string field")

In this case however, the column will be read only.

So e.g. now in expressions if you have secondary geometry column you can do:

buffer("my_second_geom_column", 10)

and it will work.

⚠️
警告

This changes the behavior of existing projects.

image58

This feature was funded by OPENGIS.ch

This feature was developed by Matthias Kuhn, OPENGIS.ch

QGISサーバー

Feature: Allow better control of the response flow chain from server filters

New filters allow control of the call chain by implementing new filter callbacks that allow returning a control value for stopping propagation. This allows for the better control of streamed data and response flow.

  • Deprecate bool QgsFilter::onRequestReady(), bool QgsFilter::onSendResponse(), bool QgsFilter::onResponseComplete()
  • Add new methods bool QgsFilter::onRequestReady(), bool QgsFilter::onSendResponse(), bool QgsFilter::onResponseComplete() which return boolean values for controlling data flow
  • Handle flow control in QgsFilterResponseDecorator::flush()

This feature was developed by David Marteau

注目すべき修正

Alessandro Pasotti によるバグ修正

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
Wrong raster projection on HIDPI screens#46882PR #46931TODO
Data Source Manager title not translatable#46929PR #46932TODO
QGIS 3.22 - Identical map names in print composer#46927Works for me
Bold and italic attributes of labels that reinitialize#46896Works for me
NameError: name 'QGISAPP' is not defined when using stop_app()#46883Works for me on Linux/master, might be windows only
Virtual layer not loaded correctly after re-opening a project#46834PR #46938TODO
QGIS crashes while calling readLayerXml()#46741Works for me
Crash when changing orientation of page in layout#46575PR #46972TODO
"sort" funcionality of attributes table sort numeric fields as text#34935PR #47035TODO
OAPIF: api-key not included when requesting /collections endpoint#46535PR #47145TODO
XML notation if missing from tooltips in vector file writer dialog#46508PR #47148TODO
Ignore out of range option in interpolated symbol renderer creates artifacts if start value is out of range#46362PR #47174TODO
start width > end width is ignored when using the "exact" color interpolation method#46371PR #47195TODO
QGIS Layouts: using "Data defined override" for HTML Source URL not working#34395works for me (closed - not a bug)
(Un)force hide form in relation widget#47226PR #47245TODO
Oauth2 authentication protocol does not honors the defined port number in redirect URL in QGIS 3.22.1#46354works for me (left open)
HTML/String-ish QByteArray as result of expression function breaks expression preview display#46174PR #47229TODO
Raster layer exported to GeoPackage with the character 'ß' in the name is not immediately loaded in the project#45965works for me (closed)
Layout Attribute Table sorting does not work in Print Layouts when column name has spaces#43744PR #47249TODO
Incorrect scale range legend after applying logarithmic graduated symbology to a vector layer#45454PR #47259Risky?
fix server crash未報告PR #47271TODO
Load QGIS project from command line from a PostgreSQL project#47270PR #47272TODO
Aggregate function with filter doesn't work in layout manager#45552Works for me (closed)
Value map widget: "value"/"description" inconsistency when table added to print layouts#41798PR #47300TODO
Missing entries in attributetable in layout with atlas at page break#44086PR #47303TODO
Server OAPIF: bbox filter isn't working if data source CRS is not EPSG:4326/WGS84#47302PR #47318TODO
Drag & Drop designer control visibility by expression with field IS NOT NULL doesn't work if the field is configured with html#47363PR #47432Risky?

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Alessandro Pasotti

Sandro Santilliによるバグ修正

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
DistanceWithin algorithm failing with PostgreSQL provider#45352PR #46971PR #47076
GH_WORKSPACE -> QGIS_WORKSPACEPR #47060
Improve documentation about running testsPR #47057
Use variables to set postgresql connection config in authmanager testPR #47059
Re-use possibly cached postgis_version from pgsql description methodPR #47393PR #47401
Trust primary key of layers setup by DBManager TopoViewer plugin#47389PR #47390PR #47403
Improved debugging output in QgsPostgresConn classPR #47396

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Sandro Santilli

Even Rouaultによるバグ修正

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
QGIS 3.21.0: preset transform required "nehpgn.gsb" but downloads "nehpgn.tif" which does not work#45470PR #46918PR #46952
Raster layer misaligns when bbox bigger than projected raster layer#34518PR #46939PR #46956
Filter for WFS layer: The "Tables" button is missing#46887バグではない
Something simpler than SQL to filter a WFS layer#46888PR #47056PR #47132
renaming/deleting columns takes a lot of time on large vectors#47012GDAL PR 5193GDAL PR 5204
Opening a Vector Geopackage in QGIS alters its file even when no changes are done by user#23991PR #47098PR #47301
MapInfo CRS not correctly recognizedGDAL issue #5217PR #47149PR #47157
Crash exporting dxf using "Symbol layer symbology"#46245PR #47277PR #47297

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Even Rouault

Denis Rouzaud によるバグ修正

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
Trying to add GPKG from data source manager crashes QGIS master#46463PR #46928無関係
Display name in layer properties is not automatically filled#28353PR #47016
Fixes to QgsGeometry::addPart + new test cases未報告PR #47009

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Denis Rouzaud

Alex Bruy によるバグ修正

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
Layout picture: data-defined svg parameters should be disabled for incompatible pictures#26524PR #46976
TypeError in MetaSearch when adding WFS data#46135PR #46993PR #47003
Split Vector Layer algorithm does not export both null and empty values#38105PR #46997PR #47030
data source manager not opening with correct sub menu for point cloud datasources#42881PR #46998PR #47002
SLD import doesn't recognize html enconding in ttf font references#27263PR #46975PR #47040
Error opening data loader dialog from MetaSearch#40490Works for me
Display name in layer properties is not automatically filled#28353PR #46978
No way to add mbtiles file-based MVT package except drag and drop#36449PR #47028PR #47068
"GDAL rasterize overwrite with attribute" does not refresh/reload output#45729PR #47055PR #47105
Delete Column in Matrix Parameter in Graphic Modeler not Working#45694PR #47064PR #47067
Wrong signature of the QgsProcessingParameterMeshDatasetGroups when exporting to Python未報告PR #47152PR #47156
Error message when GRASS tools cannot be run is (now) wrong#46052PR #47163
"Ignore invalid input features" processing setting location is misleading#42557PR #47163
Inconsistent number of decimal places in Identify tool#27929PR #47173
qgis_process is not showing algorithm providers installed via a python plugin#41120PR #47258PR #47263
Unable to delete files .shp and .dbf using python code (removeMapLayers, deleteShapeFile)#39428Works for me
QgsProcessingParameterFile extension option#45633バグではない
Make the labels "edit rule" widget a real dialog with buttons#36761PR #47305
Edit form python editor tabs/spaces confusion#46988PR #47345PR #47352
Error when making buffer from empty layer with 'Dissolve result' option checked#46396PR #47348PR #47384
QGIS does not replace commas in layer names when exporting to DXF (so is incompatible with AutoCAD)#47381PR #47418PR #47430

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Alex Bruy

Bug fixes by Paul Blottiere

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
Fixes WFS EXP_FILTER parsing in GetFeature requestmailing listPR #47029Too risky
Fix output filename when a raster is saved in a format without extension未報告PR #46992TODO
WFS GetFeature document and exceptions未報告PR #47198TODO
Exluding a print layout in project propteries -> server do not avoid that a GetPrint request can be done for that layout#46140PR #47199TODO
Server: Can't enable WFS3 API update endpoint (PUT/PATCH) on layers without geometry#46119Works for me

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Pau Blottiere

Bug fixes by Matthias Kuhn

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
Fix HTTP Post with MultiPart#46989PR #47006必要なし

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Matthias Kuhn

Nyall Dawsonによるバグ修正

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
Add .tsv extension to delimited text supported files filterreported on youtube screencastPR #47181pending
Fix line anchor placements are reversed for labels which sit below lines未報告PR #47181PR #47181
Fix incorrect return code from QgsProcessingModelAlgorithm::fromFile when file does not exist未報告PR #47161PR #47162
Fix many georeferencer regressionsmultiple未報告pending
Avoid some unwanted "unhandled exception" message boxes which can pop up while moving the mousereported on youtube screencastPR #47138PR #47154
Don't use custom palette in crash handler dialog, this results in unreadable text on dark themes#47065PR #47110PR #47136
Don't slightly colorise the icons for selected items in lists#47065PR #47133not suitable
Fix python exception raised after running in-place algorithm which requires no parametersreported on youtube screencastPR #47108PR #47130
Fix labelling shown for features out of range of temporal controller dates#45160PR #47119PR #47126
Fix line dependent orientation rendering of curved labels#45051PR #47118PR #47137
When processing is initialized in external scripts, ensure the GRASS, SAGA and OTB providers are included by default#45935PR #47114PR #47121
Show descriptive error when label rotation tool cannot be used because of invalid expressions#47091PR #47112not suitable
QgsRasterDataProvider.block() returns invalid QgsRasterBlock if requested block size exceeds a certain threshold#47097PR #47106PR #47129
Fix missing icons for array field types#47078PR #47086not suitable
Use correct approach to unset data defined field for label position when auxiliary column is removed#46403PR #47085PR #47088
Fix atlas sorting with complex field names#40332PR #47083PR #47103
improve field handling when converting to rule-based#46459PR #47081PR #47104
Fix 'Save all Styles/Save current Style' only appears after close/reopen the layer properties window#46596PR #47080not suitable
Fix readability of text when using dark themes#47065PR #47071PR #47074
Fix sqlite errors on startup caused by default style database import logic未報告PR #47070not suitable
Fix color widgets incorrectly change colors when mouse is hovered over widget未報告PR #47069PR #47077
Avoid crs definition errors when closing options dialog#47014PR #47061n/a
Fix duplicate shortcut registered warning on startup未報告PR #46983not suitable
Fix scroll wheel events get "stuck" when scrolling to bottom of areas未報告PR #46958PR #46987
Flag a lot of situations where ballpark transforms are appropriate so warnings are not shown#45621PR #46957PR #46961
Fix crashes when saving layer styles#46954PR #46955not suitable
Fix broken merge features tool未報告PR #46924n/a
[mssql] Fix provider on case-sensitive database locales#46907PR #46923PR #46949
[mssql] Fix inserting features when pk attribute name contains special chars#42290PR #46876PR #46903

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Nyall Dawson

Damiano Lombardi によるバグ修正

バグの表題URL issues.qgis.org (報告された場合)URL Commit (Github)3.22 backport commit (GitHub)
Fix #47089 wrong rotation point for rotate label tool preview#47089PR #47124

These bugfixes were funded by QGIS.ORG (through donations and sustaining memberships)

Bugs fixed by Damiano Lombardi