Class: QgsAbstractProfileSource

Interface for classes which can generate elevation profiles.

Added in version 3.26.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: createProfileGenerator()

Class Hierarchy

Inheritance diagram of qgis.core.QgsAbstractProfileSource

Subclasses

QgsVectorLayer

Represents a vector layer which manages a vector based dataset.

QgsMeshLayer

Represents a mesh layer supporting display of data on structured or unstructured meshes.

QgsPointCloudLayer

Represents a map layer supporting display of point clouds.

QgsRasterLayer

Represents a raster layer.

Abstract Methods

createProfileGenerator

Given a profile request, returns a new profile generator ready for generating elevation profiles.

class qgis.core.QgsAbstractProfileSource[source]

Bases: object

abstract createProfileGenerator(self, request: QgsProfileRequest) QgsAbstractProfileGenerator | None[source]

Given a profile request, returns a new profile generator ready for generating elevation profiles.

The caller takes ownership of the returned generator.

May return None if the source cannot generate a profile at this time.

Parameters:

request (QgsProfileRequest)

Return type:

Optional[QgsAbstractProfileGenerator]