Share

Geometric Functions Reference

Click Functions glyph Geometric in the Expression Elements Menu to view available geometric functions. Use them to do the following:

  • Calculate the length of lines
  • Calculate the perimeters or areas of polygons in a particular feature layer
  • Include m, x, y, or z properties for points in data stores that support them.

The Length2D and Area2D functions perform calculations on fields in the data store. However, the results of these calculations are not saved back to the data store. These functions are available for every data provider except for raster, WFS, and WMS providers.

To use these functions, select the feature to evaluate. Then create the exact expression shown in the examples that follow. Do not replace the argument Geometry with an actual value.

Function Definition Syntax Example
LENGTH2D Calculates the length of lines and perimeters of polygons LENGTH2D (GEOMETRY) LENGTH2D (GEOMETRY)
AREA2D Calculates the area of a polygon AREA2D (GEOMETRY) AREA2D (GEOMETRY)

Was this information helpful?