변화탐지 포인트 형식 수정, 폴리곤 json으로 리턴
This commit is contained in:
@@ -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 리턴 객체")
|
||||
|
||||
Reference in New Issue
Block a user