¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.se.nsl.domain.po; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.se.nsl.helper.GdalHelper; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.gdal.osr.SpatialReference; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @SuppressWarnings("ALL") |
| | | public class SimuData { |
| | | @ApiModelProperty("è¾å
¥è·¯å¾") |
| | | private String inPath; |
| | | |
| | | @ApiModelProperty("è¾åºè·¯å¾") |
| | | private String outPath; |
| | | |
| | | @ApiModelProperty("å¼å§æ¶é´") |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date startTime; |
| | | |
| | | @ApiModelProperty("æå°X") |
| | | private Double minx; |
| | | |
| | | @ApiModelProperty("æå°Y") |
| | | private Double miny; |
| | | |
| | | @ApiModelProperty("æå¤§X") |
| | | private Double maxx; |
| | | |
| | | @ApiModelProperty("æå¤§Y") |
| | | private Double maxy; |
| | | |
| | | @ApiModelProperty("åæ ç³»ID") |
| | | private Integer epsg; |
| | | |
| | | @ApiModelProperty("ç±»å«:1-颿µæ¨¡æ,2-宿¶æ¨¡æ,3-å岿¨¡æ") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("é鍿¨¡å¼:æ£æåå¸|å¹³ååå¸|æ³¢å¨å¹³ååå¸|æç»ä¸å") |
| | | private String mode; |
| | | |
| | | @ApiModelProperty("é鍿»é(mm)") |
| | | private Double total; |
| | | |
| | | @ApiModelProperty("é鍿¶é¿(h)") |
| | | private Integer duration; |
| | | |
| | | @ApiModelProperty("éé¨å¼ºåº¦(mm/h)") |
| | | private Double intensity; |
| | | |
| | | @ApiModelProperty("åå²é¨æ
:XXå¹´50mméé¨|XXå¹´75mméé¨|XXå¹´100mméé¨|æ°å¢éé¨å岿°æ®") |
| | | private String history; |
| | | |
| | | @ApiModelProperty("颿µæ°æ®:éé¨åºæ¬¡|æ°è±¡æ°æ®|éå°æ¶é¢æ¥æ°æ®|èªå®ä¹åæ°") |
| | | private String prediction; |
| | | |
| | | @ApiModelProperty("é¨éç±»å«:é¨éè®¡å®æ¶æ°æ®|æ°è±¡å®æ¶æ°æ®") |
| | | private String category; |
| | | |
| | | @ApiModelProperty("é¨é计å表") |
| | | private List<RainGauge> gauges; |
| | | |
| | | public SimuData() { |
| | | gauges = new ArrayList<>(); |
| | | } |
| | | |
| | | public SimuData(String inPath, String outPath, Date startTime, Double minx, Double miny, Double maxx, Double maxy, Integer epsg, Integer type, Double total, Integer duration, Double intensity) { |
| | | this(); |
| | | this.inPath = inPath; |
| | | this.outPath = outPath; |
| | | this.startTime = startTime; |
| | | this.minx = minx; |
| | | this.miny = miny; |
| | | this.maxx = maxx; |
| | | this.maxy = maxy; |
| | | this.epsg = epsg; |
| | | this.type = type; |
| | | this.total = total; |
| | | this.duration = duration; |
| | | this.intensity = intensity; |
| | | } |
| | | |
| | | public void setPath(String inPath, String outPath) { |
| | | this.inPath = inPath; |
| | | this.outPath = outPath; |
| | | } |
| | | |
| | | public String getBbox() { |
| | | // "116.64388473935195,39.884315914604464,116.64754729082588,39.887069143903496"; |
| | | return minx + "," + miny + "," + maxx + "," + maxy; |
| | | } |
| | | |
| | | public SpatialReference getSpatialReference() { |
| | | return GdalHelper.createSpatialReference(this.getEpsg()); |
| | | } |
| | | |
| | | public String getInPath() { |
| | | return inPath; |
| | | } |
| | | |
| | | public void setInPath(String inPath) { |
| | | this.inPath = inPath; |
| | | } |
| | | |
| | | public String getOutPath() { |
| | | return outPath; |
| | | } |
| | | |
| | | public void setOutPath(String outPath) { |
| | | this.outPath = outPath; |
| | | } |
| | | |
| | | public Date getStartTime() { |
| | | return startTime; |
| | | } |
| | | |
| | | public void setStartTime(Date startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Double getMinx() { |
| | | return minx; |
| | | } |
| | | |
| | | public void setMinx(Double minx) { |
| | | this.minx = minx; |
| | | } |
| | | |
| | | public Double getMiny() { |
| | | return miny; |
| | | } |
| | | |
| | | public void setMiny(Double miny) { |
| | | this.miny = miny; |
| | | } |
| | | |
| | | public Double getMaxx() { |
| | | return maxx; |
| | | } |
| | | |
| | | public void setMaxx(Double maxx) { |
| | | this.maxx = maxx; |
| | | } |
| | | |
| | | public Double getMaxy() { |
| | | return maxy; |
| | | } |
| | | |
| | | public void setMaxy(Double maxy) { |
| | | this.maxy = maxy; |
| | | } |
| | | |
| | | public Integer getEpsg() { |
| | | return epsg; |
| | | } |
| | | |
| | | public void setEpsg(Integer epsg) { |
| | | this.epsg = epsg; |
| | | } |
| | | |
| | | public Integer getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(Integer type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getMode() { |
| | | return mode; |
| | | } |
| | | |
| | | public void setMode(String mode) { |
| | | this.mode = mode; |
| | | } |
| | | |
| | | public Double getTotal() { |
| | | return total; |
| | | } |
| | | |
| | | public void setTotal(Double total) { |
| | | this.total = total; |
| | | } |
| | | |
| | | public Integer getDuration() { |
| | | return duration; |
| | | } |
| | | |
| | | public void setDuration(Integer duration) { |
| | | this.duration = duration; |
| | | } |
| | | |
| | | public Double getIntensity() { |
| | | return intensity; |
| | | } |
| | | |
| | | public void setIntensity(Double intensity) { |
| | | this.intensity = intensity; |
| | | } |
| | | |
| | | public String getHistory() { |
| | | return history; |
| | | } |
| | | |
| | | public void setHistory(String history) { |
| | | this.history = history; |
| | | } |
| | | |
| | | public String getPrediction() { |
| | | return prediction; |
| | | } |
| | | |
| | | public void setPrediction(String prediction) { |
| | | this.prediction = prediction; |
| | | } |
| | | |
| | | public String getCategory() { |
| | | return category; |
| | | } |
| | | |
| | | public void setCategory(String category) { |
| | | this.category = category; |
| | | } |
| | | |
| | | public List<RainGauge> getGauges() { |
| | | return gauges; |
| | | } |
| | | |
| | | public void setGauges(List<RainGauge> gauges) { |
| | | this.gauges = gauges; |
| | | } |
| | | } |