Re: [Qgis-developer] Raster algebra C++

2010-10-23 Thread Marco Hugentobler
Hi Martin Thanks for looking at the patch. Your point about the search string makes sense. I decided to use the search string because of code reusage and the idea of introducing some comparison operators for raster algebra in the future (e.g. ras...@1 10 would return a raster with 1 for

Re: [Qgis-developer] Raster algebra C++

2010-10-20 Thread Ghislain Picard
the same problem arises in the vector calculation dialog. I had to rename the vector fields. Ghislain On 10/14/2010 08:09 PM, Alexander Bruy wrote: And another minor issue. I have raster 2007.tif. When I enter expression 2...@1 + 2...@2 I get Expression invalid message. Seems that raster

Re: [Qgis-developer] Raster algebra C++

2010-10-18 Thread Martin Dobias
Hi Marco On Thu, Oct 14, 2010 at 5:40 PM, Marco Hugentobler marco.hugentob...@sourcepole.ch wrote: Hi devs, A very cool and handy tool is Alexander Bruys raster algebra plugin. It's so usefull in environmental modelling that Tim and I thought it would be good to have it in our analysis

Re: [Qgis-developer] Raster algebra C++

2010-10-16 Thread Alexander Bruy
Hi Our community prepare QGIS binaries with raster algebra patch for OSGeo4W users who want to test this great improvement. Here is a short installation instructions: 1. install qgis-dev with all dependencies from OSGeo4W 2. download archieve with binaries (~8.2 Mb compressed with 7-zip)

[Qgis-developer] Raster algebra C++

2010-10-14 Thread Marco Hugentobler
Hi devs, A very cool and handy tool is Alexander Bruys raster algebra plugin. It's so usefull in environmental modelling that Tim and I thought it would be good to have it in our analysis library (where it can be used by 3rd party applications too and without the dependency of the numpy

Re: [Qgis-developer] Raster algebra C++

2010-10-14 Thread Alexander Bruy
Hi Marco, seems that this is another great addition from your side. I'll try to build QGIS trunk (r14380) with this patch under Windows with MSVS Express 2008 and dependencies from OSGeo4W and get next error: qgssearchtreenode.cpp d:\devel\cpp\qgis\trunk\src\core\qgssearchtreenode.cpp(1304) :

Re: [Qgis-developer] Raster algebra C++

2010-10-14 Thread Alexander Bruy
And another minor issue. I have raster 2007.tif. When I enter expression 2...@1 + 2...@2 I get Expression invalid message. Seems that raster names only with digits and symbols minus (-) don't recognized as valid raster names -- Alexander Bruy ___

Re: [Qgis-developer] Raster algebra C++

2010-10-14 Thread Jürgen E . Fischer
Hi Alexander, On Thu, 14. Oct 2010 at 20:58:01 +0300, Alexander Bruy wrote: I change line 1304 as res[i] = pow(double(value1), double(mat[i])); value1 is already double. So casting mat[i] should be enough. and the I get another errors: qgisapp.obj : error LNK2019: unresolved external