mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
89 lines
2.4 KiB
Plaintext
89 lines
2.4 KiB
Plaintext
/************************************************************************
|
|
* 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 *
|
|
************************************************************************/
|