管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-04-23 7414302d31aae3f767edefc8c9233226cfa884a4
1
已修改1个文件
15 ■■■■■ 文件已修改
data/db_cx.sql 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/db_cx.sql
@@ -21,6 +21,18 @@
select * from lf.sys_layer order by id desc;
select * from lf.sys_fme_log order by id desc;
select top, bottom, top -(bottom - top) from public.coal2000 order by gid limit 100;
update public.coal2000 set bottom = top -(bottom - top);
@@ -35,6 +47,7 @@
---------------------------------------------------------------------------------------------- 
-- update lf.sys_publish a set geom = ST_GeomFromText('POINT Z (31.231025 113.223529 12)') where id = 1;
select id from lf.sys_layer where cn_name = '三维地质模型' and pid = (select id from lf.sys_layer where cn_name = '勘察' order by pid limit 1);
select id from lf.sys_layer where cn_name = '单体模型' and pid = (select id from lf.sys_layer where cn_name = '测绘' order by pid limit 1);
select id from lf.sys_layer where cn_name = '数字正射影像图' and pid = (select id from lf.sys_layer where cn_name = '测绘' order by pid limit 1);
@@ -100,6 +113,8 @@
);
-- drop index if exists public.idx_coal2000_geom;
create index idx_coal2000_geom on public.coal2000 using gist (geom);
create index idx_coal2000_top on public.coal2000 (top);
create index idx_coal2000_bottom on public.coal2000 (bottom);
comment on table public.coal2000 is '煤层2000表';
comment on column public.coal2000.gid is '主键ID';
comment on column public.coal2000.top is '上顶高度';