On 16 February 2018 at 17:29, kimaidou wrote:
> Thanks Nyall,
>
> Our posts crossed !
>
> Ok for the shortcut and the getMapLayer method.
>
Here you go:
https://github.com/qgis/QGIS/pull/6359
___
QGIS-Developer mailing list
Thanks for your explanation !
I also think it makes sense to share source layers in some cache in the
future.
2018-02-16 7:36 GMT+01:00 Nyall Dawson :
> On 16 February 2018 at 17:29, kimaidou wrote:
> > Thanks Nyall,
> >
> > Our posts crossed !
> >
>
On 16 February 2018 at 17:29, kimaidou wrote:
> Thanks Nyall,
>
> Our posts crossed !
>
> Ok for the shortcut and the getMapLayer method.
>
> One question : in my alg, if I use QgsProcessingParameterFeatureSource
> instead of QgsProcessingParameterVectorLayer for my input, can
Thanks Nyall,
Our posts crossed !
Ok for the shortcut and the getMapLayer method.
One question : in my alg, if I use QgsProcessingParameterFeatureSource
instead of QgsProcessingParameterVectorLayer for my input, can I still use
mapLayerFromString and the getFeatures, or is there a
Found id !
I have to use mapLayerFromString :
blayer = QgsProcessingUtils.mapLayerFromString(area_result['OUTPUT'],
context)
\o/
2018-02-16 7:11 GMT+01:00 kimaidou :
> Hi Salvatore,
>
> I already tried to use
>
> blayer = area_result['OUTPUT']
> for feat in
On 16 February 2018 at 04:36, kimaidou wrote:
> Hi all,
>
> I have a simple processing python alg which
> * generates a buffer with qgis:buffer
> * use qgis:fieldcalculator to add an buf_area field -> the output vector of
> my alg is this buffer+new field.
>
> I would like to
Hi Salvatore,
I already tried to use
blayer = area_result['OUTPUT']
for feat in blayer.getFeatures():
with no success . If I do so I get
AttributeError: 'str' object has no attribute 'getFeatures'
There must be a way to transforme this string representing the layer as a
processing
Hi Salvatore,
I already tried to use
blayer = area_result['OUTPUT']
for feat in blayer.getFeatures():
with no success . If I do so I get
AttributeError: 'str' object has no attribute 'getFeatures'
There must be a way to transforme this string representing the layer as a
processing
Hi Michaƫl,
On Thu, Feb 15, 2018 at 6:36 PM, kimaidou wrote:
> Hi all,
>
> I have a simple processing python alg which
> * generates a buffer with qgis:buffer
> * use qgis:fieldcalculator to add an buf_area field -> the output vector
> of my alg is this buffer+new field.
>
>
Hi all,
I have a simple processing python alg which
* generates a buffer with qgis:buffer
* use qgis:fieldcalculator to add an buf_area field -> the output vector of
my alg is this buffer+new field.
I would like to parse the features of the output vector in order to gather
some information and
10 matches
Mail list logo