| | |
| | | '$.shootPosition.lat') ) AS latitude |
| | | <if test="resultType!=null and resultType!='' and resultType==4"> |
| | | ,odm.orthoimage_api 'url', |
| | | ST_AsText ( odm.geom ) "geom" |
| | | public.st_astext ( odm.geom ) "geom" |
| | | </if> |
| | | from blade_attach attach |
| | | left join manage_device device on attach.device_sn = device.device_sn::VARCHAR |
| | |
| | | ad.area_size, |
| | | case |
| | | when ad.geom is null then null |
| | | when ST_SRID(ad.geom) is null or ST_SRID(ad.geom) = 0 then ST_AsText(ad.geom) |
| | | else concat(ST_AsText(ST_SwapXY(ad.geom)), ' | ', ST_SRID(ad.geom)) |
| | | when ST_SRID(ad.geom) is null or ST_SRID(ad.geom) = 0 then public.st_astext(ad.geom) |
| | | else concat(public.st_astext(ST_SwapXY(ad.geom)), ' | ', ST_SRID(ad.geom)) |
| | | end as geom, |
| | | ad.area_type, |
| | | ad.trigger_condition, |
| | |
| | | device_ids, |
| | | case |
| | | when geom is null then null |
| | | when ST_SRID(geom) is null or ST_SRID(geom) = 0 then ST_AsText(geom) |
| | | else concat(ST_AsText(ST_SwapXY(geom)), ' | ', ST_SRID(geom)) |
| | | when ST_SRID(geom) is null or ST_SRID(geom) = 0 then public.st_astext(geom) |
| | | else concat(public.st_astext(ST_SwapXY(geom)), ' | ', ST_SRID(geom)) |
| | | end as geom, |
| | | area_code, |
| | | create_user, |
| | |
| | | device_ids, |
| | | case |
| | | when geom is null then null |
| | | when ST_SRID(geom) is null or ST_SRID(geom) = 0 then ST_AsText(geom) |
| | | else concat(ST_AsText(ST_SwapXY(geom)), ' | ', ST_SRID(geom)) |
| | | when ST_SRID(geom) is null or ST_SRID(geom) = 0 then public.st_astext(geom) |
| | | else concat(public.st_astext(ST_SwapXY(geom)), ' | ', ST_SRID(geom)) |
| | | end as geom, |
| | | area_code, |
| | | create_user, |
| | |
| | | defense_scene_ids, |
| | | area_divide_ids, |
| | | device_ids, |
| | | concat(ST_AsText(geom), ' | ', ST_SRID(geom)) as geom, |
| | | concat(public.st_astext(geom), ' | ', ST_SRID(geom)) as geom, |
| | | area_code, |
| | | create_user, |
| | | create_dept, |
| | |
| | | execute_start_time, |
| | | execute_end_time, |
| | | service_party, |
| | | ST_AsText(geom) geom, |
| | | public.st_astext(geom) geom, |
| | | remark, |
| | | reject_reason, |
| | | area_code, |
| | |
| | | execute_end_time, |
| | | service_party, |
| | | remark, |
| | | ST_AsText(geom) geom, |
| | | public.st_astext(geom) geom, |
| | | reject_reason, |
| | | area_code, |
| | | create_user, |
| | |
| | | wo.execute_start_time, |
| | | wo.execute_end_time, |
| | | wo.service_party, |
| | | ST_AsText(wo.geom) geom, |
| | | public.st_astext(wo.geom) geom, |
| | | wo.remark, |
| | | wo.area_code, |
| | | wo.create_user, |
| | |
| | | oti.vox_grid_tiles_path, |
| | | oti.device_sn, |
| | | wj.dkbh, |
| | | COALESCE( ST_AsText ( oti.geom ), COALESCE( tli.sdfw, tli.dkfw )) AS geom |
| | | COALESCE( public.st_astext ( oti.geom ), COALESCE( tli.sdfw, tli.dkfw )) AS geom |
| | | FROM odm_task_info oti |
| | | left join wayline_job wj on wj.job_id::VARCHAR = oti.wayline_job_id::VARCHAR |
| | | left join tb_lot_info tli on tli.dkbh::VARCHAR = wj.dkbh::VARCHAR |
| | |
| | | oti.vox_grid_tiles_path, |
| | | oti.device_sn, |
| | | tli.dkbh, |
| | | COALESCE( ST_AsText ( oti.geom ), COALESCE( tli.sdfw, tli.dkfw )) AS geom |
| | | COALESCE( public.st_astext ( oti.geom ), COALESCE( tli.sdfw, tli.dkfw )) AS geom |
| | | FROM |
| | | odm_task_info oti |
| | | LEFT JOIN wayline_job wj ON wj.job_id = oti.wayline_job_id::VARCHAR AND wj.is_deleted = 0 |