Skip to content

Commit 3b43543

Browse files
arnaud-morvan3nids
authored andcommitted
Sipify core.QgsGemlSchema
1 parent 742c1aa commit 3b43543

File tree

2 files changed

+67
-17
lines changed

2 files changed

+67
-17
lines changed

python/auto_sip.blacklist

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ core/qgsexpressioncontextgenerator.sip
1212
core/qgsfeaturerequest.sip
1313
core/qgsgeometrysimplifier.sip
1414
core/qgsgeometryvalidator.sip
15-
core/qgsgmlschema.sip
1615
core/qgsmaptopixelgeometrysimplifier.sip
1716
core/qgstransaction.sip
1817
core/qgstransactiongroup.sip

python/core/qgsgmlschema.sip

+67-16
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,103 @@
1-
//typedef QMap<int, QgsField> QgsFieldMap;
1+
/************************************************************************
2+
* This file has been generated automatically from *
3+
* *
4+
* src/core/qgsgmlschema.h *
5+
* *
6+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7+
************************************************************************/
8+
9+
210

3-
/* Description of feature class in GML */
411
class QgsGmlFeatureClass
512
{
13+
%Docstring
14+
Description of feature class in GML
15+
%End
16+
17+
%TypeHeaderCode
18+
#include "qgsgmlschema.h"
19+
%End
620
public:
721
QgsGmlFeatureClass();
822
QgsGmlFeatureClass( const QString &name, const QString &path );
923

1024
QList<QgsField> &fields();
25+
%Docstring
26+
:rtype: list of QgsField
27+
%End
1128

1229
int fieldIndex( const QString &name );
30+
%Docstring
31+
:rtype: int
32+
%End
1333

1434
QString path() const;
35+
%Docstring
36+
:rtype: str
37+
%End
1538

1639
QStringList &geometryAttributes();
40+
%Docstring
41+
:rtype: list of str
42+
%End
43+
1744
};
1845

1946
class QgsGmlSchema : QObject
2047
{
2148

2249
%TypeHeaderCode
23-
#include <qgsgmlschema.h>
50+
#include "qgsgmlschema.h"
2451
%End
25-
2652
public:
2753
QgsGmlSchema();
2854

29-
~QgsGmlSchema();
30-
31-
/** Get fields info from XSD */
3255
bool parseXSD( const QByteArray &xml );
56+
%Docstring
57+
Get fields info from XSD
58+
:rtype: bool
59+
%End
3360

34-
/** Guess GML schema from data if XSD does not exist.
35-
* Currently only recognizes UMN Mapserver GetFeatureInfo GML response.
36-
* Supports only UTF-8, UTF-16, ISO-8859-1, US-ASCII XML encodings.
37-
* @param data GML data
38-
* @return true in case of success */
3961
bool guessSchema( const QByteArray &data );
62+
%Docstring
63+
Guess GML schema from data if XSD does not exist.
64+
Currently only recognizes UMN Mapserver GetFeatureInfo GML response.
65+
Supports only UTF-8, UTF-16, ISO-8859-1, US-ASCII XML encodings.
66+
\param data GML data
67+
:return: true in case of success *
68+
:rtype: bool
69+
%End
4070

41-
/** Get list of dot separated paths to feature classes parsed from GML or XSD */
4271
QStringList typeNames() const;
72+
%Docstring
73+
Get list of dot separated paths to feature classes parsed from GML or XSD
74+
:rtype: list of str
75+
%End
4376

44-
/** Get fields for type/class name parsed from GML or XSD */
4577
QList<QgsField> fields( const QString &typeName );
78+
%Docstring
79+
Get fields for type/class name parsed from GML or XSD
80+
:rtype: list of QgsField
81+
%End
4682

47-
/** Get list of geometry attributes for type/class name */
4883
QStringList geometryAttributes( const QString &typeName );
84+
%Docstring
85+
Get list of geometry attributes for type/class name
86+
:rtype: list of str
87+
%End
4988

50-
/** Get error if parseXSD() or guessSchema() failed */
5189
QgsError error() const;
90+
%Docstring
91+
Get error if parseXSD() or guessSchema() failed
92+
:rtype: QgsError
93+
%End
94+
5295
};
96+
97+
/************************************************************************
98+
* This file has been generated automatically from *
99+
* *
100+
* src/core/qgsgmlschema.h *
101+
* *
102+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
103+
************************************************************************/

0 commit comments

Comments
 (0)