| | |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.lf.server.entity.bd.DlgAgnpEntity; |
| | | import com.lf.server.entity.ctrl.ShpRecord; |
| | | import com.lf.server.entity.ctrl.ShpRecordEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | | import com.lf.server.helper.FileHelper; |
| | | import com.lf.server.helper.GdalHelper; |
| | |
| | | return dlgAgnpMapper.selectWktById(id); |
| | | } |
| | | |
| | | public ShpRecord readShpFirstRecord(List<MetaFileEntity> list) { |
| | | public ShpRecordEntity readShpFirstRecord(List<MetaFileEntity> list) { |
| | | String fileName = null; |
| | | for (MetaFileEntity mf : list) { |
| | | if (mf.getName().toLowerCase().indexOf(".shp") > -1) { |
| | |
| | | return null; |
| | | } |
| | | |
| | | ShpRecord sr = GdalHelper.readShpFirstRecord(fileName); |
| | | ShpRecordEntity sr = GdalHelper.readShpFirstRecord(fileName); |
| | | FileHelper.deleteFiles(list); |
| | | |
| | | return sr; |