Perimeter
The Perimeter function calculates the perimeter of a geography, in specified units.
You can use the Perimeter function on Snowflake and BigQuery connections.
Perimeter is one of Sigma's Geography functions.
Syntax
Perimeter(units, polygon)
The function arguments are:
- units
- Required
- The unit of measurement for the perimeter
- Valid values are
"kilometers"
,"meters"
, and"miles"
. - polygon
- Required
- The object for which we calculate the perimeter
- Must be in valid Geography polygon format.
Examples
Perimeter("meters", [Coordinates])
Perimeter("kilometers", [Coordinates])
Perimeter("miles", [Coordinates])
The Perimeter function returns the following values for the Coordinates column values that define a polygon, when specifying area in meters, kilometers, or miles:
Related functions
Syntax
Perimeter(units, input)
The function arguments are:
-
- units
- Required
- The unit of measurement for the perimeter
- Valid values are
"kilometers"
,"meters"
, and"miles"
. - polygon
- Required
- The object for which we calculate the perimeter
- Must be in valid Geography polygon format.
Examples
The Perimeter function returns the following values for the Coordinates column values that define a polygon, when specifying area in meters, kilometers, or miles: