pnu 로 polygon, point 조회 API 수정
This commit is contained in:
@@ -46,13 +46,13 @@ public class ChangeDetectionService {
|
||||
}
|
||||
|
||||
public ChangeDetectionDto.PolygonFeatureList getChangeDetectionPolygonList(
|
||||
DetectSearchType type, MapScaleType scale, UUID uuid, String mapSheetNum) {
|
||||
DetectSearchType type, MapScaleType scale, UUID uuid, String mapSheetNum, String pnu) {
|
||||
switch (type) {
|
||||
case MAPSHEET -> {
|
||||
return changeDetectionCoreService.getChangeDetectionPolygonList(scale, uuid, mapSheetNum);
|
||||
}
|
||||
case ADDRESS -> {
|
||||
return new ChangeDetectionDto.PolygonFeatureList(); // TODO: 일반 주소 검색 로직 확인 후 작업 필요
|
||||
return changeDetectionCoreService.getChangeDetectionPnuPolygonList(uuid, pnu);
|
||||
}
|
||||
default -> throw new IllegalArgumentException("Unsupported type: " + type);
|
||||
}
|
||||
@@ -60,14 +60,14 @@ public class ChangeDetectionService {
|
||||
|
||||
// Geometry 객체 순환 참조 문제로 캐싱 불가
|
||||
public ChangeDetectionDto.PointFeatureList getChangeDetectionPointList(
|
||||
DetectSearchType type, MapScaleType scale, UUID uuid, String mapSheetNum) {
|
||||
DetectSearchType type, MapScaleType scale, UUID uuid, String mapSheetNum, String pnu) {
|
||||
|
||||
switch (type) {
|
||||
case MAPSHEET -> {
|
||||
return changeDetectionCoreService.getChangeDetectionPointList(scale, uuid, mapSheetNum);
|
||||
}
|
||||
case ADDRESS -> {
|
||||
return new ChangeDetectionDto.PointFeatureList(); // TODO: 일반 주소 검색 로직 확인 후 작업 필요
|
||||
return changeDetectionCoreService.getChangeDetectionPnuPointList(uuid, pnu);
|
||||
}
|
||||
default -> throw new IllegalArgumentException("Unsupported type: " + type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user