|
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 | + |
2 | 10 |
|
3 |
| -/* Description of feature class in GML */ |
4 | 11 | class QgsGmlFeatureClass
|
5 | 12 | {
|
| 13 | +%Docstring |
| 14 | + Description of feature class in GML |
| 15 | +%End |
| 16 | + |
| 17 | +%TypeHeaderCode |
| 18 | +#include "qgsgmlschema.h" |
| 19 | +%End |
6 | 20 | public:
|
7 | 21 | QgsGmlFeatureClass();
|
8 | 22 | QgsGmlFeatureClass( const QString &name, const QString &path );
|
9 | 23 |
|
10 | 24 | QList<QgsField> &fields();
|
| 25 | +%Docstring |
| 26 | + :rtype: list of QgsField |
| 27 | +%End |
11 | 28 |
|
12 | 29 | int fieldIndex( const QString &name );
|
| 30 | +%Docstring |
| 31 | + :rtype: int |
| 32 | +%End |
13 | 33 |
|
14 | 34 | QString path() const;
|
| 35 | +%Docstring |
| 36 | + :rtype: str |
| 37 | +%End |
15 | 38 |
|
16 | 39 | QStringList &geometryAttributes();
|
| 40 | +%Docstring |
| 41 | + :rtype: list of str |
| 42 | +%End |
| 43 | + |
17 | 44 | };
|
18 | 45 |
|
19 | 46 | class QgsGmlSchema : QObject
|
20 | 47 | {
|
21 | 48 |
|
22 | 49 | %TypeHeaderCode
|
23 |
| -#include <qgsgmlschema.h> |
| 50 | +#include "qgsgmlschema.h" |
24 | 51 | %End
|
25 |
| - |
26 | 52 | public:
|
27 | 53 | QgsGmlSchema();
|
28 | 54 |
|
29 |
| - ~QgsGmlSchema(); |
30 |
| - |
31 |
| - /** Get fields info from XSD */ |
32 | 55 | bool parseXSD( const QByteArray &xml );
|
| 56 | +%Docstring |
| 57 | +Get fields info from XSD |
| 58 | + :rtype: bool |
| 59 | +%End |
33 | 60 |
|
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 */ |
39 | 61 | 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 |
40 | 70 |
|
41 |
| - /** Get list of dot separated paths to feature classes parsed from GML or XSD */ |
42 | 71 | 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 |
43 | 76 |
|
44 |
| - /** Get fields for type/class name parsed from GML or XSD */ |
45 | 77 | 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 |
46 | 82 |
|
47 |
| - /** Get list of geometry attributes for type/class name */ |
48 | 83 | QStringList geometryAttributes( const QString &typeName );
|
| 84 | +%Docstring |
| 85 | +Get list of geometry attributes for type/class name |
| 86 | + :rtype: list of str |
| 87 | +%End |
49 | 88 |
|
50 |
| - /** Get error if parseXSD() or guessSchema() failed */ |
51 | 89 | QgsError error() const;
|
| 90 | +%Docstring |
| 91 | +Get error if parseXSD() or guessSchema() failed |
| 92 | + :rtype: QgsError |
| 93 | +%End |
| 94 | + |
52 | 95 | };
|
| 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