| | |
| | | comment on column lf.sys_meta.update_time is '更新时间'; |
| | | comment on column lf.sys_meta.geo is '空间'; |
| | | |
| | | --insert into lf.sys_meta(dirid,depid,name,geo) values (1,1,'Test',ST_PolygonFromText('POLYGON ((100 0,120 0,120 20,100 20,100 0))',4490)); |
| | | --insert into lf.sys_meta(dirid,depid,name,geo) values (1,1,'Test',ST_PolygonFromText('POLYGON ((100 0,120 0,120 20,100 20,100 0))',4490)); |
| | | |
| | | select id,dirid,depid,name,descr,guid,create_user,create_time,update_user,update_time,st_astext(geo) from lf.sys_meta; |
| | | select * from lf.sys_meta; |
| | |
| | | create table lf.sys_style( |
| | | id serial primary key, |
| | | name varchar(50), |
| | | guid varchar(40) default new_guid(), |
| | | fileid integer, |
| | | viewid integer, |
| | | type varchar(20), |
| | | dirid integer default 1, |
| | | depid integer default 1, |
| | | ver varchar(20) default 'v1.0', |
| | | status smallint default 1, |
| | | precision varchar(50), |
| | | descr varchar(256), |
| | | file_guid varchar(40) default new_guid(), |
| | | view_guid varchar(40) default new_guid(), |
| | | create_user integer default 1, |
| | | create_time timestamp(6) without time zone default now(), |
| | | update_user integer, |
| | |
| | | bak varchar(1024) |
| | | ); |
| | | |
| | | comment on table lf.sys_style is '附件表'; |
| | | comment on table lf.sys_style is '样式表'; |
| | | comment on column lf.sys_style.id is '主键ID'; |
| | | comment on column lf.sys_style.name is '名称'; |
| | | comment on column lf.sys_style.guid is 'GUID'; |
| | | comment on column lf.sys_style.fileid is '样式文件ID'; |
| | | comment on column lf.sys_style.viewid is '预览文件ID'; |
| | | comment on column lf.sys_style.type is '类型'; |
| | | comment on column lf.sys_style.dirid is '目录ID'; |
| | | comment on column lf.sys_style.depid is '单位ID'; |
| | | comment on column lf.sys_style.ver is '版本'; |
| | | comment on column lf.sys_style.status is '状态:0-停用,1-启用'; |
| | | comment on column lf.sys_style.precision is '精度,如:1:1000'; |
| | | comment on column lf.sys_style.descr is '描述'; |
| | | comment on column lf.sys_style.file_guid is '样式文件GUID'; |
| | | comment on column lf.sys_style.view_guid is '预览文件GUID'; |
| | | comment on column lf.sys_style.create_user is '创建人ID'; |
| | | comment on column lf.sys_style.create_time is '创建时间'; |
| | | comment on column lf.sys_style.update_user is '更新人ID'; |
| | | comment on column lf.sys_style.update_time is '更新时间'; |
| | | comment on column lf.sys_style.bak is '备注'; |
| | | |
| | | --insert into lf.sys_style (name,fileid,viewid) values ('pp.edp',1,1); |
| | | --insert into lf.sys_style (name,type,precision,descr) values ('line.edp','edp','1:1000','管道中心线样式文件'); |
| | | |
| | | select * from lf.sys_style; |
| | | ----------------------------------------------------------------------------------------------------- 22.专题图出图表 |