변화탐지 포인트 형식 수정, 폴리곤 json으로 리턴
This commit is contained in:
@@ -84,7 +84,7 @@ public class ChangeDetectionApiController {
|
||||
|
||||
@Operation(summary = "변화탐지 결과 Point", description = "변화탐지 결과 Point")
|
||||
@GetMapping("/point")
|
||||
public ApiResponseDto<List<ChangeDetectionDto.PointFeature>> getChangeDetectionPointList(
|
||||
public ApiResponseDto<ChangeDetectionDto.PointFeatureList> getChangeDetectionPointList(
|
||||
@Parameter(description = "년도목록 id", example = "1") @RequestParam Long analUid,
|
||||
@Parameter(description = "도엽번호", example = "34602060") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.kamco.cd.kamcoback.changedetection.dto;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
@@ -87,7 +88,16 @@ public class ChangeDetectionDto {
|
||||
public static class PolygonFeatureList {
|
||||
private String type;
|
||||
private List<PolygonFeature> features; // Point 값
|
||||
private String classCd; // after 분류
|
||||
}
|
||||
|
||||
@Schema(name = "PointFeatureList", description = "Geometry 리턴 객체")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class PointFeatureList {
|
||||
private String type;
|
||||
private List<PointFeature> features; // Point 값
|
||||
}
|
||||
|
||||
@Schema(name = "PolygonFeature", description = "Geometry 리턴 객체")
|
||||
@@ -97,8 +107,26 @@ public class ChangeDetectionDto {
|
||||
@AllArgsConstructor
|
||||
public static class PolygonFeature {
|
||||
private String type;
|
||||
private Geometry geometry; // after 분류
|
||||
private PolygonProperties properties; // Point 값
|
||||
private JsonNode geometry; // after 분류
|
||||
private PolygonProperties properties; //
|
||||
}
|
||||
|
||||
@Schema(name = "PolygonFeature", description = "Geometry 리턴 객체")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class PolygonQueryData {
|
||||
private String type;
|
||||
private String geometry; // geoJson String
|
||||
private Long geoUid;
|
||||
private Double area; // 면적
|
||||
private Integer beforeYear; // 기준년도
|
||||
private Double beforeConfidence; // 기준 신뢰도(확률)
|
||||
private String beforeClass; // 기준 분류
|
||||
private Integer afterYear; // 비교년도
|
||||
private Double afterConfidence; // 비교 신뢰도(확률)
|
||||
private String afterClass;
|
||||
}
|
||||
|
||||
@Schema(name = "PointFeature", description = "Geometry 리턴 객체")
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ChangeDetectionService {
|
||||
return changeDetectionCoreService.getChangeDetectionPolygonList(analUid, mapSheetNum);
|
||||
}
|
||||
|
||||
public List<ChangeDetectionDto.PointFeature> getChangeDetectionPointList(
|
||||
public ChangeDetectionDto.PointFeatureList getChangeDetectionPointList(
|
||||
Long analUid, String mapSheetNum) {
|
||||
return changeDetectionCoreService.getChangeDetectionPointList(analUid, mapSheetNum);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user