변화탐지 API 커밋 cog,count,yearlist
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.kamco.cd.kamcoback.postgres.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.UUID;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "imagery")
|
||||
@Entity
|
||||
public class ImageryEntity {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator = "imagery_id_seq_gen")
|
||||
@SequenceGenerator(name = "imagery_id_seq_gen",sequenceName = "imagery_id_seq",allocationSize = 1)
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "uuid", columnDefinition = "uuid default gen_random_uuid()")
|
||||
private UUID uuid;
|
||||
|
||||
@Column(name = "year")
|
||||
private Integer year;
|
||||
|
||||
@Column(name = "scene_50k")
|
||||
private String scene50k;
|
||||
|
||||
@Column(name = "scene_5k")
|
||||
private String scene5k;
|
||||
|
||||
@Column(name = "scene_id_50k")
|
||||
private Integer sceneId50k;
|
||||
|
||||
@Column(name = "scene_id_5k")
|
||||
private Integer sceneId5k;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_date", columnDefinition = "TIMESTAMP WITH TIME ZONE DEFAULT now()")
|
||||
private ZonedDateTime createdDate;
|
||||
|
||||
@Column(name = "middle_path")
|
||||
private String middlePath;
|
||||
|
||||
@Column(name = "cog_middle_path")
|
||||
private String cogMiddlePath;
|
||||
|
||||
@Column(name = "filename")
|
||||
private String filename;
|
||||
|
||||
@Column(name = "cog_filename")
|
||||
private String cogFilename;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.kamco.cd.kamcoback.postgres.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "tb_map_inkx_50k")
|
||||
@Entity
|
||||
public class MapInkx50kEntity {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "tb_map_inkx_50k_fid_seq_gen")
|
||||
@SequenceGenerator(
|
||||
name = "tb_map_inkx_50k_fid_seq_gen",
|
||||
sequenceName = "tb_map_inkx_50k_fid_seq",
|
||||
allocationSize = 1)
|
||||
private Integer fid;
|
||||
|
||||
@Column(name = "mapidcd_no")
|
||||
private String mapidcdNo;
|
||||
|
||||
@Column(name = "mapid_nm")
|
||||
private String mapidNm;
|
||||
|
||||
@Column(name = "mapid_no")
|
||||
private String mapidNo;
|
||||
|
||||
@Column(name = "geom")
|
||||
private Geometry geom;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.kamco.cd.kamcoback.postgres.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "tb_map_inkx_5k")
|
||||
@Entity
|
||||
public class MapInkx5kEntity {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "tb_map_inkx_5k_fid_seq_gen")
|
||||
@SequenceGenerator(
|
||||
name = "tb_map_inkx_5k_fid_seq_gen",
|
||||
sequenceName = "tb_map_inkx_5k_fid_seq",
|
||||
allocationSize = 1)
|
||||
private Integer fid;
|
||||
|
||||
@Column(name = "mapidcd_no")
|
||||
private String mapidcdNo;
|
||||
|
||||
@Column(name = "mapid_nm")
|
||||
private String mapidNm;
|
||||
|
||||
@Column(name = "geom")
|
||||
private Geometry geom;
|
||||
|
||||
@Column(name = "fid_k50")
|
||||
private Long fidK50;
|
||||
}
|
||||
@@ -91,4 +91,7 @@ public class MapSheetAnalEntity {
|
||||
|
||||
@Column(name = "detecting_cnt")
|
||||
private Long detectingCnt;
|
||||
|
||||
@Column(name = "base_map_sheet_num")
|
||||
private String baseMapSheetNum;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,12 @@ public class MapSheetAnalSttcEntity {
|
||||
@Column(name = "data_uid", nullable = false)
|
||||
private Long dataUid;
|
||||
|
||||
@Column(name = "class_before_cd")
|
||||
private String classBeforeCd;
|
||||
|
||||
@Column(name = "class_after_cd")
|
||||
private String classAfterCd;
|
||||
|
||||
public InferenceResultDto.Dashboard toDto() {
|
||||
return new InferenceResultDto.Dashboard(
|
||||
id.getCompareYyyy(),
|
||||
|
||||
Reference in New Issue
Block a user