Re: [QGIS-Developer] ProcessingAlgorithm: get filename of the INPUT param

2019-06-19 Thread Nyall Dawson
On Wed, 19 Jun 2019 at 22:20, Richard Duivenvoorde wrote: > > Hi, > > got a question from somebody who needed to find the filename of an input > param in a ProcessingAlgorithm > (because he is going to read that file again or something like that). Short answer -- it's not possible, and if you DO

Re: [QGIS-Developer] ProcessingAlgorithm: get filename of the INPUT param

2019-06-19 Thread info
Hi, l.source() perhaps? Cheers, Benoit On 2019-06-19 14:20, Richard Duivenvoorde wrote: Hi, got a question from somebody who needed to find the filename of an input param in a ProcessingAlgorithm (because he is going to read that file again or something like that). He adds the INPUT via t

Re: [QGIS-Developer] ProcessingAlgorithm: get filename of the INPUT param

2019-06-19 Thread Richard Duivenvoorde
Nope, SOURCE = which (I think) does not bring you any further: https://qgis.org/api/classQgsProcessingFeatureSource.html unless you 'materialize' it to a layer: https://qgis.org/api/classQgsFeatureSource.html which is what I actually do below Regards, Richard On 19/06/2019 15.26, info w

[QGIS-Developer] ProcessingAlgorithm: get filename of the INPUT param

2019-06-19 Thread Richard Duivenvoorde
Hi, got a question from somebody who needed to find the filename of an input param in a ProcessingAlgorithm (because he is going to read that file again or something like that). He adds the INPUT via the initAlgorithm function: self.addParameter( QgsProcessingParameterFeature