QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
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 Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings. 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 43 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 |
||
) |
Read from GML data.
Constructor uri param is ignored Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings.
Definition at line 176 of file qgsgml.cpp.
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 Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings.
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 58 of file qgsgml.cpp.
|
inline |
|
signal |