Class: QgsAbstractProfileSource

class qgis.core.QgsAbstractProfileSource

Bases: sip.wrapper

Interface for classes which can generate elevation profiles.

New in version 3.26:

Methods

createProfileGenerator

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

createProfileGenerator(self, request: QgsProfileRequest) QgsAbstractProfileGenerator

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:

QgsAbstractProfileGenerator