package com.terra.system.entity.ctrl; import com.terra.system.entity.all.AbstractPwdEntity; import com.terra.system.entity.all.StaticData; import java.io.Serializable; /** * 下载瓦片实体类 * @author WWW */ public class DownloadTileEntity extends AbstractPwdEntity implements Serializable { private static final long serialVersionUID = -229710198271495902L; private Double xmin; private Double ymin; private Double xmax; private Double ymax; private Integer pubid; private String title; public DownloadTileEntity() { } /** * 验证坐标 */ public String verifyCoords() { if (null == xmin || null == ymin || null == xmax || null == ymax) { return "四至坐标值不能为空"; } if (xmin < StaticData.I180_NEG || xmin > StaticData.I180 || xmax < StaticData.I180_NEG || xmax > StaticData.I180) { return "X坐标值不正确"; } if (ymin < StaticData.I90_NEG || ymin > StaticData.I90 || ymax < StaticData.I90_NEG || ymax > StaticData.I90) { return "Y坐标值不正确"; } if (xmin > xmax) { double x = xmax; xmin = xmax; xmax = x; } if (ymin > ymax) { double y = ymax; ymin = ymax; ymax = y; } return null; } public Double getXmin() { return xmin; } public void setXmin(Double xmin) { this.xmin = xmin; } public Double getYmin() { return ymin; } public void setYmin(Double ymin) { this.ymin = ymin; } public Double getXmax() { return xmax; } public void setXmax(Double xmax) { this.xmax = xmax; } public Double getYmax() { return ymax; } public void setYmax(Double ymax) { this.ymax = ymax; } public Integer getPubid() { return pubid; } public void setPubid(Integer pubid) { this.pubid = pubid; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } }