add area as an alias for st_area

This commit is contained in:
hnwyllmm
2023-06-14 03:49:19 +00:00
committed by ob-robot
parent fd55b7156a
commit d728f64c31
2 changed files with 0 additions and 36 deletions

View File

@ -1,15 +0,0 @@
# ----------------------------------------------------------------------
# Test of GEOMETRY AREA.
# ----------------------------------------------------------------------
drop table if exists gis_polygon;
create table if not exists gis_polygon (
poly Polygon not null srid 4396
);
insert into gis_polygon values (ST_srid(ST_GeomFromText('Polygon((0 0,0 3,3 0,0 0),(1 1,1 2,2 1,1 1))'), 4396));
select area(poly) from gis_polygon;
area(poly)
4
select st_area(poly) from gis_polygon;
st_area(poly)
4
drop table if exists gis_polygon;