QGIS/python/core/auto_generated/qgsgml.sip.in

96 lines
3.1 KiB
Plaintext
Raw Normal View History

2017-05-02 17:56:18 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgml.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsGml : QObject
{
2017-05-02 17:56:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
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
2017-05-02 17:56:18 +02:00
%TypeHeaderCode
#include "qgsgml.h"
%End
public:
QgsGml(
2017-05-02 17:56:18 +02:00
const QString &typeName,
const QString &geometryAttribute,
const QgsFields &fields );
2017-05-02 17:56:18 +02:00
int getFeatures( const QString &uri,
QgsWkbTypes::Type *wkbType,
QgsRectangle *extent = 0,
const QString &userName = QString(),
const QString &password = QString(),
const QString &authcfg = QString() ) /PyName=getFeaturesUri/;
2017-05-02 17:56:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Does the Http GET request to the wfs server
Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
: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
2017-05-02 17:56:18 +02:00
.. note::
available in Python as getFeaturesUri
%End
2014-01-27 09:22:24 +01:00
int getFeatures( const QByteArray &data, QgsWkbTypes::Type *wkbType, QgsRectangle *extent = 0 );
2017-05-02 17:56:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Read from GML data. Constructor uri param is ignored
Supports only UTF-8, UTF-16, ISO-8859-1, ISO-8859-1 XML encodings.
2017-05-02 17:56:18 +02:00
%End
2017-05-02 17:56:18 +02:00
QMap<QgsFeatureId, QgsFeature * > featuresMap() const;
%Docstring
Gets parsed features for given type name
2017-05-02 17:56:18 +02:00
%End
2017-05-02 17:56:18 +02:00
QMap<QgsFeatureId, QString > idsMap() const;
%Docstring
Gets feature ids map
2017-05-02 17:56:18 +02:00
%End
2014-01-26 18:35:21 +01:00
2014-05-27 23:22:50 +02:00
QgsCoordinateReferenceSystem crs() const;
2017-05-02 17:56:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns features spatial reference system
2017-05-02 17:56:18 +02:00
.. versionadded:: 2.1
%End
2014-05-27 23:22:50 +02:00
signals:
void dataReadProgress( int progress );
void totalStepsUpdate( int totalSteps );
void dataProgressAndSteps( int progress, int totalSteps );
2017-05-02 17:56:18 +02:00
%Docstring
Also emit signal with progress and totalSteps together (this is better for the status message)
%End
};
2017-05-02 17:56:18 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsgml.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/