From f913d44fbf160caafde4de10a8406d7908dfecd6 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 04 十二月 2023 09:19:24 +0800 Subject: [PATCH] 修改查询GDB文件接口 --- src/main/java/com/moon/server/entity/ctrl/PubEntity.java | 142 +++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 136 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/moon/server/entity/ctrl/PubEntity.java b/src/main/java/com/moon/server/entity/ctrl/PubEntity.java index 8478e99..8584018 100644 --- a/src/main/java/com/moon/server/entity/ctrl/PubEntity.java +++ b/src/main/java/com/moon/server/entity/ctrl/PubEntity.java @@ -2,8 +2,10 @@ import com.moon.server.entity.shujian.ColorTableEntity; import com.moon.server.entity.shujian.GradientColorTableEntity; +import com.moon.server.helper.StringHelper; import java.io.Serializable; +import java.util.Date; import java.util.List; /** @@ -11,19 +13,53 @@ * @author WWW * @date 2023-09-02 */ +@SuppressWarnings("AlibabaLowerCamelCaseVariableNaming") public class PubEntity implements Serializable { private static final long serialVersionUID = 1393159573706054735L; public PubEntity() { min = 0; max = 18; - epsgCode = 104903; + epsg = 104903; + uuid = StringHelper.getGuid(); + time = StringHelper.YMDHMS2_FORMAT.format(new Date()); + } + + /** + * 璁剧疆榛樿鍊� + */ + public void setDefault() { + if (null == min) { + min = 0; + } + if (null == max || max == 0) { + max = 18; + } + if (null == epsg || epsg == 0) { + epsg = 104903; + } + if (StringHelper.isEmpty(uuid)) { + uuid = StringHelper.getGuid(); + } + if (StringHelper.isEmpty(time)) { + time = StringHelper.YMDHMS2_FORMAT.format(new Date()); + } } /** * 鍙戝竷ID */ private Integer pubid; + + /** + * 鍥惧眰ID + */ + private Integer layerId; + + /** + * 鍞竴閿� + */ + private String uuid; /** * 绫诲瀷锛欴OM锛孌EM锛孷ector锛孧odel @@ -48,7 +84,7 @@ /** * EPSG缂栫爜 */ - private Integer epsgCode; + private Integer epsg; /** * 鐢ㄦ埛ID @@ -66,9 +102,34 @@ private String depcode; /** + * NoData + */ + private Integer nodata; + + /** + * 鎷変几鏂瑰紡 0锛氫笉鎷変几锛�1 绾挎�ф媺浼革紝2 鐩存柟鍥惧潎琛★紝3 鏍囧噯宸媺浼革紝4 浼介┈鎷変几 + */ + private Integer enhanceType; + + /** + * 鎷変几鍥犲瓙锛岄厤鍚� enhance_factor浣跨敤 + */ + private Double enhanceFactor; + + /** + * 杈撳嚭娉㈡锛岄粯璁わ細"1,2,3"锛屾垨涓�"3,2,1" + */ + private String tile_rgb; + + /** * 鍏冩暟鎹甀D闆嗗悎 */ private List<Integer> ids; + + /** + * 棰滆壊琛↖D + */ + private int colorTableId; /** * 棰滆壊琛� @@ -80,12 +141,33 @@ */ private List<GradientColorTableEntity> gradientColorTable; + /** + * 鏃堕棿鎴� + */ + private String time; + public Integer getPubid() { return pubid; } public void setPubid(Integer pubid) { this.pubid = pubid; + } + + public Integer getLayerId() { + return layerId; + } + + public void setLayerId(Integer layerId) { + this.layerId = layerId; + } + + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; } public String getType() { @@ -120,12 +202,12 @@ this.max = max; } - public Integer getEpsgCode() { - return epsgCode; + public Integer getEpsg() { + return epsg; } - public void setEpsgCode(Integer epsgCode) { - this.epsgCode = epsgCode; + public void setEpsg(Integer epsg) { + this.epsg = epsg; } public Integer getUserId() { @@ -152,12 +234,52 @@ this.depcode = depcode; } + public Integer getNodata() { + return nodata; + } + + public void setNodata(Integer nodata) { + this.nodata = nodata; + } + + public Integer getEnhanceType() { + return enhanceType; + } + + public void setEnhanceType(Integer enhanceType) { + this.enhanceType = enhanceType; + } + + public Double getEnhanceFactor() { + return enhanceFactor; + } + + public void setEnhanceFactor(Double enhanceFactor) { + this.enhanceFactor = enhanceFactor; + } + + public String getTile_rgb() { + return tile_rgb; + } + + public void setTile_rgb(String tile_rgb) { + this.tile_rgb = tile_rgb; + } + public List<Integer> getIds() { return ids; } public void setIds(List<Integer> ids) { this.ids = ids; + } + + public int getColorTableId() { + return colorTableId; + } + + public void setColorTableId(int colorTableId) { + this.colorTableId = colorTableId; } public List<ColorTableEntity> getColorTable() { @@ -175,4 +297,12 @@ public void setGradientColorTable(List<GradientColorTableEntity> gradientColorTable) { this.gradientColorTable = gradientColorTable; } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } } -- Gitblit v1.9.3