Geometry
Geometry functions allow you to calculate perimeter and area for geometric types such as POLYGON, LINESTRING, MULTIPOLYGON, MULTILINESTRING, RING, and POINT. Use geometries in Geometry type. If the input value isNULL, all functions below will return 0.
perimeterCartesian
Calculates the perimeter of the given Geometry object in the Cartesian (flat) coordinate system. Syntaxgeom— Geometry object. Geometry.
- Number — Perimeter of the object in the coordinate system units. Float64.
Query
Response
areaCartesian
Calculates the area of the given Geometry object in the Cartesian coordinate system. Syntaxgeom— Geometry object. Geometry.
- Number — Area of the object in coordinate system units. Float64.
Query
Response
perimeterSpherical
Calculates the perimeter of a Geometry object on the surface of a sphere. Syntaxgeom— Geometry object. Geometry.
- Number — Perimeter on a sphere of radius 1, in radians (coordinates are longitude and latitude in degrees). Multiply by the radius of the sphere to get a length, for example by 6371 for kilometers on the Earth. Float64.
Query
Response
areaSpherical
Calculates the area of a Geometry object on the surface of a sphere. Syntaxgeom— Geometry. Geometry.
- Number — Area on a sphere of radius 1, in steradians (coordinates are longitude and latitude in degrees). Multiply by the square of the radius of the sphere to get an area. Float64.
Query
Response