Skip to content

Commit c21cd35

Browse files
elpasonyalldawson
authored andcommitted
Add coordinate transform context to data provider options
First step to pass the context down into the rabbit hole.
1 parent f947ffb commit c21cd35

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

python/core/auto_generated/qgsdataprovider.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Abstract base class for spatial data provider implementations.
5858

5959
struct ProviderOptions
6060
{
61-
int unused; //!< @todo remove me once there are actual members here (breaks SIP <4.19)
61+
QgsCoordinateTransformContext coordinateTransformContext;
6262
};
6363

6464
QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );

src/core/qgsdataprovider.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
//#include "qgsdataitem.h"
2626
#include "qgsdatasourceuri.h"
27+
#include "qgscoordinatetransformcontext.h"
2728
#include "qgslayermetadata.h"
2829
#include "qgserror.h"
2930

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

100101
/**

0 commit comments

Comments
 (0)