| | |
| | | } |
| | | |
| | | @GetMapping({"/licenseEncryption/getLicenseSecret"}) |
| | | @PostMapping({"/licenseEncryption/getLicenseSecret"}) |
| | | public void getLicenseSecret(HttpServletResponse res) { |
| | | try { |
| | | String json = JSON.toJSONString(new SdkSecretEntity()); |
| | |
| | | } |
| | | |
| | | @GetMapping({"/licenseEncryption/getLicenseDecrypt"}) |
| | | @PostMapping({"/licenseEncryption/getLicenseDecrypt"}) |
| | | public void getLicenseDecrypt(HttpServletResponse res) { |
| | | try { |
| | | String json = JSON.toJSONString(new SdkDecryptEntity()); |
| | |
| | | if (!StringHelper.isEmpty(gdalPath)) { |
| | | gdal.SetConfigOption("GDAL_DATA", gdalPath + File.separator + "gdal-data"); |
| | | gdal.SetConfigOption("PROJ_LIB", gdalPath + File.separator + "proj7" + File.separator + "share"); |
| | | System.setProperty("PROJ_LIB", gdalPath + File.separator + "proj7" + File.separator + "share"); |
| | | //System.setProperty("PROJ_LIB", gdalPath + File.separator + "proj7" + File.separator + "share") |
| | | gdal.SetConfigOption("GDAL_DRIVER_PATH", gdalPath + File.separator + "gdalplugins"); |
| | | |
| | | String path = System.getenv("PATH"); |
| | |
| | | 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; |
| | | } |
| | | |