| | |
| | | |
| | | <!-- 根据类型查询元数据(用于计算面积) --> |
| | | <select id="selectMetaByType" resultType="java.util.Map"> |
| | | (select a.id, a.path, 'DOM' name from lf.sys_meta a |
| | | (select a.id, a.path, 'DOM' type from lf.sys_meta a |
| | | inner join lf.sys_dir b on a.dircode = b.code |
| | | where a.area is null and a.type in ('img', 'tif', 'tiff') and b.name = '数字正射影像图') |
| | | where a.area is null and a.type in ('img', 'tif', 'tiff') and b.name = '数字正射影像图' limit 1) |
| | | union all |
| | | (select a.id, a.path, 'DEM' name from lf.sys_meta a |
| | | (select a.id, a.path, 'DEM' type from lf.sys_meta a |
| | | inner join lf.sys_dir b on a.dircode = b.code |
| | | where a.area is null and a.type in ('dem', 'tif', 'tiff') and b.name = '数字高程模型') |
| | | where a.area is null and a.type in ('dem', 'tif', 'tiff') and b.name = '数字高程模型' limit 1) |
| | | union all |
| | | (select id, path, 'OSGB' name from lf.sys_meta where area is null and type = 'osgb') |
| | | (select id, path, 'OSGB' type from lf.sys_meta where area is null and type = 'osgb' limit 1) |
| | | union all |
| | | (select id, path, 'LAS' name from lf.sys_meta where area is null and type = 'las' or type = 'laz') |
| | | (select id, path, 'LAS' type from lf.sys_meta where area is null and type = 'las' or type = 'laz' limit 1) |
| | | union all |
| | | (select id, path, 'IFC' name from lf.sys_meta where area is null and type = 'ifc') |
| | | (select id, path, 'IFC' type from lf.sys_meta where area is null and type = 'ifc' limit 1) |
| | | union all |
| | | (select id, path, 'FBX' name from lf.sys_meta where area is null and type = 'fbx') |
| | | (select id, path, 'FBX' type from lf.sys_meta where area is null and type = 'fbx' limit 1) |
| | | </select> |
| | | </mapper> |