QGIS/python/core/auto_generated/qgsgmlschema.sip.in

92 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-05-02 18:12:16 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgmlschema.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2013-06-23 16:00:16 +02:00
class QgsGmlFeatureClass
{
2017-05-02 18:12:16 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Description of feature class in GML
2017-05-02 18:12:16 +02:00
%End
%TypeHeaderCode
#include "qgsgmlschema.h"
%End
2013-06-23 16:00:16 +02:00
public:
2017-09-11 21:43:15 +10:00
QgsGmlFeatureClass();
2017-09-11 21:43:15 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsGmlFeatureClass.
2017-09-11 21:43:15 +10:00
%End
QgsGmlFeatureClass( const QString &name, const QString &path );
2013-06-23 16:00:16 +02:00
QList<QgsField> &fields();
2013-06-23 16:00:16 +02:00
int fieldIndex( const QString &name );
2013-06-23 16:00:16 +02:00
QString path() const;
QStringList &geometryAttributes();
2017-05-02 18:12:16 +02:00
2013-06-23 16:00:16 +02:00
};
2014-01-27 09:22:24 +01:00
class QgsGmlSchema : QObject
{
%TypeHeaderCode
2017-05-02 18:12:16 +02:00
#include "qgsgmlschema.h"
%End
public:
QgsGmlSchema();
2013-06-23 16:00:16 +02:00
bool parseXSD( const QByteArray &xml );
2017-05-02 18:12:16 +02:00
%Docstring
Gets fields info from XSD
2017-05-02 18:12:16 +02:00
%End
bool guessSchema( const QByteArray &data );
2017-05-02 18:12:16 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
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.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param data: GML data
:return: true in case of success *
2017-05-02 18:12:16 +02:00
%End
QStringList typeNames() const;
2017-05-02 18:12:16 +02:00
%Docstring
Gets list of dot separated paths to feature classes parsed from GML or XSD
2017-05-02 18:12:16 +02:00
%End
QList<QgsField> fields( const QString &typeName );
2017-05-02 18:12:16 +02:00
%Docstring
Gets fields for type/class name parsed from GML or XSD
2017-05-02 18:12:16 +02:00
%End
QStringList geometryAttributes( const QString &typeName );
2017-05-02 18:12:16 +02:00
%Docstring
Gets list of geometry attributes for type/class name
2017-05-02 18:12:16 +02:00
%End
2014-01-26 18:35:21 +01:00
QgsError error() const;
2017-05-02 18:12:16 +02:00
%Docstring
Gets error if parseXSD() or guessSchema() failed
2017-05-02 18:12:16 +02:00
%End
};
2017-05-02 18:12:16 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgmlschema.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/