Class: QgsProfileIdentifyResults

Stores identify results generated by a QgsAbstractProfileResults object.

Added in version 3.26.

Methods

layer

Returns the associated map layer.

results

Returns a list of custom attributes representing the identify results.

class qgis.core.QgsProfileIdentifyResults[source]

Bases: object

__init__(layer: QgsMapLayer | None = None, results: Iterable[Dict[str, Any]] = [])

Constructor for QgsProfileIdentifyResult, with the associated map layer.

Parameters:
  • layer (Optional[QgsMapLayer] = None)

  • results (Iterable[Dict[str, Any]] = [])

__init__(a0: QgsProfileIdentifyResults)
Parameters:

a0 (QgsProfileIdentifyResults)

layer(self) QgsMapLayer | None[source]

Returns the associated map layer.

Return type:

Optional[QgsMapLayer]

results(self) List[Dict[str, Any]]

Returns a list of custom attributes representing the identify results.

The interpretation of these is dependent on the QgsAbstractProfileResults subclass which generated the results.

Return type:

List[Dict[str, Any]]