| | |
| | | package com.dji.sample.patches.service; |
| | | |
| | | import com.dji.sample.patches.model.entity.LotInfo; |
| | | import com.dji.sample.territory.model.entity.TbDkjbxxEntity; |
| | | import com.dji.sample.wayline.model.dto.WaylineFileDTO; |
| | | import org.springframework.core.io.Resource; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.List; |
| | | |
| | | public interface ShpToDataSourceService { |
| | | List<LotInfo> insertGeo(MultipartFile file) throws IOException; |
| | | |
| | | /** |
| | | * 上传图斑zip文件,解析内容入库,返回生成的航线 |
| | | * @param file 图斑文件 |
| | | * @param workspaceId 工作空间 |
| | | * @param waylineName 航线名 |
| | | * @param airportLat 机场纬度 |
| | | * @param airportLon 机场经度 |
| | | * @return 图斑生成的航线 |
| | | * @throws Exception 处理过程中可能出现的任何异常 |
| | | */ |
| | | MultipartFile insertGeo(MultipartFile file , String workspaceId,String waylineName, double airportLat, double airportLon) throws Exception; |
| | | |
| | | /** |
| | | * 将List<TbDkjbxxEntity>类型的数据批量插入到数据库中。 |
| | | * @param list 需要保存到数据库的TbDkjbxxEntity实体列表。 |
| | | */ |
| | | void savaInMysql(List<TbDkjbxxEntity> list, String workspaceId); |
| | | } |