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

Andreas Neumann a.neumann at carto.net
Thu Sep 21 21:30:54 PDT 2017


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 <mailto:a.neumann at carto.net>
> *Inviato: *giovedì 21 settembre 2017 00:34
> *A: *Niccolò Marchi <mailto:sciurusurbanus at hotmail.it>
> *Cc: *qgis-developer at lists.osgeo.org 
> <mailto:qgis-developer at 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 at lists.osgeo.org <mailto:QGIS-Developer at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170922/7338c903/attachment.html>


More information about the QGIS-Developer mailing list