| | |
| | | private PatchesConfigPojo patchesConfigPojo; |
| | | |
| | | @Transactional |
| | | public MultipartFile insertGeo(MultipartFile file, String workspaceId, String waylineName, double airportLat, double airportLon) throws Exception { |
| | | public MultipartFile insertGeo(MultipartFile file, String workspaceId, String waylineName, double airportLat, double airportLon,String creator) throws Exception { |
| | | List<LotInfo> list = new ArrayList<>(); |
| | | File file1 = MultipartFileTOFileUtil.multipartFile2File(file, patchesConfigPojo.getUnzip()); |
| | | List<ShpDTO> shpData = ShapeFileUtil.shpToGeoJson(file1); |
| | |
| | | String uuid = UUID.randomUUID().toString(); |
| | | String bsm = uuid.replaceAll("-", ""); |
| | | lotInfo.setBsm(bsm); |
| | | lotInfo.setUserName(creator); |
| | | lotInfo.setWorkspaceId(workspaceId); |
| | | lotInfo.setDkfw(poylonCGCStoWGS(convertToWKT(shpDatum.getDKFW()))); |
| | | lotInfo.setDkbh(shpDatum.getDKBH()); |
| | |
| | | LotInfo lotInfo = new LotInfo(); |
| | | lotInfo.setWorkspaceId(workspaceId); |
| | | lotInfo.setTaskId(id); |
| | | lotInfo.setType(2); |
| | | lotInfo.setTaskName(name); |
| | | lotInfo = dbConvertToEntity(list.get(i), workspaceId, id, name); |
| | | shpToDataSourceMapper.insert(lotInfo); |