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-02-06 15:14:16 +01:00
|
|
|
|
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
|
|
|
|
2014-10-20 22:50:15 +02: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
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsGmlFeatureClass( const QString &name, const QString &path );
|
2013-06-23 16:00:16 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
QList<QgsField> &fields();
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: list of QgsField
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
2013-06-23 16:00:16 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
int fieldIndex( const QString &name );
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: int
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
2013-06-23 16:00:16 +02:00
|
|
|
|
|
|
|
QString path() const;
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: str
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
2013-06-23 16:00:16 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
QStringList &geometryAttributes();
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: list of str
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
|
|
|
|
2013-06-23 16:00:16 +02:00
|
|
|
};
|
|
|
|
|
2014-01-27 09:22:24 +01:00
|
|
|
class QgsGmlSchema : QObject
|
2013-02-06 15:14:16 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
2017-05-02 18:12:16 +02:00
|
|
|
#include "qgsgmlschema.h"
|
2013-02-06 15:14:16 +01:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsGmlSchema();
|
2013-06-23 16:00:16 +02:00
|
|
|
|
2013-02-06 15:14:16 +01:00
|
|
|
bool parseXSD( const QByteArray &xml );
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
|
|
|
Get fields info from XSD
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: bool
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
2013-02-06 15:14:16 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
:param data: GML data
|
|
|
|
|
|
|
|
:return: true in case of success *
|
|
|
|
:rtype: bool
|
|
|
|
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
2013-02-06 15:14:16 +01:00
|
|
|
|
|
|
|
QStringList typeNames() const;
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
|
|
|
Get list of dot separated paths to feature classes parsed from GML or XSD
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: list of str
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
2013-02-06 15:14:16 +01:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
QList<QgsField> fields( const QString &typeName );
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
|
|
|
Get fields for type/class name parsed from GML or XSD
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: list of QgsField
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
2013-02-06 15:14:16 +01:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
QStringList geometryAttributes( const QString &typeName );
|
2017-05-02 18:12:16 +02:00
|
|
|
%Docstring
|
|
|
|
Get list of geometry attributes for type/class name
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: list of str
|
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
|
|
|
|
Get error if parseXSD() or guessSchema() failed
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:rtype: QgsError
|
2017-05-02 18:12:16 +02:00
|
|
|
%End
|
|
|
|
|
2013-02-06 15:14:16 +01:00
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|