Re: [Qgis-developer] Rendering active map symbol as QPixmap

2015-05-07 Thread Andrew McClure
Awesome, Thanks Nathan! On 8/05/2015, at 10:34 am, Nathan Woodrow wrote: > Hey Andrew, > > This is how I did it with Roam to get all the legend items for the layer: > > items = layer.rendererV2().legendSymbologyItems(ICON_SIZE) > > That will give you a list of:Text - Icon pairs > > if you a

Re: [Qgis-developer] Processing and ftools (Proposal for hackfest)

2015-05-07 Thread Paolo Cavallini
MOre cosmetics: the command would better be displayed in a text box, perhaps collapsed, within the dialog, rather than over it. Moreover, the help is missing (better use the upstream, as we do for grass), and this should be fixed before removing GDALTools. Overall, we are pretty close, nice to get

Re: [Qgis-developer] Rendering active map symbol as QPixmap

2015-05-07 Thread Nathan Woodrow
Hey Andrew, This is how I did it with Roam to get all the legend items for the layer: items = layer.rendererV2().legendSymbologyItems(ICON_SIZE) That will give you a list of:Text - Icon pairs if you are using the rule base renderer you get can the symbol for the rule and paint that into a pixma

[Qgis-developer] Rendering active map symbol as QPixmap

2015-05-07 Thread Andrew McClure
Any takers for this one? I'd like to render the active symbol for a layer as a QPixmap in a dialog. I have got this far: s = layer().rendererV2() key = s.rootRule().findRuleByKey(s.rootRule().ruleKey()) This tells me the active rule key to be rendered but how to get the image dat

Re: [Qgis-developer] shp cannot be styled

2015-05-07 Thread Paolo Cavallini
Il 07/05/2015 19:03, Raymond Nijssen ha scritto: > Hi Paolo, > > Exact same problem here (QGIS testing on linux) and also solved after a > "save as shapefile". Thanks for confirmation, ticket open. All the best! -- Paolo Cavallini - www.faunalia.eu QGIS & PostGIS courses: http://www.faunalia.eu

Re: [Qgis-developer] Processing and ftools (Proposal for hackfest)

2015-05-07 Thread Paolo Cavallini
Il 07/05/2015 13:24, Victor Olaya ha scritto: >>> >>> Right. What I miss is the echo of the gdal command line. Throwing it >>> away would be a pity IMHO. >>> All the best. > > Done. All GDAL and OGR algorithms have now a custom parameters dialog > which shows the console call in a text box as you

Re: [Qgis-developer] shp cannot be styled

2015-05-07 Thread Raymond Nijssen
Hi Paolo, Exact same problem here (QGIS testing on linux) and also solved after a "save as shapefile". Regards, Raymond On 07-05-15 18:52, Paolo Cavallini wrote: Hi all. This file: http://www.faunalia.eu/~paolo/qgis/result.zip resulting from processing.runalg("saga:gridstatisticsforpolygons"

Re: [Qgis-developer] shp cannot be styled

2015-05-07 Thread Paolo Cavallini
Il 07/05/2015 19:02, Alexander Bruy ha scritto: > Hi Paolo, > > confirmed with master (f9f333b) Ticket opened: https://hub.qgis.org/issues/12713 Thanks. -- Paolo Cavallini - www.faunalia.eu QGIS & PostGIS courses: http://www.faunalia.eu/training.html

Re: [Qgis-developer] shp cannot be styled

2015-05-07 Thread Alexander Bruy
Hi Paolo, confirmed with master (f9f333b) 2015-05-07 19:52 GMT+03:00 Paolo Cavallini : > Hi all. > This file: > http://www.faunalia.eu/~paolo/qgis/result.zip > resulting from > processing.runalg("saga:gridstatisticsforpolygons","/tmp/RESULT.tif","/path/municipalities.shp",False,False,True,False,T

[Qgis-developer] shp cannot be styled

