1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgmlschema.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsGmlFeatureClass
{
%Docstring(signature="appended")
Description of feature class in GML
%End
%TypeHeaderCode
#include "qgsgmlschema.h"
%End
public:
QgsGmlFeatureClass();
QgsGmlFeatureClass( const QString &name, const QString &path );
QList<QgsField> &fields();
int fieldIndex( const QString &name );
QString path() const;
QStringList &geometryAttributes();
};
class QgsGmlSchema : QObject
{
%TypeHeaderCode
#include "qgsgmlschema.h"
%End
public:
QgsGmlSchema();
bool parseXSD( const QByteArray &xml );
%Docstring
Gets fields info from XSD
%End
bool guessSchema( const QByteArray &data );
%Docstring
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.
:param data: GML data
:return: ``True`` in case of success
%End
QStringList typeNames() const;
%Docstring
Gets list of dot separated paths to feature classes parsed from GML or
XSD
%End
QList<QgsField> fields( const QString &typeName );
%Docstring
Gets fields for type/class name parsed from GML or XSD
%End
QStringList geometryAttributes( const QString &typeName );
%Docstring
Gets list of geometry attributes for type/class name
%End
QgsError error() const;
%Docstring
Gets error if :py:func:`~QgsGmlSchema.parseXSD` or
:py:func:`~QgsGmlSchema.guessSchema` failed
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgmlschema.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|