| | |
| | | try { |
| | | driver = ogr.GetDriverByName("FileGDB"); |
| | | if (null == driver) { |
| | | log.error("GdbHelper.createGdb.driver(FileGDB) is null."); |
| | | log.error("PipelineService.createGdb.driver(FileGDB) is null."); |
| | | return; |
| | | } |
| | | dataSource = driver.CreateDataSource(filePath, null); |
| | | if (null == dataSource) { |
| | | log.error("GdbHelper.createGdb.dataSource is null. " + filePath); |
| | | log.error("PipelineService.createGdb.dataSource is null. " + filePath); |
| | | return; |
| | | } |
| | | |
| | |
| | | private DownloadEntity getDownloadEntity(UserEntity ue, String file, String pwd) throws Exception { |
| | | DownloadEntity de = new DownloadEntity(); |
| | | de.setName(FileHelper.getFileName(file)); |
| | | // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析 |
| | | // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告 |
| | | de.setType(5); |
| | | de.setSizes(FileHelper.sizeToMb(new File(file).length())); |
| | | de.setDepid(ue.getDepid()); |