2015-05-07 Thread Paolo Cavallini
Hi all. This file: http://www.faunalia.eu/~paolo/qgis/result.zip resulting from processing.runalg("saga:gridstatisticsforpolygons","/tmp/RESULT.tif","/path/municipalities.shp",False,False,True,False,True,False,False,False,0,None) seems impossible to thematize on the basis of the ``Calculated`` colu

Re: [Qgis-developer] Problem with the MySQL/GDAL implementation in QGIS

2015-05-07 Thread Even Rouault
A few precisions: > > My current conclusions are: > 1) the problem is likely in the implementation of MySQL/GDAL driver > since QGIS 2.0 This should rather read : "The problem is likely the implementation of OGR datasource management in QGIS since QGIS " > 2) The last version that worked f

[Qgis-developer] Problem with the MySQL/GDAL implementation in QGIS

2015-05-07 Thread Pavol Hnila
Hi, I have a suspicion that the MySQL driver in QGIS is not working properly when the MySQL database contains more than one table. I made tests with pure command-line GDAL and this problem does not occur there. GDAL queries all the tables, but only once, at the opening of the dataset. QGIS however

Re: [Qgis-developer] Processing and ftools (Proposal for hackfest)

2015-05-07 Thread Paolo Cavallini
Il 07/05/2015 13:24, Victor Olaya ha scritto: >>> >>> Right. What I miss is the echo of the gdal command line. Throwing it >>> away would be a pity IMHO. >>> All the best. > > Done. All GDAL and OGR algorithms have now a custom parameters dialog > which shows the console call in a text box as you

Re: [Qgis-developer] C++11 in QGIS

2015-05-07 Thread Hugo Mercier
Hi Jürgen, On 07/05/2015 10:37, Jürgen E. Fischer wrote: > Hi Hugo, > > On Thu, 07. May 2015 at 10:17:55 +0200, Hugo Mercier wrote: >> Lots of methods in QGIS are now decorated with the C++11 "override" >> keyword. Which is good. >> But it is only enabled for gcc and Clang compilers (not under MS

Re: [Qgis-developer] Processing and ftools (Proposal for hackfest)

2015-05-07 Thread Victor Olaya
>> >> Right. What I miss is the echo of the gdal command line. Throwing it >> away would be a pity IMHO. >> All the best. Done. All GDAL and OGR algorithms have now a custom parameters dialog which shows the console call in a text box as you modify parameter values Please take a look at it (it is

[Qgis-developer] 2 additional options in the Spatial Query plugin need to be explained

2015-05-07 Thread Larissa Junek
Hello, I am currently working on the QGIS user manual 2.8 and deal with two options in the Spatial Query plugin we didn't explain so far: - invalid source (source with geometry errors?) - invalid reference While 'Result feature IDs' when having run the plugin is easy to understand we didn't manag

Re: [Qgis-developer] Processing and ftools (Proposal for hackfest)

2015-05-07 Thread Giovanni Manghi
Hi, > Also, many ftools algorithms are terribly slow (e.g. dissolve), particularly > when compared to the equivalent tools based on ogr2ogr, that Giovanni Manghi > added to Processing a few months ago. It may worth considering the > possibility of deleting some ftools algorithm in favor of the og

Re: [Qgis-developer] C++11 in QGIS

2015-05-07 Thread Jürgen E . Fischer
Hi Hugo, On Thu, 07. May 2015 at 10:17:55 +0200, Hugo Mercier wrote: > Lots of methods in QGIS are now decorated with the C++11 "override" > keyword. Which is good. > But it is only enabled for gcc and Clang compilers (not under MSVC for > instance). > So ... what features of C++11 is allowed in

[Qgis-developer] C++11 in QGIS

2015-05-07 Thread Hugo Mercier
Hi all, Lots of methods in QGIS are now decorated with the C++11 "override" keyword. Which is good. But it is only enabled for gcc and Clang compilers (not under MSVC for instance). So ... what features of C++11 is allowed in QGIS source code ? Support in GCC/CLang is excellent and the version of