변화지도 도엽 목록에 도엽별bbox 추가
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package com.kamco.cd.kamcoback.changedetection.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.kamco.cd.kamcoback.common.utils.enums.CodeExpose;
|
||||
import com.kamco.cd.kamcoback.common.utils.enums.EnumType;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@@ -143,6 +146,23 @@ public class ChangeDetectionDto {
|
||||
private String mapSheetNum;
|
||||
private String mapSheetName;
|
||||
private String alias;
|
||||
@JsonIgnore private String bboxStr;
|
||||
private JsonNode bbox;
|
||||
|
||||
public MapSheetList(String mapSheetNum, String mapSheetName, String alias, String bboxStr) {
|
||||
this.mapSheetNum = mapSheetNum;
|
||||
this.mapSheetName = mapSheetName;
|
||||
this.alias = alias;
|
||||
|
||||
if (bboxStr != null) {
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
try {
|
||||
this.bbox = mapper.readTree(bboxStr);
|
||||
} catch (JsonProcessingException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Schema(name = "PolygonFeatureList", description = "Geometry 리턴 객체")
|
||||
@@ -262,6 +282,7 @@ public class ChangeDetectionDto {
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class ChangeDetectionMapDto {
|
||||
|
||||
private Integer compareYyyy;
|
||||
private Integer targetYyyy;
|
||||
private String cdObjectId;
|
||||
|
||||
Reference in New Issue
Block a user