[KC-108] 분석도엽 ai api호출 테스트

This commit is contained in:
2026-01-12 14:32:54 +09:00
parent 3d612f75d7
commit 1d03ecce85
3 changed files with 25 additions and 7 deletions

View File

@@ -201,20 +201,22 @@ public class MapSheetMngCoreService {
}
}
public void getSceneInference(String yyyy, List<String> scenes) {
public String getSceneInference(String yyyy, List<String> scenes) {
String outputPath = "";
try {
List<ImageFeature> sceneInference = mapSheetMngRepository.getSceneInference(yyyy, scenes);
if (sceneInference == null || sceneInference.isEmpty()) {
log.warn("No scene data found for year: {}", yyyy);
return;
return outputPath;
}
if (activeEnv.equals("local")) {
syncRootDir = System.getProperty("user.home") + "/geojson";
}
String filename = String.format("%s_%s.geojson", yyyy, activeEnv);
String outputPath = Paths.get(syncRootDir, filename).toString();
outputPath = Paths.get(syncRootDir, filename).toString();
// 디렉토리가 없으면 생성
Files.createDirectories(Paths.get(syncRootDir));
@@ -230,5 +232,7 @@ public class MapSheetMngCoreService {
log.error("Failed to create GeoJSON file for year: {}", yyyy, e);
throw new RuntimeException("GeoJSON 파일 생성 실패: " + e.getMessage(), e);
}
return outputPath;
}
}