Skip to content

Commit 44630b4

Browse files
committedMay 25, 2018
Add QgsDataProvider::ProviderOptions struct to constructors
for data providers Allows a way to pass generic settings to providers, e.g. passing a datum transform context for use in provider's constructors.
1 parent 1098b39 commit 44630b4

File tree

76 files changed

+373
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+373
-201
lines changed
 

‎python/core/auto_generated/mesh/qgsmeshdataprovider.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Responsible for reading native mesh data
266266
#include "qgsmeshdataprovider.h"
267267
%End
268268
public:
269-
QgsMeshDataProvider( const QString &uri = QString() );
269+
QgsMeshDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options );
270270
%Docstring
271271
Ctor
272272
%End

‎python/core/auto_generated/mesh/qgsmeshlayer.sip.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ is the MDAL connection string. QGIS must be built with MDAL support to allow thi
7777
%End
7878
public:
7979

80-
explicit QgsMeshLayer( const QString &path = QString(), const QString &baseName = QString(), const QString &providerLib = "mesh_memory" );
80+
struct LayerOptions
81+
{
82+
83+
};
84+
85+
explicit QgsMeshLayer( const QString &path = QString(), const QString &baseName = QString(), const QString &providerLib = "mesh_memory",
86+
const QgsMeshLayer::LayerOptions &options = QgsMeshLayer::LayerOptions() );
8187
%Docstring
8288
Constructor - creates a mesh layer
8389

0 commit comments

Comments
 (0)
Please sign in to comment.