| | |
| | | package com.moon.server.entity.ctrl; |
| | | |
| | | import io.swagger.models.auth.In; |
| | | 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; |
| | | |
| | | /** |
| | | * 发布实体类 |
| | | * @author WWW |
| | | */ |
| | | public class PubEntity { |
| | | @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 token; |
| | | |
| | | private String name; |
| | | |
| | | private Integer userId; |
| | | |
| | | private Integer min; |
| | | |
| | | private Integer max; |
| | | |
| | | private Integer noData; |
| | | 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<Integer> ids; |
| | | |
| | | private List<Integer> models; |
| | | private int colorTableId; |
| | | |
| | | private List<Integer> srids; |
| | | private List<ColorTableEntity> colorTable; |
| | | |
| | | private List<Double> zs; |
| | | 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() { |
| | | return type; |
| | |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getToken() { |
| | | return token; |
| | | } |
| | | |
| | | public void setToken(String token) { |
| | | this.token = token; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public Integer getUserId() { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Integer userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Integer getMin() { |
| | |
| | | this.max = max; |
| | | } |
| | | |
| | | public Integer getNoData() { |
| | | return noData; |
| | | public Integer getEpsg() { |
| | | return epsg; |
| | | } |
| | | |
| | | public void setNoData(Integer noData) { |
| | | this.noData = noData; |
| | | public void setEpsg(Integer epsg) { |
| | | this.epsg = epsg; |
| | | } |
| | | |
| | | public Integer getUserId() { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Integer userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getDircode() { |
| | |
| | | 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; |
| | | } |
| | |
| | | this.ids = ids; |
| | | } |
| | | |
| | | public List<Integer> getModels() { |
| | | return models; |
| | | public int getColorTableId() { |
| | | return colorTableId; |
| | | } |
| | | |
| | | public void setModels(List<Integer> models) { |
| | | this.models = models; |
| | | public void setColorTableId(int colorTableId) { |
| | | this.colorTableId = colorTableId; |
| | | } |
| | | |
| | | public List<Integer> getSrids() { |
| | | return srids; |
| | | public List<ColorTableEntity> getColorTable() { |
| | | return colorTable; |
| | | } |
| | | |
| | | public void setSrids(List<Integer> srids) { |
| | | this.srids = srids; |
| | | public void setColorTable(List<ColorTableEntity> colorTable) { |
| | | this.colorTable = colorTable; |
| | | } |
| | | |
| | | public List<Double> getZs() { |
| | | return zs; |
| | | public List<GradientColorTableEntity> getGradientColorTable() { |
| | | return gradientColorTable; |
| | | } |
| | | |
| | | public void setZs(List<Double> zs) { |
| | | this.zs = zs; |
| | | public void setGradientColorTable(List<GradientColorTableEntity> gradientColorTable) { |
| | | this.gradientColorTable = gradientColorTable; |
| | | } |
| | | |
| | | public String getTime() { |
| | | return time; |
| | | } |
| | | |
| | | public void setTime(String time) { |
| | | this.time = time; |
| | | } |
| | | } |