QGIS API Documentation
3.24.2-Tisler (13c1a02865)
|
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) More... | |
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. More... | |
QMap< QgsFeatureId, QgsFeature * > | featuresMap () const |
Gets parsed features for given type name. More... | |
int | getFeatures (const QByteArray &data, QgsWkbTypes::Type *wkbType, QgsRectangle *extent=nullptr) |
Read from GML data. More... | |
int | getFeatures (const QString &uri, QgsWkbTypes::Type *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. More... | |
QMap< QgsFeatureId, QString > | idsMap () const |
Gets feature ids map. More... | |
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 45 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, |
QgsWkbTypes::Type * | wkbType, | ||
QgsRectangle * | extent = nullptr |
||
) |
int QgsGml::getFeatures | ( | const QString & | uri, |
QgsWkbTypes::Type * | 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 60 of file qgsgml.cpp.
|
inline |
|
signal |