shp 파일생성 폴더 경로 수정

This commit is contained in:
2025-12-29 16:52:53 +09:00
parent 78f988411c
commit 8136b69b10

View File

@@ -34,7 +34,7 @@ public class InferenceResultShpService {
public InferenceResultShpDto.FileCntDto createShpFile() {
// TODO 파일 경로는 정해지면 수정, properties 사용
String baseDir = System.getProperty("user.home") + "/export";
String baseDir = System.getProperty("user.home") + "/detect/result";
// TODO 배치 실행으로 변경 필요
int batchSize = 100;
@@ -62,8 +62,9 @@ public class InferenceResultShpService {
"%d_%d_%d_%d",
first.getStage(), first.getMapId(), first.getInput1(), first.getInput2());
String shpBasePath = baseDir + "/shp/" + baseName;
String geoJsonPath = baseDir + "/geojson/" + baseName + ".geojson";
String baseDir2 = "/" + first.getInput1() + "_" + first.getInput2() + "/" + first.getStage();
String shpBasePath = baseDir + baseDir2 + "/shp/" + baseName;
String geoJsonPath = baseDir + baseDir2 + "/geojson/" + baseName + ".geojson";
try {
// Writer가 "이번 호출에서 write한 개수"를 반환