Re: [Qgis-developer] Developer cookbook in SVN

2010-08-10 Thread Benoit EXIGE
Hi Martin, Many thanks for the clarification. I'm learning how to use the QGIS API and find it quite difficult coming from a VB6 background!! So, every bit of help is really appreciated. Would it be possible to over-comment the code put in the cookbook? For example your comments below on h

Re: [Qgis-developer] how to add a new field to an existing layer?

2010-08-10 Thread Ricardo Filipe Soares Garcia da
Oh... nevermind. I just realized after sending the previous e-mail that I had a typo in my code (was calling the ChangeAttributeValues method with a capital C in the beginning). Please excuse the noise, and thanks Martin for your help :) On Wed, Aug 11, 2010 at 12:49 AM, Ricardo Filipe Soares Garc

Re: [Qgis-developer] how to add a new field to an existing layer?

2010-08-10 Thread Ricardo Filipe Soares Garcia da
Hi Martin, list I did as you recommended, but now I'm getting the following error: Traceback (most recent call last): File "/home/ricardo/.qgis/python/plugins/ChannelFromPoints/ChannelFromPointsDialog.py", line 41, in accept self.callbackFunction(pLayer, params) File "/home/ricardo/.qgi

Re: [Qgis-developer] Developer cookbook in SVN

2010-08-10 Thread Martin Dobias
On Mon, Aug 9, 2010 at 7:10 PM, Benoit de Cabissole wrote: > Hi all, > > The cookbook is a very good idea. Thanks to set it up! > > I've got a problem with the recipe in the raster, Single Band Rasters > section. The code shown to do colormap does not fully work: the layer is > told to use a Color

Re: [Qgis-developer] how to add a new field to an existing layer?

2010-08-10 Thread Martin Dobias
Hi Ricardo On Mon, Aug 9, 2010 at 2:50 PM, Ricardo Filipe Soares Garcia da wrote: > Hello list > > How can I add a new field to an existing layer and insert some new > values in it? In the following example, pointLayer refers to an > existing layer, previously created using the memory provider. T

Re: [Qgis-developer] How to load a colour table on a raster, programmatically (in python)?

2010-08-10 Thread Benoit EXIGE
Martin, Thanks for the answers. I will test them tomorrow. As for QgsLegendInterface the problem was that I did not know how to use it correctly! Cheers, Benoit On 10 Aug 2010, at 21:52, Martin Dobias wrote: On Mon, Aug 9, 2010 at 11:01 PM, Benoit de Cabissole > wrote: Colormap is given

Re: [Qgis-developer] How to load a colour table on a raster, programmatically (in python)?

2010-08-10 Thread Martin Dobias
On Mon, Aug 9, 2010 at 11:01 PM, Benoit de Cabissole wrote: > Colormap is given to the raster (and into the coloramp tab in the raster > properties). The colour ramp attribute is also reflected in the symbology > tab: color map combobox set to colormap. So the raster is given the correct > info. S

Re: [Qgis-developer] How to load a colour table on a raster, programmatically (in python)?

2010-08-10 Thread Martin Dobias
On Mon, Aug 9, 2010 at 9:57 PM, Peter Ersts wrote: > ---theLayer.setRasterShaderFunction( myColorRampShader ) is also not > necessary, because you are already working with the actual shader (i.e., > myColorRampShader ). This will also cause a crash/segfault because the > setRasterShaderFunction()

[Qgis-developer] new plug-inpackages for qgis

2010-08-10 Thread Massimo Di Stefano
Testing Qgis i see the plug-in SDA4P fails as also fails ManageR and all related to R beacouse the step : easy_install rpy2 don't works as aspected i replaced it with : apt-get install python-rpy2 it should works, i tried it locally. continue the test on qgis side, i see alot of plug-in are

Re: [Qgis-developer] GPS Plugin Bug on windows

2010-08-10 Thread Tim Sutton
Hi 2010/8/9 Maurício de Paulo : > Hi folks, > I've stumbled upon something that looks like this bug. > http://trac.osgeo.org/qgis/ticket/1170 > The problem seems simples. I'm using QGIS 1.5 and Windows XP with a garmin > gps. > When calling gpsbabel from command line everything runs smoothly. > Wh

Re: [Qgis-developer] Typo in QgsRasterLayer enum

2010-08-10 Thread Tim Sutton
Hi Fixed in r14042. Regards Tim On Tue, Aug 10, 2010 at 11:37 AM, Manuel Massing wrote: > Hi Pete, > >> Last night  I was looking through the QgsRasterLayer code and noticed a >> typo in the DrawingStyle enum that made it in during the major renaming >> efforts  (r9564 & r9566) just before ver

[Qgis-developer] autosave bugs

2010-08-10 Thread Barry Rowlingson
Hi All, I've just had a couple of problems with my Autosave plugin: first I had a report that it was throwing an exception, something I think was down to my poor character handling (ie I too much str() when there's unicode flying around). The other problem is Autosave seems to crash Qgis with a

[Qgis-developer] Re: [Live-demo] GRASS plugin failures on osgeo-live DVD

2010-08-10 Thread Massimo Di Stefano
it gives error tring to load a grass file, the error i had is : http://img412.imageshack.us/f/schermata20100810a16260.png/ have you any clue on what's going wrong ? Il giorno 10/ago/2010, alle ore 11.09, Cameron Shorter ha scritto: > Testers have found an error in the 1.5 version of QGIS ins

Re: [Qgis-developer] Postgis-Provider and compression

2010-08-10 Thread Andreas Neumann
Hi Pirmin, Thank you for your thoughts on the issue. My comments inline. On 08/09/2010 10:47 PM, Pirmin Kalberer wrote: Hi Andreas, Am Montag, 9. August 2010, um 14.29:12 schrieb Andreas Neumann: Hi all, I wonder if the current Postgis-Provider somehow supports or would support compressi

Re: [Qgis-developer] Typo in QgsRasterLayer enum

2010-08-10 Thread Manuel Massing
Hi Pete, > Last night I was looking through the QgsRasterLayer code and noticed a > typo in the DrawingStyle enum that made it in during the major renaming > efforts (r9564 & r9566) just before version 1.0 was released. > > MultiBandSingleGandGray should be MultiBandsingleBandGray > > Question

Re: [Qgis-developer] Typo in QgsRasterLayer enum

2010-08-10 Thread Marco Hugentobler
Hi Peter The probability that we are going to forget about it once v2.0 is out seems quite high to me. Wouldn't it be better to just rename it (even if we break strict interface compatibility?). How do others feel about it? Regards, Marco Am Montag, 9. August 2010, um 21.22:21 schrieb Peter Er