Skip to content

Commit

Permalink
Add coordinate transform context to data provider options
Browse files Browse the repository at this point in the history
First step to pass the context down into the rabbit hole.
  • Loading branch information
elpaso authored and nyalldawson committed Apr 17, 2019
1 parent f947ffb commit c21cd35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsdataprovider.sip.in
Expand Up @@ -58,7 +58,7 @@ Abstract base class for spatial data provider implementations.

struct ProviderOptions
{
int unused; //!< @todo remove me once there are actual members here (breaks SIP <4.19)
QgsCoordinateTransformContext coordinateTransformContext;
};

QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsdataprovider.h
Expand Up @@ -24,6 +24,7 @@

//#include "qgsdataitem.h"
#include "qgsdatasourceuri.h"
#include "qgscoordinatetransformcontext.h"
#include "qgslayermetadata.h"
#include "qgserror.h"

Expand Down Expand Up @@ -94,7 +95,7 @@ class CORE_EXPORT QgsDataProvider : public QObject
*/
struct ProviderOptions
{
int unused; //!< @todo remove me once there are actual members here (breaks SIP <4.19)
QgsCoordinateTransformContext coordinateTransformContext;
};

/**
Expand Down

0 comments on commit c21cd35

Please sign in to comment.