[QGIS-Developer] R: refactor fields doesn't accept expressions

2017-09-22 Thread Niccolò Marchi
Hi Andreas,
unfortunately I never used it in this way (with formulae) before: all the 
previous times I was simply adding empty fields or deleting useless ones.

A further minor issue related to the alg: when selecting the field type, 
“double” and “data” are repeated twice.

An improvement could be also adding the NULL value by default when a field is 
created. Does it make sense?

Should these notes be added to your issue or separated into other tickets?

All the best,

Niccolò


Da: Andreas Neumann
Inviato: giovedì 21 settembre 2017 00:34
A: Niccolò Marchi
Cc: qgis-developer@lists.osgeo.org
Oggetto: Re: [QGIS-Developer] refactor fields doesn't accept expressions


Hi Niccolo,

I ran into the exact same problem yesterday. I opened an issue:

https://issues.qgis.org/issues/17170

Are you sure that this worked in earlier QGIS versions? It would help to know 
that.

Andreas

On 2017-09-21 00:58, Niccolò Marchi wrote:
Hi all,
I'm using 'refactor fields' in the modeler.

Once I've loaded the fields from a shp and then added some new ones, I'm not 
able to add a formula (e.g. 'to_int(substr("MM_GG", 1,2))' ) to the latter ones 
because it's recognised as wrong in the Expression dialog. Furthermore, the 
Expression dialog doesn't recognise any field in the label 'Fields and values' 
and simply shows 'NULL'.
BTW, if I write the formula directly in the box without using the expression 
dialog and then run the model, it works smoothly.
Are those intended behaviours?

i just updated from 2.18.11 to .13 .

all the best,

Niccolò

___
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 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

Re: [QGIS-Developer] R: refactor fields doesn't accept expressions

2017-09-21 Thread Andreas Neumann

Hi Niccolo,

Perhaps you can open separate issues.

Thanks,

Andreas


On 22.09.2017 02:15, Niccolò Marchi wrote:


Hi Andreas,

unfortunately I never used it in this way (with formulae) before: all 
the previous times I was simply adding empty fields or deleting 
useless ones.


A further minor issue related to the alg: when selecting the field 
type, “double” and “data” are repeated twice.


An improvement could be also adding the NULL value by default when a 
field is created. Does it make sense?


Should these notes be added to your issue or separated into other tickets?

All the best,

Niccolò

*Da: *Andreas Neumann 
*Inviato: *giovedì 21 settembre 2017 00:34
*A: *Niccolò Marchi 
*Cc: *qgis-developer@lists.osgeo.org 


*Oggetto: *Re: [QGIS-Developer] refactor fields doesn't accept expressions

Hi Niccolo,

I ran into the exact same problem yesterday. I opened an issue:

https://issues.qgis.org/issues/17170

Are you sure that this worked in earlier QGIS versions? It would help 
to know that.


Andreas

On 2017-09-21 00:58, Niccolò Marchi wrote:

Hi all,

I'm using 'refactor fields' in the modeler.

Once I've loaded the fields from a shp and then added some new
ones, I'm not able to add a formula (e.g. 'to_int(substr("MM_GG",
1,2))' ) to the latter ones because it's recognised as wrong in
the Expression dialog. Furthermore, the Expression dialog doesn't
recognise any field in the label 'Fields and values' and simply
shows 'NULL'.

BTW, if I write the formula directly in the box without using the
expression dialog and then run the model, it works smoothly.

Are those intended behaviours?

i just updated from 2.18.11 to .13 .

all the best,

Niccolò

___
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 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