管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-12-30 d29863abcfc8166d3b0e2f82a6a6eea9e41b9fcc
data/ts.sql
@@ -125,13 +125,13 @@
     WHERE segname = 'DD' ) AS b
WHERE ST_Intersects(a.geom, b.geom)
select a.name as acrossName, b.segname as segName, b.remarks, b.pipename as pipeName,
select row_number() over() as gid, a.name as acrossName, b.segname as segName, b.remarks, b.pipename as pipeName,
  cast( st_length( st_geographyfromtext( st_astext( st_intersection(ST_MakeValid(a.geom), ST_MakeValid(b.geom) ) ) ) ) as decimal(12, 3) ) AS acrossLength,
  st_astext( st_intersection( ST_MakeValid(a.geom), ST_MakeValid(b.geom) ) ) as wkt
from bd.dlg_25w_hyda as a, (select segname, remarks, pipename, geom from bs.m_pipesegment where gid = 24) as b
where ST_Intersects(a.geom, b.geom)
select * from lf.sys_download where type=4;
select * from lf.sys_download where type = 5;
select * from bs.m_pipesegment;