Class: QgsCoordinateReferenceSystemProxyModel¶
A sort/filter proxy model for coordinate reference systems.
Added in version 3.34.
Class Hierarchy¶
Base classes¶
Methods
Returns the underlying source model. |
|
Returns the current filter list of auth ID strings, if set. |
|
Returns whether deprecated CRS will be filtered from the results. |
|
Returns the current filter string, if set. |
|
Returns any filters that affect how CRS are filtered. |
|
Sets a filter list of CRS auth ID strings, such that only coordinate reference systems matching the specified auth IDs will be shown. |
|
Sets whether deprecated CRS should be filtered from the results. |
|
Sets a filter string, such that only coordinate reference systems matching the specified string will be shown. |
|
Set filters that affect how CRS are filtered. |
Attributes
- class qgis.gui.QgsCoordinateReferenceSystemProxyModel[source]¶
Bases:
QSortFilterProxyModel
- __init__(parent: QObject | None = None)
Constructor for QgsCoordinateReferenceSystemProxyModel, with the given
parent
object.- Parameters:
parent (Optional[QObject] = None)
- class Filter¶
Bases:
int
- FilterCompound = 8¶
- FilterHorizontal = 2¶
- FilterVertical = 4¶
- class Filters¶
- class Filters(f: QgsCoordinateReferenceSystemProxyModel.Filters | QgsCoordinateReferenceSystemProxyModel.Filter)
- class Filters(a0: QgsCoordinateReferenceSystemProxyModel.Filters)
Bases:
object
- coordinateReferenceSystemModel(self) QgsCoordinateReferenceSystemModel | None [source]¶
Returns the underlying source model.
- Return type:
Optional[QgsCoordinateReferenceSystemModel]
- filterAuthIds(self) Set[str] ¶
Returns the current filter list of auth ID strings, if set.
See also
- Return type:
Set[str]
- filterDeprecated(self) bool [source]¶
Returns whether deprecated CRS will be filtered from the results.
See also
- Return type:
bool
- filterString(self) str [source]¶
Returns the current filter string, if set.
See also
- Return type:
str
- filters(self) QgsCoordinateReferenceSystemProxyModel.Filters [source]¶
Returns any filters that affect how CRS are filtered.
See also
- Return type:
- setFilterAuthIds(self, filter: Iterable[str | None])[source]¶
Sets a
filter
list of CRS auth ID strings, such that only coordinate reference systems matching the specified auth IDs will be shown.See also
- Parameters:
filter (Iterable[Optional[str]])
- setFilterDeprecated(self, filter: bool)[source]¶
Sets whether deprecated CRS should be filtered from the results.
See also
- Parameters:
filter (bool)
- setFilterString(self, filter: str | None)[source]¶
Sets a
filter
string, such that only coordinate reference systems matching the specified string will be shown.See also
- Parameters:
filter (Optional[str])
- setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filters | QgsCoordinateReferenceSystemProxyModel.Filter)[source]¶
Set
filters
that affect how CRS are filtered.See also
- Parameters:
filters (Union[QgsCoordinateReferenceSystemProxyModel.Filters, QgsCoordinateReferenceSystemProxyModel.Filter])