[KC-108] 분석도엽 ai api호출 테스트중
This commit is contained in:
@@ -39,6 +39,9 @@ public class MapSheetMngCoreService {
|
||||
@Value("${file.sync-root-dir}")
|
||||
private String syncRootDir;
|
||||
|
||||
@Value("${inference.geojson-dir}")
|
||||
private String inferenceDir;
|
||||
|
||||
public List<MapSheetMngDto.MngDto> findMapSheetMngList() {
|
||||
return mapSheetMngRepository.findMapSheetMngList();
|
||||
}
|
||||
@@ -215,13 +218,13 @@ public class MapSheetMngCoreService {
|
||||
}
|
||||
|
||||
if (activeEnv.equals("local")) {
|
||||
syncRootDir = System.getProperty("user.home") + "/geojson";
|
||||
inferenceDir = System.getProperty("user.home") + "/geojson";
|
||||
}
|
||||
String filename = String.format("%s_%s.geojson", yyyy, activeEnv);
|
||||
outputPath = Paths.get(syncRootDir, filename).toString();
|
||||
outputPath = Paths.get(inferenceDir, filename).toString();
|
||||
|
||||
// 디렉토리가 없으면 생성
|
||||
Files.createDirectories(Paths.get(syncRootDir));
|
||||
Files.createDirectories(Paths.get(inferenceDir));
|
||||
|
||||
// GeoJSON 파일 생성 (EPSG:5186 - Korea 2000 / Central Belt 2010)
|
||||
GeoJsonFileWriter writer = new GeoJsonFileWriter();
|
||||
|
||||
@@ -97,3 +97,4 @@ file:
|
||||
|
||||
inference:
|
||||
url: http://10.100.0.11:8000/jobs
|
||||
geojson-dir: /kamco-nfs/requests/
|
||||
|
||||
@@ -83,3 +83,4 @@ file:
|
||||
|
||||
inference:
|
||||
url: http://10.100.0.11:8000/jobs
|
||||
geojson-dir: /kamco-nfs/requests/
|
||||
|
||||
@@ -58,4 +58,5 @@ file:
|
||||
|
||||
inference:
|
||||
url: http://10.100.0.11:8000/jobs
|
||||
geojson-dir: /kamco-nfs/requests/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user