package com.moon.server.entity.ctrl; 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; @SuppressWarnings("ALL") public class PubEntity implements Serializable { private static final long serialVersionUID = 1393159573706054735L; public PubEntity() { min = 0; max = 18; 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()); } } private Integer pubid; private Integer layerId; private String uuid; /** * DOM,DEM,Vector,Model */ private String type; private String name; private Integer min; private Integer max; private Integer epsg; private Integer userId; private String dircode; private String depcode; private Integer nodata; /** * 0:不拉伸,1 线性拉伸,2 直方图均衡,3 标准差拉伸,4 伽马拉伸 */ private Integer enhanceType; private Double enhanceFactor; /** * 默认:"1,2,3",或为"3,2,1" */ private String tile_rgb; private List ids; private int colorTableId; private List colorTable; private List 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() { return type; } public void setType(String type) { this.type = type; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getMin() { return min; } public void setMin(Integer min) { this.min = min; } public Integer getMax() { return max; } public void setMax(Integer max) { this.max = max; } public Integer getEpsg() { return epsg; } public void setEpsg(Integer epsg) { this.epsg = epsg; } public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public String getDircode() { return dircode; } public void setDircode(String dircode) { this.dircode = dircode; } public String getDepcode() { return depcode; } public void setDepcode(String depcode) { 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 getIds() { return ids; } public void setIds(List ids) { this.ids = ids; } public int getColorTableId() { return colorTableId; } public void setColorTableId(int colorTableId) { this.colorTableId = colorTableId; } public List getColorTable() { return colorTable; } public void setColorTable(List colorTable) { this.colorTable = colorTable; } public List getGradientColorTable() { return gradientColorTable; } public void setGradientColorTable(List gradientColorTable) { this.gradientColorTable = gradientColorTable; } public String getTime() { return time; } public void setTime(String time) { this.time = time; } }