CG_Area — Calculates the area of a geometry
double precision CG_Area(
geometry geom )
;
Calculates the area of a geometry.
Performed by the SFCGAL module
NOTE: this function returns a double precision value representing the area. |
可用性:3.5.0
该方法需要SFCGAL后端。
SELECT CG_Area('Polygon ((0 0, 0 5, 5 5, 5 0, 0 0), (1 1, 2 1, 2 2, 1 2, 1 1), (3 3, 4 3, 4 4, 3 4, 3 3))'); cg_area -------- 25 (1 row)