Subgroup: other
Class: QgsOfflineEditing¶
-
class
qgis.core.
QgsOfflineEditing
¶ Bases:
PyQt5.QtCore.QObject
Methods
blockSignals
childEvent
children
connectNotify
convertToOfflineProject
Convert current project for offline editing customEvent
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] inherits
installEventFilter
isOfflineProject
Return true if current project is offline isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
moveToThread
objectName
parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
sender
senderSignalIndex
setObjectName
setParent
setProperty
signalsBlocked
startTimer
synchronize
Synchronize to remote layers thread
timerEvent
tr
Attributes
AddFeatures
AddFields
CopyFeatures
ProcessFeatures
RemoveFeatures
UpdateFeatures
UpdateGeometries
destroyed
destroyed(self, QObject = None) [signal] layerProgressUpdated
Is emitted whenever a new layer is being processed. objectNameChanged
objectNameChanged(self, str) [signal] progressModeSet
Is emitted when the mode for the progress of the current operation is set. progressStarted
The signal is emitted when the process has started. progressStopped
Emitted when the processing of all layers has finished [signal] progressUpdated
Emitted with the progress of the current mode staticMetaObject
warning
Emitted when a warning needs to be displayed. -
AddFeatures
= 3¶
-
AddFields
= 2¶
-
CopyFeatures
= 0¶
-
ProcessFeatures
= 1¶
-
class
ProgressMode
¶ Bases:
int
-
RemoveFeatures
= 4¶
-
UpdateFeatures
= 5¶
-
UpdateGeometries
= 6¶
-
childEvent
()¶
-
connectNotify
()¶
-
convertToOfflineProject
(self, offlineDataPath: str, offlineDbFile: str, layerIds: Iterable[str], onlySelected: bool = False) → bool¶ Convert current project for offline editing
Parameters: - offlineDataPath – Path to offline db file
- offlineDbFile – Offline db file name
- layerIds – List of layer names to convert
- onlySelected – Only copy selected features from layers where a selection is present
-
customEvent
()¶
-
disconnectNotify
()¶
-
isOfflineProject
(self) → bool¶ Return true if current project is offline
-
isSignalConnected
()¶
-
layerProgressUpdated
¶ Is emitted whenever a new layer is being processed. It is possible to estimate the progress of the complete operation by comparing the index of the current
layer
to the total amountnumLayers
. [signal]
-
progressModeSet
¶ Is emitted when the mode for the progress of the current operation is set.
Parameters: - mode – progress mode
- maximum – total number of entities to process in the current operation [signal]
-
progressStarted
¶ The signal is emitted when the process has started. [signal]
-
progressStopped
¶ Emitted when the processing of all layers has finished [signal]
-
progressUpdated
¶ Emitted with the progress of the current mode
Parameters: progress – current index of processed entities [signal]
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
synchronize
(self)¶ Synchronize to remote layers
-
timerEvent
()¶
-
warning
¶ Emitted when a warning needs to be displayed.
Parameters: - title – title string for message
- message – A descriptive message for the warning [signal]
-