| | |
| | | select * from lf.sys_flow; |
| | | ----------------------------------------------------------------------------------------------------- 16.元数据表-New |
| | | -- DROP TABLE IF EXISTS lf.sys_meta; DROP TABLE IF EXISTS lf.sys_meta_file; |
| | | create table lf.sys_meta ( |
| | | create table lf.sys_meta_new ( |
| | | id serial primary key, |
| | | eventid varchar(38) default new_guid(), |
| | | metaid integer default 0, |
| | |
| | | geom geometry(MultiPolygon, 4490) |
| | | ); |
| | | -- drop index index_sys_meta_geom; |
| | | create index index_sys_meta_geom on lf.sys_meta using GIST (geom); |
| | | create index index_sys_meta_geom on lf.sys_meta_new using GIST (geom); |
| | | comment on table lf.sys_meta is '元数据表'; |
| | | comment on column lf.sys_meta.id is '主键ID'; |
| | | comment on column lf.sys_meta.eventid is 'GUID'; |
| | |
| | | comment on column lf.sys_meta.geom is '空间位置'; |
| | | -- insert into lf.sys_meta(dirid,depid,geom,sizes,name,path) values (1,1,ST_PolygonFromText('MultiPolygon (((100 0,120 0,120 20,100 20,100 0)))', 4490),0.001,'a.jpg','c:\a.jpg'); |
| | | |
| | | select * from lf.sys_meta; select a.*,st_astext(geom) from lf.sys_meta a; |
| | | select * from lf.sys_meta_new; select a.*,st_astext(geom) from lf.sys_meta a; |
| | | ----------------------------------------------------------------------------------------------------- 元数据测试表 * |
| | | -- drop table if exists md.md_zxcg; |
| | | create table md.md_zxcg( |