mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Sipify core.QgsGemlSchema
This commit is contained in:
parent
742c1aa99d
commit
3b43543e48
@ -12,7 +12,6 @@ core/qgsexpressioncontextgenerator.sip
|
|||||||
core/qgsfeaturerequest.sip
|
core/qgsfeaturerequest.sip
|
||||||
core/qgsgeometrysimplifier.sip
|
core/qgsgeometrysimplifier.sip
|
||||||
core/qgsgeometryvalidator.sip
|
core/qgsgeometryvalidator.sip
|
||||||
core/qgsgmlschema.sip
|
|
||||||
core/qgsmaptopixelgeometrysimplifier.sip
|
core/qgsmaptopixelgeometrysimplifier.sip
|
||||||
core/qgstransaction.sip
|
core/qgstransaction.sip
|
||||||
core/qgstransactiongroup.sip
|
core/qgstransactiongroup.sip
|
||||||
|
@ -1,52 +1,103 @@
|
|||||||
//typedef QMap<int, QgsField> QgsFieldMap;
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/core/qgsgmlschema.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Description of feature class in GML */
|
|
||||||
class QgsGmlFeatureClass
|
class QgsGmlFeatureClass
|
||||||
{
|
{
|
||||||
|
%Docstring
|
||||||
|
Description of feature class in GML
|
||||||
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsgmlschema.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsGmlFeatureClass();
|
QgsGmlFeatureClass();
|
||||||
QgsGmlFeatureClass( const QString &name, const QString &path );
|
QgsGmlFeatureClass( const QString &name, const QString &path );
|
||||||
|
|
||||||
QList<QgsField> &fields();
|
QList<QgsField> &fields();
|
||||||
|
%Docstring
|
||||||
|
:rtype: list of QgsField
|
||||||
|
%End
|
||||||
|
|
||||||
int fieldIndex( const QString &name );
|
int fieldIndex( const QString &name );
|
||||||
|
%Docstring
|
||||||
|
:rtype: int
|
||||||
|
%End
|
||||||
|
|
||||||
QString path() const;
|
QString path() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
QStringList &geometryAttributes();
|
QStringList &geometryAttributes();
|
||||||
|
%Docstring
|
||||||
|
:rtype: list of str
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsGmlSchema : QObject
|
class QgsGmlSchema : QObject
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsgmlschema.h>
|
#include "qgsgmlschema.h"
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsGmlSchema();
|
QgsGmlSchema();
|
||||||
|
|
||||||
~QgsGmlSchema();
|
|
||||||
|
|
||||||
/** Get fields info from XSD */
|
|
||||||
bool parseXSD( const QByteArray &xml );
|
bool parseXSD( const QByteArray &xml );
|
||||||
|
%Docstring
|
||||||
|
Get fields info from XSD
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
/** 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 */
|
|
||||||
bool guessSchema( const QByteArray &data );
|
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 *
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
/** Get list of dot separated paths to feature classes parsed from GML or XSD */
|
|
||||||
QStringList typeNames() const;
|
QStringList typeNames() const;
|
||||||
|
%Docstring
|
||||||
|
Get list of dot separated paths to feature classes parsed from GML or XSD
|
||||||
|
:rtype: list of str
|
||||||
|
%End
|
||||||
|
|
||||||
/** Get fields for type/class name parsed from GML or XSD */
|
|
||||||
QList<QgsField> fields( const QString &typeName );
|
QList<QgsField> fields( const QString &typeName );
|
||||||
|
%Docstring
|
||||||
|
Get fields for type/class name parsed from GML or XSD
|
||||||
|
:rtype: list of QgsField
|
||||||
|
%End
|
||||||
|
|
||||||
/** Get list of geometry attributes for type/class name */
|
|
||||||
QStringList geometryAttributes( const QString &typeName );
|
QStringList geometryAttributes( const QString &typeName );
|
||||||
|
%Docstring
|
||||||
|
Get list of geometry attributes for type/class name
|
||||||
|
:rtype: list of str
|
||||||
|
%End
|
||||||
|
|
||||||
/** Get error if parseXSD() or guessSchema() failed */
|
|
||||||
QgsError error() const;
|
QgsError error() const;
|
||||||
|
%Docstring
|
||||||
|
Get error if parseXSD() or guessSchema() failed
|
||||||
|
:rtype: QgsError
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/core/qgsgmlschema.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user