변화탐지 기획안에 맞게 수정, 학습데이터현황 쿼리 수정
This commit is contained in:
@@ -2,6 +2,8 @@ package com.kamco.cd.kamcoback.changedetection;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto;
|
||||
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto.DetectSearchType;
|
||||
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto.MapScaleType;
|
||||
import com.kamco.cd.kamcoback.changedetection.service.ChangeDetectionService;
|
||||
import com.kamco.cd.kamcoback.config.api.ApiResponseDto;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
@@ -10,6 +12,7 @@ import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.transaction.Transactional;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -46,20 +49,36 @@ public class ChangeDetectionApiController {
|
||||
@Operation(summary = "변화탐지 분류별 건수", description = "변화탐지 분류별 건수")
|
||||
@GetMapping("/class-count")
|
||||
public ApiResponseDto<List<ChangeDetectionDto.CountDto>> getChangeDetectionClassCount(
|
||||
@Parameter(description = "변화탐지 년도(차수) /year-list 의 analUid", example = "53") @RequestParam
|
||||
Long id,
|
||||
@Parameter(description = "탐지된 도엽번호", example = "34602060") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionClassCount(id, mapSheetNum));
|
||||
@Parameter(
|
||||
description = "변화탐지 년도(차수) /year-list 의 uuid",
|
||||
example = "8584e8d4-53b3-4582-bde2-28a81495a626")
|
||||
@RequestParam
|
||||
UUID uuid,
|
||||
@Parameter(description = "도곽/일반(MAPSHEET/ADDRESS) 검색 타입", required = true)
|
||||
@RequestParam(defaultValue = "MAPSHEET")
|
||||
DetectSearchType type,
|
||||
@Parameter(description = "5k/50k 구분(SCALE_5K/SCALE_50K))", required = true)
|
||||
@RequestParam(defaultValue = "SCALE_50K")
|
||||
MapScaleType scale,
|
||||
@Parameter(description = "탐지된 도엽번호", example = "35905") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(
|
||||
changeDetectionService.getChangeDetectionClassCount(type, scale, uuid, mapSheetNum));
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 COG Url", description = "변화탐지 COG Url")
|
||||
@GetMapping("/cog-url")
|
||||
public ApiResponseDto<ChangeDetectionDto.CogUrlDto> getChangeDetectionCogUrl(
|
||||
@Parameter(description = "도곽/일반(MAPSHEET/ADDRESS) 검색 타입", required = true)
|
||||
@RequestParam(defaultValue = "MAPSHEET")
|
||||
DetectSearchType type,
|
||||
@Parameter(description = "5k/50k 구분(SCALE_5K/SCALE_50K))", required = true)
|
||||
@RequestParam(defaultValue = "SCALE_50K")
|
||||
MapScaleType scale,
|
||||
@Parameter(description = "이전 년도", example = "2023") @RequestParam Integer beforeYear,
|
||||
@Parameter(description = "이후 년도", example = "2024") @RequestParam Integer afterYear,
|
||||
@Parameter(description = "도엽번호(5k)", example = "35905086") @RequestParam String mapSheetNum) {
|
||||
ChangeDetectionDto.CogUrlReq req =
|
||||
new ChangeDetectionDto.CogUrlReq(beforeYear, afterYear, mapSheetNum);
|
||||
new ChangeDetectionDto.CogUrlReq(beforeYear, afterYear, mapSheetNum, type, scale);
|
||||
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionCogUrl(req));
|
||||
}
|
||||
|
||||
@@ -72,25 +91,54 @@ public class ChangeDetectionApiController {
|
||||
@Operation(summary = "변화탐지 탐지된 도엽 목록", description = "변화탐지 탐지된 도엽 목록")
|
||||
@GetMapping("/map-list")
|
||||
public ApiResponseDto<List<ChangeDetectionDto.MapSheetList>> getChangeDetectionMapSheetList(
|
||||
@Parameter(description = "도엽목록 그룹id", example = "1") @RequestParam Long analUid) {
|
||||
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionMapSheetList(analUid));
|
||||
@Parameter(description = "도곽/일반(MAPSHEET/ADDRESS) 검색 타입", required = true)
|
||||
@RequestParam(defaultValue = "MAPSHEET")
|
||||
DetectSearchType type,
|
||||
@Parameter(description = "5k/50k 구분(SCALE_5K/SCALE_50K))", required = true)
|
||||
@RequestParam(defaultValue = "SCALE_50K")
|
||||
MapScaleType scale,
|
||||
@Parameter(
|
||||
description = "변화탐지 년도(차수) /year-list 의 uuid",
|
||||
example = "8584e8d4-53b3-4582-bde2-28a81495a626")
|
||||
@RequestParam
|
||||
UUID uuid) {
|
||||
return ApiResponseDto.ok(
|
||||
changeDetectionService.getChangeDetectionMapSheetList(type, scale, uuid));
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 결과 Polygon", description = "변화탐지 결과 Polygon")
|
||||
@GetMapping("/polygon")
|
||||
public ApiResponseDto<ChangeDetectionDto.PolygonFeatureList> getChangeDetectionPolygonList(
|
||||
@Parameter(description = "년도목록 id", example = "53") @RequestParam Long analUid,
|
||||
@Parameter(description = "도엽번호", example = "35905086") @RequestParam String mapSheetNum) {
|
||||
@Parameter(description = "도곽/일반(MAPSHEET/ADDRESS) 검색 타입", required = true)
|
||||
@RequestParam(defaultValue = "MAPSHEET")
|
||||
DetectSearchType type,
|
||||
@Parameter(description = "5k/50k 구분(SCALE_5K/SCALE_50K))", required = true)
|
||||
@RequestParam(defaultValue = "SCALE_50K")
|
||||
MapScaleType scale,
|
||||
@Parameter(
|
||||
description = "변화탐지 년도(차수) /year-list 의 uuid",
|
||||
example = "8584e8d4-53b3-4582-bde2-28a81495a626")
|
||||
UUID uuid,
|
||||
@Parameter(description = "도엽번호", example = "34607") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(
|
||||
changeDetectionService.getChangeDetectionPolygonList(analUid, mapSheetNum));
|
||||
changeDetectionService.getChangeDetectionPolygonList(type, scale, uuid, mapSheetNum));
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 결과 Point", description = "변화탐지 결과 Point")
|
||||
@GetMapping("/point")
|
||||
public ApiResponseDto<ChangeDetectionDto.PointFeatureList> getChangeDetectionPointList(
|
||||
@Parameter(description = "년도목록 id", example = "53") @RequestParam Long analUid,
|
||||
@Parameter(description = "도엽번호", example = "35905086") @RequestParam String mapSheetNum) {
|
||||
@Parameter(description = "도곽/일반(MAPSHEET/ADDRESS) 검색 타입", required = true)
|
||||
@RequestParam(defaultValue = "MAPSHEET")
|
||||
DetectSearchType type,
|
||||
@Parameter(description = "5k/50k 구분(SCALE_5K/SCALE_50K))", required = true)
|
||||
@RequestParam(defaultValue = "SCALE_50K")
|
||||
MapScaleType scale,
|
||||
@Parameter(
|
||||
description = "변화탐지 년도(차수) /year-list 의 uuid",
|
||||
example = "8584e8d4-53b3-4582-bde2-28a81495a626")
|
||||
UUID uuid,
|
||||
@Parameter(description = "도엽번호", example = "34607") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(
|
||||
changeDetectionService.getChangeDetectionPointList(analUid, mapSheetNum));
|
||||
changeDetectionService.getChangeDetectionPointList(type, scale, uuid, mapSheetNum));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user