Class: QgsGmlSchema

class qgis.core.QgsGmlSchema

Bases: PyQt5.QtCore.QObject

Enums

Methods

childEvent
connectNotify
customEvent
disconnectNotify
error Gets error if parseXSD() or guessSchema() failed
fields Gets fields for type/class name parsed from GML or XSD
geometryAttributes Gets list of geometry attributes for type/class name
guessSchema Guess GML schema from data if XSD does not exist.
isSignalConnected
parseXSD Gets fields info from XSD
receivers
sender
senderSignalIndex
timerEvent
typeNames Gets list of dot separated paths to feature classes parsed from GML or XSD

Signals

Attributes

childEvent()
connectNotify()
customEvent()
disconnectNotify()
error(self) → QgsError

Gets error if parseXSD() or guessSchema() failed

fields(self, typeName: str) → object

Gets fields for type/class name parsed from GML or XSD

geometryAttributes(self, typeName: str) → List[str]

Gets list of geometry attributes for type/class name

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 – GML data
Returns:True in case of success
isSignalConnected()
parseXSD(self, xml: Union[QByteArray, bytes, bytearray]) → bool

Gets fields info from XSD

receivers()
sender()
senderSignalIndex()
timerEvent()
typeNames(self) → List[str]

Gets list of dot separated paths to feature classes parsed from GML or XSD