Subgroup: Gml
Class: QgsGml¶
-
class
qgis.core.
QgsGml
¶ Bases:
PyQt5.QtCore.QObject
This class reads data from a WFS server or alternatively from a GML file. It uses the expat XML parser and an event based model to keep performance high. The parsing starts when the first data arrives, it does not wait until the request is finished *
Methods
blockSignals
childEvent
children
connectNotify
crs
Returns features spatial reference system customEvent
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
featuresMap
Get parsed features for given type name 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] getFeatures
Read from GML data. getFeaturesUri
Does the Http GET request to the wfs server Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings. idsMap
Get feature ids map inherits
installEventFilter
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
thread
timerEvent
tr
Attributes
dataProgressAndSteps
Also emit signal with progress and totalSteps together (this is better for the status message) [signal] dataReadProgress
dataReadProgress(self, int) [signal] destroyed
destroyed(self, QObject = None) [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
totalStepsUpdate
totalStepsUpdate(self, int) [signal] -
childEvent
()¶
-
connectNotify
()¶
-
crs
(self) → QgsCoordinateReferenceSystem¶ Returns features spatial reference system
New in version 2.1.
-
customEvent
()¶
-
dataProgressAndSteps
¶ Also emit signal with progress and totalSteps together (this is better for the status message) [signal]
-
dataReadProgress
¶ dataReadProgress(self, int) [signal]
-
disconnectNotify
()¶
-
featuresMap
(self) → object¶ Get parsed features for given type name
-
getFeatures
(self, data: Union[QByteArray, bytes, bytearray], extent: QgsRectangle = None) → Tuple[int, QgsWkbTypes.Type]¶ Read from GML data. Constructor uri param is ignored Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings.
-
getFeaturesUri
(self, uri: str, extent: QgsRectangle = None, userName: str = '', password: str = '', authcfg: str = '') → Tuple[int, QgsWkbTypes.Type]¶ Does the Http GET request to the wfs server Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings.
Parameters: - uri – GML URL
- wkbType – wkbType to retrieve
- extent – retrieved extents
- userName – username for authentication
- password – password for authentication
- authcfg – authentication configuration id
Returns: 0 in case of success
Note
available in Python as getFeaturesUri
-
idsMap
(self) → object¶ Get feature ids map
-
isSignalConnected
()¶
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶
-
totalStepsUpdate
¶ totalStepsUpdate(self, int) [signal]
-