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 lui...@gmail.com A: Stefano Masera stefano.mas...@arpa.piemonte.it Cc: qgis-developer qgis-developer@lists.osgeo.org Inviato: Lunedì, 3 marzo 2014 23:08:45 Oggetto: Re: [Qgis-developer] How can I get the layer path and directory name

[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

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

2014-03-03 Thread Gino Pirelli
all info in QgsMapLayer: http://qgis.org/api/classQgsMapLayer.html in your case: layer.source() On 3 March 2014 16:43, Stefano Masera stefano.mas...@arpa.piemonte.itwrote: 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

[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