| | |
| | | import org.gdal.gdal.WarpOptions; |
| | | import org.gdal.gdal.gdal; |
| | | import org.gdal.gdalconst.gdalconst; |
| | | import org.gdal.osr.SpatialReference; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.client.RestTemplate; |
| | |
| | | List<GeLayer> layers = getLayers(token, db); |
| | | queryData(token, db, layers); |
| | | createShps(basePath, layers); |
| | | createZoneShp(basePath, data); |
| | | |
| | | |
| | | createZoneShp(basePath, data, db.getSpatialReference()); |
| | | if (data.getPid() > 0) { |
| | | createFloodShp(basePath, data); |
| | | createFloodShp(basePath, data, db.getSpatialReference()); |
| | | } |
| | | } |
| | | |
| | |
| | | return arr; |
| | | } |
| | | |
| | | private void createZoneShp(String basePath, DataPo data) { |
| | | // |
| | | private void createZoneShp(String basePath, DataPo data, SpatialReference sr) { |
| | | String filePath = basePath + File.separator + ""; |
| | | ShpHelper.createShp(filePath, sr, data.getMinx(), data.getMiny(), data.getMaxx(), data.getMaxy()); |
| | | } |
| | | |
| | | private void createFloodShp(String basePath, DataPo data) { |
| | | private void createFloodShp(String basePath, DataPo data, SpatialReference sr) { |
| | | // |
| | | } |
| | | |