Use arcade expression to calculate fields

880
1
10-26-2018 09:46 AM
GaëtanLAVENU
Esri Contributor

Hi,

I need to calculate some fields using arcade expression. Is there a way to do that with the FeatureLayer.calculate(...) method. I'm looking for something equivalent to this SQL expression using arcade:

my_FeatureLayer.calculate("1=1",{"field": "ratio_entrees_seances", "sqlExpression" : "CAST(FieldA AS FLOAT) / CAST(FieldB AS FLOAT)"})

I didn't find any help in ArcGIS Python API documentation nor in ArcGIS Rest API documentation 😞

Regards,

Gaëtan Lavenu

Esri France

0 Kudos
1 Reply
YannKACENELEN
New Contributor

Décidément je te manque ? ☺

De : Gaëtan LAVENU

Envoyé : vendredi 26 octobre 2018 18:47

À : Kacenelen Yann

Objet : - Use arcade expression to calculate fields

GeoNet <https://community.esri.com/?et=watches.email.thread>

Use arcade expression to calculate fields

created by Gaëtan LAVENU<https://community.esri.com/people/glavenuesrifrance-fr-esridist?et=watches.email.thread> in ArcGIS API for Python - View the full discussion<https://community.esri.com/message/809009-use-arcade-expression-to-calculate-fields?et=watches.email.thread>

0 Kudos