QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
This class reads data from a WFS server or alternatively from a GML file. More...
#include <qgsgml.h>
Signals | |
void | dataProgressAndSteps (int progress, int totalSteps) |
Also emit signal with progress and totalSteps together (this is better for the status message) | |
void | dataReadProgress (int progress) |
void | totalStepsUpdate (int totalSteps) |
Public Member Functions | |
QgsGml (const QString &typeName, const QString &geometryAttribute, const QgsFields &fields) | |
QgsCoordinateReferenceSystem | crs () const |
Returns features spatial reference system. | |
QMap< QgsFeatureId, QgsFeature * > | featuresMap () const |
Gets parsed features for given type name. | |
int | getFeatures (const QByteArray &data, Qgis::WkbType *wkbType, QgsRectangle *extent=nullptr) |
Read from GML data. | |
int | getFeatures (const QString &uri, Qgis::WkbType *wkbType, QgsRectangle *extent=nullptr, const QString &userName=QString(), const QString &password=QString(), const QString &authcfg=QString()) |
Does the Http GET request to the wfs server. | |
QMap< QgsFeatureId, QString > | idsMap () const |
Gets feature ids map. | |
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
QgsGml::QgsGml | ( | const QString & | typeName, |
const QString & | geometryAttribute, | ||
const QgsFields & | fields | ||
) |
Definition at line 46 of file qgsgml.cpp.
QgsCoordinateReferenceSystem QgsGml::crs | ( | ) | const |
|
signal |
Also emit signal with progress and totalSteps together (this is better for the status message)
|
signal |
|
inline |
int QgsGml::getFeatures | ( | const QByteArray & | data, |
Qgis::WkbType * | wkbType, | ||
QgsRectangle * | extent = nullptr |
||
) |
int QgsGml::getFeatures | ( | const QString & | uri, |
Qgis::WkbType * | wkbType, | ||
QgsRectangle * | extent = nullptr , |
||
const QString & | userName = QString() , |
||
const QString & | password = QString() , |
||
const QString & | authcfg = QString() |
||
) |
Does the Http GET request to the wfs server.
uri | GML URL |
wkbType | wkbType to retrieve |
extent | retrieved extents |
userName | username for authentication |
password | password for authentication |
authcfg | authentication configuration id |
Definition at line 61 of file qgsgml.cpp.
|
inline |
|
signal |