[QGIS-Developer] change plugin name

2024-05-28 Thread Stefano Masera via QGIS-Developer
Best regards. Stefano Masera ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] processing runalg in code (not in console) problem

2017-09-11 Thread Stefano Masera
know I can try by using memory layer, but actually I didn't wan't to use this solution. What can I do? Thanks Stefano ***** Stefano Masera Arpa Piemonte Via Pio VII, 9 - 10135 Torino www.arpa.piemonte.it _

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-14 Thread Stefano Masera
elop of the plugin. In any case now it's all ok, even if I didn't use processing algorithm in the code. Thank you very much! Bye Stefano - Messaggio originale - Da: "Ben Hur Pintor" A: "Nyall Dawson" Cc: "Stefano Masera" , "

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-13 Thread Stefano Masera
gain the plugin choosing an input2 vectorlayer, the processing algorithm doesn't see the input2 and my ouput remains output1. It's crazy! It's something like a bad refresh.. If you have another solution Thank you very much. Stefano - Messaggio originale ----- Da: "

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-13 Thread Stefano Masera
Hi Nyali, in a few words I want to do a multipartToSingleParts (for a VectorLayer) via code without using the processing module. Thanks! Stefano * Stefano Masera Arpa Piemonte Via Pio VII, 9 - 10135 Torino www.arpa.piemonte.it - Messaggio originale

[QGIS-Developer] multipartToSingleParts via code

2017-06-12 Thread Stefano Masera
Hi list, I want to use the 'multiPartToSinglePart' script via code for my plugin. I can use it importing processing like this: import processing processing.runalg("qgis:multiparttosingleparts", input, output) but I wan't to use it in a different way, like I already do with the 'dissolve' sc

[Qgis-developer] problem compiling with pyuic4

2016-12-20 Thread Stefano Masera
Hi list, I'm trying to compile an '.ui' file with pyuic4 on Linux. I've got this error message: ValueError: API 'QDate' has already been set to version 1 Thanks Stefano ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: ht

[Qgis-developer] Plugin Openoise doesn't work without fTools

2016-12-13 Thread Stefano Masera
Hi list, my plugin OpeNoise uses fTools (it is imported in the code). In the 2.16 and superior Qgis versions fTools doesn't exist and consequently my plugin Openoise doesn't work. How can I change my code in an easy way? Thanks. Stefano ___ Qgis

Re: [Qgis-developer] how to set square symbol in a point layer with python

2014-10-13 Thread Stefano Masera
Perfect! Thank you very mach! ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] how to set square symbol in a point layer with python

2014-10-13 Thread Stefano Masera
rSymbolLayerV2. Sorry and thank you! C S ----- Messaggio originale - Da: "Salvatore Larosa" A: "Stefano Masera" Cc: "qgis-developer" Inviato: Lunedì, 13 ottobre 2014 11:21:37 Oggetto: Re: [Qgis-developer] how to set square symbol in a point laye

[Qgis-developer] how to set square symbol in a point layer with python

2014-10-13 Thread Stefano Masera
can I do? Thanks, Stefano Stefano Masera Arpa Piemonte - SC06 Dipartimento Provinciale di Torino Via Pio VII, 9 - 10135 Torino Tel.: 011 19680349; Fax: 011 19681441 www.arpa.piemonte.it Riserva

[Qgis-developer] qgis 2.2 to 2.4: problem with map legend and map view refresh!

2014-09-15 Thread Stefano Masera
this works up to qgis 2.2, with qgis 2.4 it doesn't work. It changes the symbology in the map legend but not in the map view! If I refresh the map view, also with a simply zoom, also the map view turns ok! How can I do? Thanks Stefano Stefano Masera Arpa Piemonte - SC06 Diparti

[Qgis-developer] opeNoise – new QGIS plugin to model noise

2014-04-07 Thread Stefano Masera
Hi list! I'm happy to announce the first release of opeNoise (v.0.1), an experimental QGIS plugin that allows to compute the noise level generated by road traffic at fixed receiver points and buildings. I hope it can be useful and you want to test it and give me some feedback. You can dow

Re: [Qgis-developer] How can I get the layer path and directory name from a comboBox?

2014-03-05 Thread Stefano Masera
Thanks! - Messaggio originale - Da: "Gino Pirelli" A: "Stefano Masera" Cc: "qgis-developer" Inviato: Lunedì, 3 marzo 2014 23:08:45 Oggetto: Re: [Qgis-developer] How can I get the layer path and directory name from a comboBox? all info in Qgs

[Qgis-developer] How can I get the layer path and directory name from a comboBox?

2014-03-03 Thread Stefano Masera
Hi list, I have a plugin where I choose a layer from a comboBox. How can I get the layer path and directory name in the code? For example, in order to get the layer name and use it in the code, I use: layer_name = ftools_utils.getVectorLayerByName(self.comboBox.currentText()) Is the

[Qgis-developer] using multiprocessing module with Qgis

2014-02-26 Thread Stefano Masera
Hi list, I try to use the multiprocessing module in a plugin, in order to increase the calculation speed. I use the Poll class and the apply_async method with a function that use a layer: pool. apply_async(function, layer) But I have the following error: RuntimeError: super-class __ini

[Qgis-developer] How can I get the layer path and directory name from a comboBox?

2014-02-04 Thread Stefano Masera
Hi list, I have a plugin where I choose a layer from a comboBox. How can I get the layer path and directory name in the code? For example, in order to get the layer name and use it in the code, I use: layer_name = ftools_utils.getVectorLayerByName(self.comboBox.currentText()) Is the

[Qgis-developer] create plyugin: how to compile .ui and .qrc file in windows?

2013-11-14 Thread Stefano Masera
Hi list, I want to create my first plugin and I need to compile .ui and .qrc files. Unfortunately I'm on windows... How can I do? Thanks. Stefano Masera Riservatezza/Confidentiality In ottemperanza al

Re: [Qgis-developer] Does spatial index improve performance using the class QgsGeometry.intersects()?

2013-11-06 Thread Stefano Masera
s way: layer.dataProvider().createSpatialIndex() It seems to work only in the first case. Thanks Stefano - Messaggio originale - Da: "Daniel" A: "Stefano Masera" Cc: "qgis-developer" Inviato: Lunedì, 4 novembre 2013 15:55:25 Oggetto

[Qgis-developer] Does spatial index improve performance using the class QgsGeometry.intersects()?

2013-11-04 Thread Stefano Masera
insert the path of a check file - To compare time executing you have to comments the two lines (21 and 22) in which I create the spatial index and cancel the file *.qix on the hard disk. Thanks Stef

Re: [Qgis-developer] How can I reset the starting point of a QgsFeatureIterator?

2013-10-23 Thread Stefano Masera
No, it does False! But if I put iterator.rewind() before the first use of the iterator it does True. - Messaggio originale - Da: "G. Allegri" A: "Stefano Masera" Cc: "qgis-developer" Inviato: Mercoledì, 23 ottobre 2013 16:36:12 Oggetto:

[Qgis-developer] How can I reset the starting point of a QgsFeatureIterator?

2013-10-23 Thread Stefano Masera
time I have to use the operator, in a following part of the code: for feature in iterator: # other operations But it doesn't start from the first feature! I try with: iterator.rewind() between the two blocks, but it doesn't work. Thanks. Stef