AnsweredAssumed Answered

Use arcade expression to calculate fields

Question asked by glavenuesrifrance-fr-esridist Employee on Oct 26, 2018
Latest reply on Oct 29, 2018 by gengisyann

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

Outcomes