Class: QgsGmlSchema¶
-
class
qgis.core.
QgsGmlSchema
¶ Bases:
PyQt5.QtCore.QObject
Methods
Gets error if
parseXSD()
orguessSchema()
failedGets fields for type/class name parsed from GML or XSD
Gets list of geometry attributes for type/class name
Guess GML schema from data if XSD does not exist.
Gets fields info from XSD
Gets list of dot separated paths to feature classes parsed from GML or XSD
-
childEvent
(self, QChildEvent)¶
-
connectNotify
(self, QMetaMethod)¶
-
customEvent
(self, QEvent)¶
-
disconnectNotify
(self, QMetaMethod)¶
-
error
(self) → QgsError¶ Gets error if
parseXSD()
orguessSchema()
failed- Return type
-
fields
(self, typeName: str) → object¶ Gets fields for type/class name parsed from GML or XSD
- Parameters
typeName (str) –
- Return type
object
-
geometryAttributes
(self, typeName: str) → List[str]¶ Gets list of geometry attributes for type/class name
- Parameters
typeName (str) –
- Return type
List[str]
-
guessSchema
(self, data: Union[QByteArray, bytes, bytearray]) → bool¶ Guess GML schema from data if XSD does not exist. Currently only recognizes UMN Mapserver GetFeatureInfo GML response. Supports only UTF-8, UTF-16, ISO-8859-1, US-ASCII XML encodings.
- Parameters
data (Union[QByteArray) – GML data
- Return type
bool
- Returns
True
in case of success
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
parseXSD
(self, xml: Union[QByteArray, bytes, bytearray]) → bool¶ Gets fields info from XSD
- Parameters
xml (Union[QByteArray) –
- Return type
bool
-
receivers
(self, PYQT_SIGNAL) → int¶
-
sender
(self) → QObject¶
-
senderSignalIndex
(self) → int¶
-
timerEvent
(self, QTimerEvent)¶
-
typeNames
(self) → List[str]¶ Gets list of dot separated paths to feature classes parsed from GML or XSD
- Return type
List[str]
-