| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 数简.创建图层类 |
| | | * @author WWW |
| | | * @date 2023-08-30 |
| | | */ |
| | | @SuppressWarnings("AlibabaLowerCamelCaseVariableNaming") |
| | | public class CreateLayerEntity implements Serializable { |
| | | private static final long serialVersionUID = 8392354493626395905L; |
| | | |
| | | /** |
| | | * 图层信息 |
| | | */ |
| | | private Layer layer; |
| | | |
| | | /** |
| | | * 影像目录列表 |
| | | */ |
| | | private List<ImagePathList> image_path_list; |
| | | |
| | | /** |
| | | * 金字塔配置 |
| | | */ |
| | | private ImageOvr image_ovr; |
| | | |
| | | /** |
| | | * 创建服务 |
| | | */ |
| | | private Integer create_service; |
| | | |
| | | public CreateLayerEntity() { |
| | | create_service = 0; |
| | | layer = new Layer(); |
| | | image_ovr = new ImageOvr(); |
| | | image_path_list = new ArrayList<>(); |
| | | this.create_service = 0; |
| | | this.layer = new Layer(); |
| | | this.image_ovr = new ImageOvr(); |
| | | this.image_path_list = new ArrayList<>(); |
| | | } |
| | | |
| | | public Layer getLayer() { |
| | |
| | | this.create_service = create_service; |
| | | } |
| | | |
| | | /** |
| | | * 图层信息 |
| | | */ |
| | | public class Layer { |
| | | /** |
| | | * 名称 |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | |
| | | private String tile_rgb; |
| | | |
| | | /** |
| | | * 图层类型。0:普通,1:DEM图层 |
| | | * 图层类型。0:普通,1:DEM图层,2:自定义 |
| | | */ |
| | | private Integer type; |
| | | |
| | |
| | | */ |
| | | private Double enhance_factor; |
| | | |
| | | private Integer image_type = -1; |
| | | |
| | | private Integer sat_id = -1; |
| | | |
| | | private Integer sensor_id = -1; |
| | | |
| | | //private Integer pub_status = 0; |
| | | |
| | | private String type_i = ""; |
| | | |
| | | private String type_ii = ""; |
| | | |
| | | private String type_iii = ""; |
| | | |
| | | private String type_iv = ""; |
| | | |
| | | /** |
| | | * 边界计算方式 0外包,1, 内接, 2 精准 |
| | | */ |
| | | private Integer boundary_cal_mode; |
| | | |
| | | public Layer() { |
| | | projection = "ESRI:104903"; |
| | | trans_color = "-1,-1,-1"; |
| | | tile_rgb = "1,2,3"; |
| | | end_scale = 1.0; |
| | | start_scale = 1048576000.0; |
| | | stats_type = 1; |
| | | enhance_type = 0; |
| | | enhance_factor = null; |
| | | boundary_cal_mode = 0; |
| | | this.projection = "ESRI:104903"; |
| | | this.trans_color = "-1,-1,-1"; |
| | | this.tile_rgb = "1,2,3"; |
| | | this.end_scale = 1.0; |
| | | this.start_scale = 1048576000.0; |
| | | this.stats_type = 1; |
| | | this.enhance_type = 0; |
| | | this.enhance_factor = null; |
| | | this.boundary_cal_mode = 0; |
| | | } |
| | | |
| | | public String getName() { |
| | |
| | | public void setBoundary_cal_mode(Integer boundary_cal_mode) { |
| | | this.boundary_cal_mode = boundary_cal_mode; |
| | | } |
| | | |
| | | public Integer getImage_type() { |
| | | return image_type; |
| | | } |
| | | |
| | | public void setImage_type(Integer image_type) { |
| | | this.image_type = image_type; |
| | | } |
| | | |
| | | public Integer getSat_id() { |
| | | return sat_id; |
| | | } |
| | | |
| | | public void setSat_id(Integer sat_id) { |
| | | this.sat_id = sat_id; |
| | | } |
| | | |
| | | public Integer getSensor_id() { |
| | | return sensor_id; |
| | | } |
| | | |
| | | public void setSensor_id(Integer sensor_id) { |
| | | this.sensor_id = sensor_id; |
| | | } |
| | | |
| | | public String getType_i() { |
| | | return type_i; |
| | | } |
| | | |
| | | public void setType_i(String type_i) { |
| | | this.type_i = type_i; |
| | | } |
| | | |
| | | public String getType_ii() { |
| | | return type_ii; |
| | | } |
| | | |
| | | public void setType_ii(String type_ii) { |
| | | this.type_ii = type_ii; |
| | | } |
| | | |
| | | public String getType_iii() { |
| | | return type_iii; |
| | | } |
| | | |
| | | public void setType_iii(String type_iii) { |
| | | this.type_iii = type_iii; |
| | | } |
| | | |
| | | public String getType_iv() { |
| | | return type_iv; |
| | | } |
| | | |
| | | public void setType_iv(String type_iv) { |
| | | this.type_iv = type_iv; |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | private Object attr_filter; |
| | | |
| | | public ImagePathList() { |
| | | datasource = "Local"; |
| | | recursion = 1; |
| | | filter = new ArrayList<>(); |
| | | this.datasource = "Local"; |
| | | this.recursion = 0; |
| | | this.filter = new ArrayList<>(); |
| | | } |
| | | |
| | | public String getDatasource() { |
| | |
| | | private Integer sample_type; |
| | | |
| | | public ImageOvr() { |
| | | same_path = 1; |
| | | force_del = 0; |
| | | sample_type = 0; |
| | | this.same_path = 1; |
| | | this.force_del = 0; |
| | | this.sample_type = 0; |
| | | } |
| | | |
| | | public Integer getSame_path() { |
| | |
| | | * 颜色表配置 |
| | | */ |
| | | public class Config { |
| | | private Process process; |
| | | // private Process process |
| | | private Integer optm; |
| | | |
| | | public Config(Integer type, List<?> levels) { |
| | | process = new Process(type, levels); |
| | | private List<Process> online_process; |
| | | |
| | | public Config(Integer colorTableId, Integer type, List<?> levels) { |
| | | Process process = new Process(colorTableId, type, levels); |
| | | this.online_process = new ArrayList<>(); |
| | | this.online_process.add(process); |
| | | |
| | | this.optm = 1; |
| | | } |
| | | |
| | | public Process getProcess() { |
| | | return process; |
| | | public Integer getOptm() { |
| | | return optm; |
| | | } |
| | | |
| | | public void setProcess(Process process) { |
| | | this.process = process; |
| | | public void setOptm(Integer optm) { |
| | | this.optm = optm; |
| | | } |
| | | |
| | | public List<Process> getOnline_process() { |
| | | return online_process; |
| | | } |
| | | |
| | | public void setOnline_process(List<Process> online_process) { |
| | | this.online_process = online_process; |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | private String name; |
| | | |
| | | private Integer color_table_id; |
| | | |
| | | private Map<String, Object> config; |
| | | |
| | | public Process() { |
| | | uuid = StringHelper.getGuid(); |
| | | name = "color_table"; |
| | | this.uuid = StringHelper.getGuid(); |
| | | this.name = "color_table"; |
| | | this.color_table_id = 0; |
| | | |
| | | config = new HashMap<>(); |
| | | config.put("default", new Default()); |
| | | this.config = new HashMap<>(); |
| | | this.config.put("default", new Default()); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param type 0-默认色板,1-渐变色板 |
| | | * @param levels 层级 |
| | | */ |
| | | public Process(Integer type, List<?> levels) { |
| | | public Process(Integer colorTableId, Integer type, List<?> levels) { |
| | | this(); |
| | | config.put("type", type); |
| | | config.put("levels", levels); |
| | | this.color_table_id = colorTableId; |
| | | |
| | | this.config.put("type", type); |
| | | this.config.put("levels", levels); |
| | | if (type > 0) { |
| | | this.config.put("gradation", "visibility"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | this.name = name; |
| | | } |
| | | |
| | | public Integer getColor_table_id() { |
| | | return color_table_id; |
| | | } |
| | | |
| | | public void setColor_table_id(Integer color_table_id) { |
| | | this.color_table_id = color_table_id; |
| | | } |
| | | |
| | | public Map<String, Object> getConfig() { |
| | | return config; |
| | | } |
| | |
| | | private Short b; |
| | | |
| | | public Default() { |
| | | r = -1; |
| | | b = -1; |
| | | g = -1; |
| | | this.r = -1; |
| | | this.b = -1; |
| | | this.g = -1; |
| | | } |
| | | |
| | | public Short getR() { |