AREA()

Documentation

VoltDB Home » Documentation » Using VoltDB

AREA()

AREA() — Returns the area of a polygon in square meters.

Synopsis

AREA( polygon )

Description

The AREA() function returns the area of a GEOGRAPHY value in square meters. The area is the total area of the outer ring minus the area of any inner rings within the polygon. The area is returned as a FLOAT value.

Example

The following example calculates the sum of the areas of multiple polygons representing fields on a farm.

SELECT farmer, SUM(AREA(field)) FROM farm
    WHERE farmer = 'Old MacDonald' GROUP BY farmer;