create table mytable(
id int4,
name varchar(31),
geom geometry(Geometry, 4326) not null
)
插入一些数据
INSERT INTO beihai_region (region_name, region_wkt, geom)
VALUES (
1234,
'my_region',
ST_GeomFromText('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 4326)
);