Skip to content
Back to skills

Qgis Knowledge Patch

ASecurity

QGIS

  • 25 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 5, 2026
developmentgoc++sqlexpressapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill qgis-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qgis Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qgis Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-qgis-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-qgis-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qgis-knowledge-patch
description: QGIS
version: "4.4"
license: MIT
metadata:
  author: Nevaberry
---


# QGIS knowledge patch

Use this skill when updating QGIS plugins, working with PyQGIS, configuring
data providers or QGIS Server, building Processing workflows, or preparing
maps, layouts, elevation profiles, meshes, and point clouds.
Load the topic reference for detailed behavior, conditions, and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [Cartography, labeling, layouts, and profiles](references/cartography-labeling-layouts-and-profiles.md) | Symbols, annotations, label formatting and placement, temporal rasters, scale, legends, charts, PDFs, elevation profiles and controller |
| [Data sources, databases, and server](references/data-sources-databases-and-server.md) | Database imports and SQL, PostgreSQL projects, file formats, STAC, authentication, WFS, SensorThings, WMS, OGC API Features |
| [Plugins, APIs, and user interface](references/plugins-api-and-user-interface.md) | Plugin migration, profiles, startup, forms, editing, geometry APIs, expressions, templates |
| [Processing, geometry, and raster](references/processing-geometry-and-raster.md) | Algorithm migrations, geometry checks, networks, models, metadata, plots, raster formats, terrain and hydrology |
| [3D, mesh, and point cloud](references/three-d-mesh-and-point-cloud.md) | 3D materials, cameras, scene formats and export, mesh editing, VPC rendering, point cloud analysis |

## Plugin migration and removals

The repository lists a plugin as QGIS 4 Ready when either `qgisMinimumVersion`
or `qgisMaximumVersion` is at least `4.0`. Omitting the maximum limits
compatibility to the major version line of the minimum. Keep the existing
minimum and set an explicit maximum to advertise both QGIS 3 and QGIS 4 support.

```ini
[general]
qgisMinimumVersion=3.22
qgisMaximumVersion=4.99
```

Remove the temporary `supportsQt6=True` field from `metadata.txt`; QGIS core
dropped support for it. Declare compatibility through the version fields.
On upload, `pyqgis4-checker` reports affected files and lines in **Qt6 Check**.
The report is advisory; an eligible plugin version appears as QGIS 4 Ready
after approval.

Plugins using removed deprecated `WidgetWrapper` subclasses must migrate to
the C++ Processing GUI API. Install **DB Manager Community Edition** to use
DB Manager in QGIS 4.4; the former built-in entry directs users to it.

The running QGIS application blocks `initQgis()` and `exitQgis()` calls.
Plugins and console scripts can use the application's existing QGIS session.

## Settings, command-line profiles, and server paths

QGIS 4 uses a separate settings store. On first startup it copies the loaded
QGIS 3 profile once; later changes to each profile are independent. Point
automated installers, profile-management scripts, and enterprise deployments
at the QGIS 4 settings directory.

For `qgis_process`, `--profile NAME` loads an existing Desktop profile.
`--profiles-path PATH` or `-S PATH` sets the parent of `profiles/`, overriding
`QGIS_CUSTOM_CONFIG_PATH`. With only a profiles path, the default comes from
that root's `profiles.ini`. An unknown explicit profile name exits with status 1.

```sh
qgis_process --profiles-path "/srv/qgis config" --profile batch --help
```

The default OGC API Features root moves from `/wfs3` to `/ogcapi`.
Set `QGIS_SERVER_API_WFS3_ROOT_PATH=/wfs3` to retain the previous path.
If the server is configured to ignore bad layers,
`QGIS_SERVER_RETRY_BAD_LAYERS=true` checks invalid project layers on each request
and resumes serving them when their data sources recover.

## Algorithm and data behavior changes

Use **Hub distance** for either or both optional point and line outputs.
The separate **Distance to nearest hub (points)** and
**Distance to nearest hub (line to hub)** algorithms are deprecated.
**Oriented Minimum Bounding Box** rejects point layers.
Keep NURBS curves outside `MultiCurve` geometries, which reject them.

`QgsGeometry.as_numpy()` can return XYZ, XYM, or XYZM coordinates according to
the input geometry; unpacking and reshaping must account for extra ordinates.
Empty GDAL DateTime strings in raster attribute tables become NULL; use a
NULL check for missing timestamps.

`concat_ws()` takes a separator first and skips NULL values:
`concat_ws(' / ', 'A', NULL, 'B')` returns `'A / B'`.
`concat(NULL, NULL)` returns an empty string.
`layer_property(layer, 'type')` returns a language-independent type value.

## Geometry checks, repairs, and dependencies

**Check Geometry** outputs erroneous features and a point layer of error
locations with identifiers such as feature, part, and vertex. **Fix Geometry**
outputs a corrected layer of the input geometry type and a point layer with
the fix status and message at each error location.

**Clean coverage** removes polygon overlaps and closes small gaps in an
imperfect coverage. It is also exposed through `QgsGeometry` and requires
a QGIS build with GEOS 3.14.0 or later.
**Check Holes** reports holes whose area is at or below its threshold.

`native:forcecw` makes exterior rings clockwise and holes counterclockwise,
matching **Force right-hand-rule**; `native:forceccw` does the opposite.
**Remove parts by length** and **Remove parts by area** apply thresholds to
individual parts and omit features when no part qualifies, including
single-part geometries below the threshold.

**Approximate Medial Axis** uses the 2D projection for 3D input.
With SFCGAL 2.3, `extendToEdges` extends endpoints to the input polygon boundary.

