Skip to content

Commit fd0a46a

Browse files
committed
Python binding for raster renderer and resampler classes
1 parent 746fe64 commit fd0a46a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

python/core/core.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
%Include qgsrasterdataprovider.sip
6363
%Include qgsrasterlayer.sip
6464
%Include qgsrasterpyramid.sip
65+
%Include qgsrasterrenderer.sip
66+
%Include qgsrasterresampler.sip
6567
%Include qgsrastershader.sip
6668
%Include qgsrastershaderfunction.sip
6769
%Include qgsrastertransparency.sip

python/core/qgsrasterlayer.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ public:
222222
/** \brief Mutator for mUserDefinedRGBMinimumMaximum */
223223
void setUserDefinedRGBMinimumMaximum( bool theBool );
224224

225+
/**Set raster renderer. Takes ownership of the renderer object*/
226+
void setRenderer( QgsRasterRenderer* renderer );
227+
QgsRasterRenderer* renderer();
228+
225229
/** \brief Accessor to find out how many standard deviations are being plotted */
226230
double standardDeviations() const;
227231

0 commit comments

Comments
 (0)