Extending QgsRasterResampler in python

المشرف العام

Administrator
طاقم الإدارة
I'm developing a Qgis plugin to use my own raster resampling method rather than what is provided in Qgis (cubic/bilinear).

And so, I've extended the QgsRasterResampler class. However, I'm having difficulty getting resample method to work.

Based on the C++ api documentation for resample method: http://qgis.org/api/classQgsRasterResampler.html#aaffb31ed35ed12353e49458be27b06ba

The 'dstImage' arg is passed by ref and I'm not sure how return it to the calling function in python. As such, when the resampling method is applied, I get a blank image instead.

Any help is appreciated. Thanks in advance.



أكثر...
 
أعلى