| | |
| | | package com.lf.server.service.show; |
| | | |
| | | import com.lf.server.entity.ctrl.MarkJsonEntity; |
| | | import com.lf.server.entity.ctrl.ShpRecordEntity; |
| | | import com.lf.server.entity.data.DownloadEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | | import com.lf.server.entity.show.MarkEntity; |
| | |
| | | |
| | | List<MarkJsonEntity> points = getMarkByType(list, "POINT"); |
| | | if (points.size() > 0) { |
| | | String pointFile = GdalHelper.createShp(points, path, "POINT"); |
| | | String pointFile = ShpHelper.createShp(points, path, "POINT"); |
| | | } |
| | | List<MarkJsonEntity> lines = getMarkByType(list, "LINESTRING"); |
| | | if (lines.size() > 0) { |
| | | String lineFile = GdalHelper.createShp(lines, path, "LINESTRING"); |
| | | String lineFile = ShpHelper.createShp(lines, path, "LINESTRING"); |
| | | } |
| | | List<MarkJsonEntity> polygons = getMarkByType(list, "POLYGON"); |
| | | if (polygons.size() > 0) { |
| | | String polygonFile = GdalHelper.createShp(polygons, path, "POLYGON"); |
| | | String polygonFile = ShpHelper.createShp(polygons, path, "POLYGON"); |
| | | } |
| | | |
| | | return path; |
| | |
| | | return null; |
| | | } |
| | | |
| | | List<MarkJsonEntity> mjeList = GdalHelper.readShpForMarks(fileName); |
| | | List<MarkJsonEntity> mjeList = ShpHelper.readShpForMarks(fileName); |
| | | FileHelper.deleteFiles(list); |
| | | |
| | | return mjeList; |