Skip to content

Broken custom node initialization for Custom Elevation Profile Sources #65058

@gacarrillor

Description

@gacarrillor

What is the bug or the crash?

For instance, plugins that create and register a Custom Profile Source cannot see a corresponding custom node in the Elevation tree view anymore (in the current master, 3.99).

Expected behavior when registering a Custom Profile Source (like SwissLocator plugin does): the custom node at the top.
Image

Steps to reproduce the issue

  1. Open a new project.
  2. Register a Custom Profile Source (e.g., by running this code snippet: https://gist.github.com/gacarrillor/4bb82379e4fa30df500c5532be1c9a13, you can verify the Python console, which prints True if the Custom Profile Source was registered).
  3. Open an Elevation Profile widget.

Current result: The custom node is not in the Elevation layer tree.

Image

Expected result with the code snippet provided above:

Image

Versions

QGIS version3.99.0-Master
QGIS code revisionf937ebdfd0b
 
Libraries
Qt version6.9.2
Python version3.13.7
GDAL version3.10.3
PROJ version9.6.0
EPSG Registry database versionv12.004 (2025-03-02)
GEOS version3.13.1-CAPI-1.19.2
SFCGAL versionNo support
GeographicLib versionNo support
SQLite version3.46.1
PostgreSQL client version17.7
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionUbuntu 25.10
This copy of QGIS writes debugging output.
 
Active Python plugins
AppendFeaturesToLayer3.0.0
MetaSearch0.3.6
a00_qpipdev
db_manager0.1.20
grassprovider2.12.99
open_alaqsdev
pg_service_parser0.9.0
processing2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!Profile toolRegressionSomething which used to work, but doesn't anymore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions