| | |
| | | import com.lf.server.controller.all.BaseController; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.bd.DlgAgnpEntity; |
| | | import com.lf.server.entity.ctrl.ShpRecord; |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.entity.ctrl.ShpRecordEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import com.lf.server.service.data.UploaderService; |
| | |
| | | @ApiOperation(value = "上传Shp文件获取第一条记录的WKT") |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadShp") |
| | | public ResponseMsg<ShpRecord> uploadShp(HttpServletRequest req, HttpServletResponse res) { |
| | | public ResponseMsg<ShpRecordEntity> uploadShp(HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (ue == null) { |
| | |
| | | return fail("没有找到已上传的数据或不完整", null); |
| | | } |
| | | |
| | | ShpRecord sr = comprehensiveService.readShpFirstRecord(list); |
| | | ShpRecordEntity sr = comprehensiveService.readShpFirstRecord(list); |
| | | return success(sr); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |