Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-07-14 Thread Denis Rouzaud
Hi, Thanks for the feedback. I am not sure these can be easily added to core in their current form since they rely on a python library. Cheers, Denis On 10.07.2014 21:01, Anita Graser wrote: Thank you Denis, That worked perfectly! I think it would be good to add these convenience

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-07-10 Thread Anita Graser
Thank you Denis, That worked perfectly! I think it would be good to add these convenience functions to core. Should I open a ticket? Best wishes, Anita On Wed, Jun 25, 2014 at 8:19 AM, Anita Graser anitagra...@gmx.at wrote: Hi Denis, That looks extremely useful. Thanks a lot! I will try it

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-25 Thread Anita Graser
Hi Denis, That looks extremely useful. Thanks a lot! I will try it as soon as possible. Best wishes Anita On Jun 25, 2014 7:23 AM, Denis Rouzaud denis.rouz...@gmail.com wrote: Hi Anita, I don't know if it can be useful, but you'll find the python code here to do interpolation (nearest,

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-24 Thread Anita Graser
Thanks everyone for your answers! On Tue, Jun 24, 2014 at 12:31 PM, Denis Rouzaud denis.rouz...@gmail.com wrote: But, you can have such functionality through processing or via plugins (e.g. Raster Interpolation). True, but I would like to expand my profile from line script with these

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-24 Thread Martin Dobias
On Wed, Jun 25, 2014 at 12:32 AM, Anita Graser anitagra...@gmx.at wrote: On Tue, Jun 24, 2014 at 7:46 AM, Martin Dobias wonder...@gmail.com wrote: There are QgsBilinearRasterResampler and QgsCubicRasterResampler classes for bilinear/cubic resampling used for raster rendering. As of now they

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-24 Thread Denis Rouzaud
Hi Anita, I don't know if it can be useful, but you'll find the python code here to do interpolation (nearest, linear, bicubic) on single points: https://github.com/3nids/rasterinterpolation/blob/master/core/rasterinterpolator.py Cheers, Denis On 24.06.2014 19:32, Anita Graser wrote:

[Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-23 Thread Anita Graser
Hi, Using the raster layer provider's identify() function, I can get the raster value at the specified location. Are there any convenience functions to do bilinear or cubic raster sampling as well? Or does this have to be done manually in the plugin code? Thanks and best wishes, Anita

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-23 Thread G. Allegri
I'm not aware of such functions exposed to QGIS API, and AFAIK there's nothing useful under Qt neither... giovanni 2014-06-23 21:25 GMT+02:00 Anita Graser anitagra...@gmx.at: Hi, Using the raster layer provider's identify() function, I can get the raster value at the specified location. Are

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-23 Thread Denis Rouzaud
Hi Anita, There's no such thing in QGIS. But, you can have such functionality through processing or via plugins (e.g. Raster Interpolation). Anyway, that would be an idea to bring such functionality in core! Cheers, Denis On 23.06.2014 21:25, Anita Graser wrote: Hi, Using the raster

Re: [Qgis-developer] Are there convenience functions to do bilinear or cubic raster sampling?

2014-06-23 Thread Martin Dobias
On Tue, Jun 24, 2014 at 12:31 PM, Denis Rouzaud denis.rouz...@gmail.com wrote: Hi Anita, There's no such thing in QGIS. But, you can have such functionality through processing or via plugins (e.g. Raster Interpolation). Anyway, that would be an idea to bring such functionality in core!