Class: QgsCoordinateReferenceSystemProxyModel

class qgis.gui.QgsCoordinateReferenceSystemProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

A sort/filter proxy model for coordinate reference systems.

Added in version 3.34.

QgsCoordinateReferenceSystemProxyModel(parent: QObject = None) Constructor for QgsCoordinateReferenceSystemProxyModel, with the given parent object.

Methods

beginInsertColumns

beginInsertRows

beginMoveColumns

beginMoveRows

beginRemoveColumns

beginRemoveRows

beginResetModel

changePersistentIndex

changePersistentIndexList

childEvent

connectNotify

coordinateReferenceSystemModel

Returns the underlying source model.

createIndex

customEvent

decodeData

disconnectNotify

encodeData

endInsertColumns

endInsertRows

endMoveColumns

endMoveRows

endRemoveColumns

endRemoveRows

endResetModel

filterAcceptsColumn

filterAcceptsRow

param sourceRow:

filterAuthIds

Returns the current filter list of auth ID strings, if set.

filterDeprecated

Returns whether deprecated CRS will be filtered from the results.

filterString

Returns the current filter string, if set.

filters

Returns any filters that affect how CRS are filtered.

invalidateFilter

isSignalConnected

lessThan

param left:

persistentIndexList

receivers

resetInternalData

sender

senderSignalIndex

setFilterAuthIds

Sets a filter list of CRS auth ID strings, such that only coordinate reference systems matching the specified auth IDs will be shown.

setFilterDeprecated

Sets whether deprecated CRS should be filtered from the results.

setFilterString

Sets a filter string, such that only coordinate reference systems matching the specified string will be shown.

setFilters

Set filters that affect how CRS are filtered.

timerEvent

Attributes

FilterCompound

FilterHorizontal

FilterVertical

class Filter

Bases: int

FilterCompound = 8
FilterHorizontal = 2
FilterVertical = 4
class Filters
class Filters(Union[QgsCoordinateReferenceSystemProxyModel.Filters, QgsCoordinateReferenceSystemProxyModel.Filter])
class Filters(QgsCoordinateReferenceSystemProxyModel.Filters)

Bases: sip.wrapper

baseClass

alias of QgsCoordinateReferenceSystemProxyModel

beginInsertColumns(self, QModelIndex, int, int)
beginInsertRows(self, QModelIndex, int, int)
beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) bool
beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) bool
beginRemoveColumns(self, QModelIndex, int, int)
beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
coordinateReferenceSystemModel(self) QgsCoordinateReferenceSystemModel

Returns the underlying source model.

Return type:

QgsCoordinateReferenceSystemModel

createIndex(self, int, int, object: object = 0) QModelIndex
customEvent(self, QEvent)
decodeData(self, int, int, QModelIndex, QDataStream) bool
disconnectNotify(self, QMetaMethod)
encodeData(self, Iterable[QModelIndex], QDataStream)
endInsertColumns(self)
endInsertRows(self)
endMoveColumns(self)
endMoveRows(self)
endRemoveColumns(self)
endRemoveRows(self)
endResetModel(self)
filterAcceptsColumn(self, int, QModelIndex) bool
filterAcceptsRow(self, sourceRow: int, sourceParent: QModelIndex) bool
Parameters:
  • sourceRow (int)

  • sourceParent (QModelIndex)

Return type:

bool

filterAuthIds(self) Set[str]

Returns the current filter list of auth ID strings, if set.

Return type:

Set[str]

filterDeprecated(self) bool

Returns whether deprecated CRS will be filtered from the results.

Return type:

bool

filterString(self) str

Returns the current filter string, if set.

Return type:

str

filters(self) QgsCoordinateReferenceSystemProxyModel.Filters

Returns any filters that affect how CRS are filtered.

See also

setFilters()

Return type:

QgsCoordinateReferenceSystemProxyModel.Filters

invalidateFilter(self)
isSignalConnected(self, QMetaMethod) bool
lessThan(self, left: QModelIndex, right: QModelIndex) bool
Parameters:
  • left (QModelIndex)

  • right (QModelIndex)

Return type:

bool

persistentIndexList(self) List[QModelIndex]
receivers(self, PYQT_SIGNAL) int
resetInternalData(self)
sender(self) QObject
senderSignalIndex(self) int
setFilterAuthIds(self, filter: Iterable[str])

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

filterAuthIds()

Parameters:

filter (Iterable[str])

setFilterDeprecated(self, filter: bool)

Sets whether deprecated CRS should be filtered from the results.

Parameters:

filter (bool)

setFilterString(self, filter: str)

Sets a filter string, such that only coordinate reference systems matching the specified string will be shown.

See also

filterString()

Parameters:

filter (str)

setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filters | QgsCoordinateReferenceSystemProxyModel.Filter)

Set filters that affect how CRS are filtered.

See also

filters()

Parameters:

filters (Union[QgsCoordinateReferenceSystemProxyModel.Filters)

timerEvent(self, QTimerEvent)