Repository navigation
|
Hello, |
Replies: 1 comment
|
Thanks for following up, and sorry the model part of #2334 went unanswered. Area in a model. Inside a model, the Field Calculator is Whitebox's Field Calculator, not the one in the attribute table, and it uses a different syntax: However,
I checked this in a model on test parcels near Paris: Join fields in a model. You were right, and it was a bug on our side (#2710): field pickers in the model editor were never filled with the input layer's fields, so a join could not be configured there. It's fixed in #2711. A field parameter in a model now lists the columns of the layer connected to that input, and it keeps a text box too, so you can also type a column that an earlier step in the model creates (such as |

Thanks for following up, and sorry the model part of #2334 went unanswered.
Area in a model. Inside a model, the Field Calculator is Whitebox's Field Calculator, not the one in the attribute table, and it uses a different syntax:
$areais a variable, not a function, so it takes no parentheses.$area("hectares")and$area()both produce exactly the error you're seeing. This works:However,
$areais measured in the layer's coordinate units, and GeoLibre layers are in longitude/latitude (EPSG:4326), so it returns square degrees, which isn't useful. The reliable approach is to add one step before the Field Calculator: