|
1 |
| -class QgsGml: QObject |
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/core/qgsgml.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +class QgsGml : QObject |
2 | 15 | {
|
3 |
| -%TypeHeaderCode |
4 |
| -#include <qgsgml.h> |
| 16 | +%Docstring |
| 17 | + This class reads data from a WFS server or alternatively from a GML file. It |
| 18 | + uses the expat XML parser and an event based model to keep performance high. |
| 19 | + The parsing starts when the first data arrives, it does not wait until the |
| 20 | + request is finished * |
5 | 21 | %End
|
6 | 22 |
|
| 23 | +%TypeHeaderCode |
| 24 | +#include "qgsgml.h" |
| 25 | +%End |
7 | 26 | public:
|
8 | 27 | QgsGml(
|
9 |
| - const QString& typeName, |
10 |
| - const QString& geometryAttribute, |
| 28 | + const QString &typeName, |
| 29 | + const QString &geometryAttribute, |
11 | 30 | const QgsFields &fields );
|
12 | 31 |
|
13 |
| - ~QgsGml(); |
14 |
| - |
15 |
| - /** Does the Http GET request to the wfs server |
16 |
| - * Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings. |
17 |
| - * @param uri GML URL |
18 |
| - * @param wkbType wkbType to retrieve |
19 |
| - * @param extent retrieved extents |
20 |
| - * @param userName username for authentication |
21 |
| - * @param password password for authentication |
22 |
| - * @param authcfg authentication configuration id |
23 |
| - * @return 0 in case of success |
24 |
| - * @note available in python as getFeaturesUri |
25 |
| - */ |
26 |
| - int getFeatures( const QString& uri, |
27 |
| - QgsWkbTypes::Type* wkbType, |
28 |
| - QgsRectangle* extent = 0, |
29 |
| - const QString& userName = QString(), |
30 |
| - const QString& password = QString(), |
| 32 | + int getFeatures( const QString &uri, |
| 33 | + QgsWkbTypes::Type *wkbType, |
| 34 | + QgsRectangle *extent = 0, |
| 35 | + const QString &userName = QString(), |
| 36 | + const QString &password = QString(), |
31 | 37 | const QString &authcfg = QString() ) /PyName=getFeaturesUri/;
|
| 38 | +%Docstring |
| 39 | + Does the Http GET request to the wfs server |
| 40 | + Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings. |
| 41 | + \param uri GML URL |
| 42 | + \param wkbType wkbType to retrieve |
| 43 | + \param extent retrieved extents |
| 44 | + \param userName username for authentication |
| 45 | + \param password password for authentication |
| 46 | + \param authcfg authentication configuration id |
| 47 | + :return: 0 in case of success |
| 48 | +.. note:: |
| 49 | + |
| 50 | + available in Python as getFeaturesUri |
| 51 | + :rtype: int |
| 52 | +%End |
32 | 53 |
|
33 |
| - /** Read from GML data. Constructor uri param is ignored |
34 |
| - * Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings. |
35 |
| - */ |
36 | 54 | int getFeatures( const QByteArray &data, QgsWkbTypes::Type *wkbType, QgsRectangle *extent = 0 );
|
| 55 | +%Docstring |
| 56 | + Read from GML data. Constructor uri param is ignored |
| 57 | + Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings. |
| 58 | + :rtype: int |
| 59 | +%End |
37 | 60 |
|
38 |
| - /** Get parsed features for given type name */ |
39 |
| - QMap<qint64, QgsFeature* > featuresMap() const; |
| 61 | + QMap<QgsFeatureId, QgsFeature * > featuresMap() const; |
| 62 | +%Docstring |
| 63 | +Get parsed features for given type name |
| 64 | + :rtype: QMap<QgsFeatureId, QgsFeature * > |
| 65 | +%End |
40 | 66 |
|
41 |
| - /** Get feature ids map */ |
42 |
| - QMap<qint64, QString > idsMap() const; |
| 67 | + QMap<QgsFeatureId, QString > idsMap() const; |
| 68 | +%Docstring |
| 69 | +Get feature ids map |
| 70 | + :rtype: QMap<QgsFeatureId, str > |
| 71 | +%End |
43 | 72 |
|
44 |
| - /** Returns features spatial reference system |
45 |
| - @note Added in QGIS 2.1 */ |
46 | 73 | QgsCoordinateReferenceSystem crs() const;
|
| 74 | +%Docstring |
| 75 | + Returns features spatial reference system |
| 76 | +.. versionadded:: 2.1 |
| 77 | + :rtype: QgsCoordinateReferenceSystem |
| 78 | +%End |
47 | 79 |
|
48 | 80 | signals:
|
49 | 81 | void dataReadProgress( int progress );
|
50 | 82 | void totalStepsUpdate( int totalSteps );
|
51 |
| - //also emit signal with progress and totalSteps together (this is better for the status message) |
52 | 83 | void dataProgressAndSteps( int progress, int totalSteps );
|
| 84 | +%Docstring |
| 85 | +Also emit signal with progress and totalSteps together (this is better for the status message) |
| 86 | +%End |
53 | 87 |
|
54 | 88 | };
|
| 89 | + |
| 90 | +/************************************************************************ |
| 91 | + * This file has been generated automatically from * |
| 92 | + * * |
| 93 | + * src/core/qgsgml.h * |
| 94 | + * * |
| 95 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 96 | + ************************************************************************/ |
0 commit comments