| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 
 | /************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgsgml.h                                                    *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/
class QgsGml : QObject
{
%Docstring(signature="appended")
This class reads data from a WFS server or alternatively from a GML
file.
It uses the expat XML parser and an event based model to keep
performance high. The parsing starts when the first data arrives, it
does not wait until the request is finished.
%End
%TypeHeaderCode
#include "qgsgml.h"
%End
  public:
    QgsGml(
      const QString &typeName,
      const QString &geometryAttribute,
      const QgsFields &fields );
    int getFeatures( const QString &uri,
                     Qgis::WkbType *wkbType,
                     QgsRectangle *extent = 0,
                     const QString &userName = QString(),
                     const QString &password = QString(),
                     const QString &authcfg = QString() ) /PyName=getFeaturesUri/;
%Docstring
Does the HTTP GET request to the WFS server
:param uri: GML URL
:param wkbType: wkbType to retrieve
:param extent: retrieved extents
:param userName: username for authentication
:param password: password for authentication
:param authcfg: authentication configuration id
:return: 0 in case of success
%End
    int getFeatures( const QByteArray &data, Qgis::WkbType *wkbType, QgsRectangle *extent = 0 );
%Docstring
Read from GML data.
The constructor uri param is ignored.
%End
    QMap<QgsFeatureId, QgsFeature * > featuresMap() const;
%Docstring
Gets parsed features for given type name
%End
    QMap<QgsFeatureId, QString > idsMap() const;
%Docstring
Gets feature ids map
%End
    QgsCoordinateReferenceSystem crs() const;
%Docstring
Returns the spatial reference system for features.
%End
  signals:
    void dataReadProgress( int progress );
%Docstring
Emitted when data reading progresses.
:param progress: specifies the number of bytes processed so far
%End
    void totalStepsUpdate( int totalSteps );
%Docstring
Emitted when the total number of bytes to read changes.
:param totalSteps: specifies the total number of bytes which must be
                   processed
%End
    void dataProgressAndSteps( int progress, int totalSteps );
%Docstring
Emitted when data reading progresses or the total number of bytes to
read changes.
:param progress: specifies the number of bytes processed so far
:param totalSteps: specifies the total number of bytes which must be
                   processed
%End
};
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgsgml.h                                                    *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/
 |