## Raster outputs, analysis, and models

**TIN interpolation** and **IDW interpolation** honor the output extension;
use `.tif` for GeoTIFF. Explicit Cloud Optimized GeoTIFF optimization and
pyramid options in raster export require GDAL 3.13 or later. In Processing
outputs accepting GDAL format flags, `-of COG` selects the COG driver for
a `.tif` or `.tiff` destination.

**Raster rank** counts positive ranks from the lowest value and negative
ranks from the highest. It skips NoData by default and outputs NoData if too
few valid values remain; an alternate mode propagates NoData from any input.
**Raster grid cell index** instead writes each valid cell's zero-based rank
by value within a raster.

**Channel network and drainage basins from DEM** starts with a DEM;
**Channel network and drainage basins from multiple inputs** accepts existing
flow direction and Strahler order rasters. Global thin plate spline
interpolation fits one surface through all points; local interpolation uses
nearby points within a maximum search distance for each output cell.

The Model Designer can show intermediate feature counts as supported steps
run and scalar outputs such as numbers or truncated strings. Steps without
live reporting show exact feature counts when the model finishes.
Drag from a socket and release on the canvas to list compatible algorithms
or parameters; selecting one connects to the first suitable socket.

## Provider and server choices

Dropping one layer on a supported Browser destination opens database import
options; dropping multiple layers imports immediately. Oracle uses the
legacy workflow. Imports support expression-based field mapping and filtering
by extent or expression; selected-features-only requires a source selection.
Close a table in the current project before renaming it or renaming or
deleting its fields from the Browser.

WFS connections default to GET and can select POST. `featureMode='SimpleFeatures'`
requests simplified features, `ComplexFeatures` disables simplification,
and the default mode follows the server configuration.
SensorThings supports OAuth2 authentication configurations; its dedicated
basic authentication option has been removed.

Enable WMS time dimension computation on every group in a nested chain to
propagate child times. A group's **Time** default handles `GetMap` requests
without `TIME`; **All values** uses the full time range.
QGIS Server exposes **RFC7946**, **JSON-FG**, and **JSON-FG-PLUS** through
OGC API Features, along with feature time information. Additional PostgreSQL
geometry columns are returned as WKT transformed to the requested CRS.

## Labeling, layouts, and elevation profiles

A vector layer's label margin keeps labels from its own and other layers
at least that distance away. **Prevent duplicate labels** compares matching
text case-sensitively across all layers within the configured distance.
Moving, offsetting, rotating, scaling, or simplifying a feature shows live label
previews. Final placement also accounts for obstacles and other labels and
can differ from the preview.

New layout legends default to **Synchronize to Visible Layers** unless changed
in **Options → Layout**. This mode follows visibility in the linked map or
project tree regardless of map extent. Clear **Include automatically in print
layout legend items** to exclude a vector, raster, mesh, or point cloud layer
from automatic legends; the setting is on by default.

Layout charts use source layers and X/Y expressions. A chart can derive
categories and optional symbol colors from the vector renderer; a blank
series counts matching features, while a Y expression sums within a category.
Geospatial PDF export with unlocked map layers can preserve the project layer
tree, including initially hidden layers; group layers become single PDF layers.

Elevation profiles are saved in the project. **Synchronize Layers to Project**
follows groups and order and is off by default. Per-layer `custom tolerance`
overrides the global profile tolerance. **Fixed Scales** sets distance and
elevation scales independently, with an optional minimum elevation anchor;
**Manual Ranges** sets bounds directly.

## 3D scenes, meshes, and point clouds

**From 2D Symbology** replaces the current 3D style from supported single-symbol,
categorized, or rule-based 2D renderers, carrying over categories or rules
and simple symbol properties. Metal–roughness materials accept base color,
metalness, roughness, and ambient occlusion textures, opacity, and optional
solid emission with adjustable strength.

3D Tiles instancing requires unquantized positions and rotations without
octahedral encoding and ignores feature IDs. QGIS reads implicit 3D Tiles 1.1
tilesets using quadtree subdivision. STL scene export saves geometry without textures.

Mesh groups can share a name across different URIs, with numbered suffixes
such as `_1`. Only groups added separately from the original mesh source can
be removed. **Prefer Mesh, then Z Widget** and **Prefer Mesh, then Terrain**
interpolate Z inside mesh faces and use their selected fallback elsewhere.

Remote `.vpc` files can be opened directly; editing requires a local VPC and
locally stored COPC tiles. VPC rendering uses all assets with the `overview`
role when zoomed out, regardless of IDs. A `.vpz` archive can contain a zipped
`.vpc` file. **Convert input files to COPC format** makes LAS/LAZ inputs fully
renderable through the resulting VPC in 2D and 3D.

**Compare point clouds (M3C2)** requires a QGIS build with PDAL newer than 2.10.
**Height above ground** requires ground points with `Classification = 2`;
it adds `HeightAboveGround` and can replace point Z values with those heights.
PDAL **Export to raster (TIN)** uses `max-triangle-edge-length` to discard
triangles with an edge longer than the threshold; it needs PDAL 2.6.0 or later
and wrench 1.2.2 or later.

Files in this skill

  • SKILL.md10 KB
  • coverage.json858 B
  • references/cartography-labeling-layouts-and-profiles.md7.4 KB
  • references/data-sources-databases-and-server.md7.1 KB
  • references/plugins-api-and-user-interface.md5.2 KB
  • references/processing-geometry-and-raster.md6.6 KB
  • references/three-d-mesh-and-point-cloud.md7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.