| | |
| | | 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; |
| | | |
| | | |
| | |
| | | /** |
| | | * 管线排除字段 |
| | | */ |
| | | public final static List<String> PIPE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("serialVersionUID", "tabs", "pwd", "wkt")); |
| | | public final static List<String> PIPE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("serialVersionUID", "tabs", "pwd", "gid", "wkt")); |
| | | } |
| | |
| | | * @return 管线实体类集合 |
| | | */ |
| | | public List<PipelineEntity> selectPipeAnalysis(String tab, Integer gid); |
| | | |
| | | /** |
| | | * 查询分析结果 |
| | | * |
| | | * @param tab 表名 |
| | | * @param gid ID |
| | | * @return 管线实体类集合 |
| | | */ |
| | | public List<PipelineEntity> selectAnalysisResult(String tab, Integer gid); |
| | | } |
| | |
| | | return pipelineMapper.selectPipeAnalysis(tab, gid); |
| | | } |
| | | |
| | | @Override |
| | | public List<PipelineEntity> selectAnalysisResult(String tab, Integer gid) { |
| | | return pipelineMapper.selectAnalysisResult(tab, gid); |
| | | } |
| | | |
| | | /** |
| | | * 创建Zip包 |
| | | * |
| | |
| | | </select> |
| | | |
| | | <select id="selectPipeAnalysis" resultType="com.lf.server.entity.show.PipelineEntity"> |
| | | select 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, 2) ) AS acrossLength |
| | | from ${tab} as a, (select segname, remarks, pipename, geom from bs.m_pipesegment where gid = #{gid} ) as b |
| | | where ST_Intersects(a.geom, b.geom) |
| | | </select> |
| | | |
| | | <select id="selectAnalysisResult" resultType="com.lf.server.entity.show.PipelineEntity"> |
| | | 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, 2) ) AS acrossLength, |
| | | st_astext( st_intersection( ST_MakeValid(a.geom), ST_MakeValid(b.geom) ) ) as wkt |
| | | from ${tab} as a, (select segname, remarks, pipename, geom from bs.m_pipesegment where gid = #{gid} ) as b |