Merge pull request '[KC-108] 분석도엽 ai api호출 테스트중' (#197) from feat/infer_dev_260107 into develop

Reviewed-on: https://kamco.gitea.gs.dabeeo.com/dabeeo/kamco-dabeeo-backoffice/pulls/197
This commit is contained in:
2026-01-12 18:04:37 +09:00
4 changed files with 9 additions and 3 deletions

View File

@@ -39,6 +39,9 @@ public class MapSheetMngCoreService {
@Value("${file.sync-root-dir}") @Value("${file.sync-root-dir}")
private String syncRootDir; private String syncRootDir;
@Value("${inference.geojson-dir}")
private String inferenceDir;
public List<MapSheetMngDto.MngDto> findMapSheetMngList() { public List<MapSheetMngDto.MngDto> findMapSheetMngList() {
return mapSheetMngRepository.findMapSheetMngList(); return mapSheetMngRepository.findMapSheetMngList();
} }
@@ -215,13 +218,13 @@ public class MapSheetMngCoreService {
} }
if (activeEnv.equals("local")) { 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); 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) // GeoJSON 파일 생성 (EPSG:5186 - Korea 2000 / Central Belt 2010)
GeoJsonFileWriter writer = new GeoJsonFileWriter(); GeoJsonFileWriter writer = new GeoJsonFileWriter();

View File

@@ -97,3 +97,4 @@ file:
inference: inference:
url: http://10.100.0.11:8000/jobs url: http://10.100.0.11:8000/jobs
geojson-dir: /kamco-nfs/requests/

View File

@@ -83,3 +83,4 @@ file:
inference: inference:
url: http://10.100.0.11:8000/jobs url: http://10.100.0.11:8000/jobs
geojson-dir: /kamco-nfs/requests/

View File

@@ -58,4 +58,5 @@ file:
inference: inference:
url: http://10.100.0.11:8000/jobs url: http://10.100.0.11:8000/jobs
geojson-dir: /kamco-nfs/requests/