| | |
| | | |
| | | <!-- 统计数字线划图面积 --> |
| | | <select id="countDlgAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", area * 1000000 "area" from lf.sys_line_buffer; |
| | | select dir "m1", cast( coalesce(sum(area), 0) as decimal(20, 2) ) "area" |
| | | from lf.sys_line_buffer |
| | | group by code, dir |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计数字正射影像图面积 --> |
| | |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 统计管线长度 --> |
| | | <!-- 按项目统计管线长度 --> |
| | | <select id="countLineLength" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select cast( coalesce(sum( ST_Length( ST_GeographyFromText( ST_AsText(geom) ) ) ) / 1000, 0) as decimal(20, 2) ) |
| | |
| | | <select id="countGeoModelAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select cast( coalesce(sum(b.area), 0) as decimal(20, 2) ) |
| | | from lf.sys_meta b where b.dircode like a.code || '%') "area" |
| | | from lf.sys_meta b where b.type in ('fbx', 'ifc') and b.dircode like a.code || '%') "area" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |