[Qgis-developer] raster calculator bug

2013-07-28 Thread Oscar van Vliet
Dear QGIS developers, I am using nightly QGIS_1-9-0_2013-07-27_f854288 and the raster calculator is very broken when using powers. For example: Area_mask@1 ^ -130.3475674 where Area_mask has a value of 0, 1 or 2 Results in 'nodata' everywhere. In part, think it has to do with the negative

[Qgis-developer] QgsFields has not method values()

2013-07-28 Thread Gino Pirelli
Hi what was the result of QgsFields.values()? I've no documentation in master and in 1.8! I've this error in a plugin: File /home/ginetto/.qgis2/python/plugins/rt_postgres_extractor/WizPage1.py, line 187, in fillLayerAttrsCombo self.layerAttrsCombo.addItems(

Re: [Qgis-developer] QgsFields has not method values()

2013-07-28 Thread Alexander Bruy
Hi, plugin you used is not update to QGIS 2 API changes. 2013/7/28 Gino Pirelli lui...@gmail.com: Hi what was the result of QgsFields.values()? I've no documentation in master and in 1.8! I've this error in a plugin: File

Re: [Qgis-developer] QgsFields has not method values()

2013-07-28 Thread Gino Pirelli
I know! i was changing to 2.0 api... Natan shown me that QgsVectorDataProvider.fields() changed from QMap to QList... QMap has values() method, but QList no... but solution is to erase values() call beacuse called funcion need a QFields list. thanks anyway, ginetto On 28 July 2013 13:34,

[Qgis-developer] fieldNameMap() crashes QGIS

2013-07-28 Thread Alexander Bruy
Hi all, seems calling fieldNameMap() on vector data provider crashes QGIS. To reproduce load shapefile and run in Python console next commands: l = iface.mapCanvas().currentLayer() fm = l.dataProvider().fieldNameMap() Anyone confirms? Should I file a ticket? Thanks -- Alexander Bruy

Re: [Qgis-developer] QgsFields has not method values()

2013-07-28 Thread Gino Pirelli
well... a better solution: change: flds = pr.fields() in flds = pr.fieldNameMap() and leave: self.layerAttrsCombo.addItems( self.getFieldNames4Combo(flds.values()) ) ciao ginetto On 28 July 2013 13:41, Gino Pirelli lui...@gmail.com wrote: I know! i was changing to 2.0 api... Natan shown me

Re: [Qgis-developer] fieldNameMap() crashes QGIS

2013-07-28 Thread Gino Pirelli
On 28 July 2013 16:13, Alexander Bruy alexander.b...@gmail.com wrote: l = iface.mapCanvas().currentLayer() fm = l.dataProvider().fieldNameMap() I confirm using python console... not using a plugin that use this function. signal received in Quantum-GIS/python/core/conversions.sip:906 This is

Re: [Qgis-developer] fieldNameMap() crashes QGIS

2013-07-28 Thread Matthias Kuhn
Seems switching from the deprecated sipInstance... calls to sipType... calls (e.g. sipConvertFromType, sipCanConvertFromType etc) solves this issue. However, these are deprecated since sip 4.8. Can we switch all of them or do we need to support older sip versions still? (The INSTALL file

Re: [Qgis-developer] raster calculator bug

2013-07-28 Thread Giovanni Manghi
I also have a strong notion that stuff like this used to work, though I cannot be sure it is a regression. If anyone can confirm this, please consider it as a release blocker. If you have any evidence of a regression or of a serious issue please file a ticket, thanks.