Class: QgsGmlSchema

class qgis.core.QgsGmlSchema

Bases: PyQt5.QtCore.QObject

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

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

Gets error if parseXSD() or guessSchema() failed

Return type

QgsError

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()
parseXSD(self, xml: Union[QByteArray, bytes, bytearray]) → bool

Gets fields info from XSD

Parameters

xml (Union[QByteArray) –

Return type

bool

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

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

Return type

List[str]