Javascript math parser/eval on geojson

I have (in memory) a set of geojson files and would like to execute user defined math function on the properties of the features inside these geojson objects.

E.g. :
AVG([temperature]) * 100

these parameters ([height],etc) are the properties of the features.

I looked at mathjs, but as far as I can see it cannot use existing objects.

Any suggestions?


Source: syntax

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.