QGIS API Documentation
2.8.2-Wien
|
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) |
void | dataReadProgress (int progress) |
void | totalStepsUpdate (int totalSteps) |
Public Member Functions | |
QgsGml (const QString &typeName, const QString &geometryAttribute, const QgsFields &fields) | |
~QgsGml () | |
QgsCoordinateReferenceSystem | crs () const |
Returns features spatial reference system. | |
QMap< QgsFeatureId, QgsFeature * > | featuresMap () const |
Get parsed features for given type name. | |
int | getFeatures (const QString &uri, QGis::WkbType *wkbType, QgsRectangle *extent=0, const QString &userName=QString(), const QString &password=QString()) |
Does the Http GET request to the wfs server Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings. | |
int | getFeatures (const QByteArray &data, QGis::WkbType *wkbType, QgsRectangle *extent=0) |
Read from GML data. | |
QMap< QgsFeatureId, QString > | idsMap () const |
Get 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 36 of file qgsgml.cpp.
QgsGml::~QgsGml | ( | ) |
Definition at line 68 of file qgsgml.cpp.
QgsCoordinateReferenceSystem QgsGml::crs | ( | ) | const |
Returns features spatial reference system.
Definition at line 994 of file qgsgml.cpp.
|
signal |
|
signal |
|
inline |
int QgsGml::getFeatures | ( | const QString & | uri, |
QGis::WkbType * | wkbType, | ||
QgsRectangle * | extent = 0 , |
||
const QString & | userName = QString() , |
||
const QString & | password = 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 |
Definition at line 72 of file qgsgml.cpp.
int QgsGml::getFeatures | ( | const QByteArray & | data, |
QGis::WkbType * | wkbType, | ||
QgsRectangle * | extent = 0 |
||
) |
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 173 of file qgsgml.cpp.
|
inline |
|
signal |