| | |
| | | |
| | | private String queryType; |
| | | |
| | | private String shpName; |
| | | |
| | | public SeLayer() { |
| | | this.data = new JSONArray(); |
| | | } |
| | |
| | | this.data = new JSONArray(); |
| | | } |
| | | |
| | | public SeLayer(String id, String name, Integer dataType, List<SeField> fields) { |
| | | public SeLayer(String id, String name, String shpName, Integer dataType, List<SeField> fields) { |
| | | this(); |
| | | this.id = id; |
| | | this.name = name; |
| | | this.shpName = shpName; |
| | | this.dataType = dataType; |
| | | this.fields = fields; |
| | | this.queryType = getQueryType(dataType); |
| | |
| | | } |
| | | } |
| | | |
| | | public void addData(JSONArray arr){ |
| | | public void addData(JSONArray arr) { |
| | | this.data.addAll(arr); |
| | | } |
| | | |
| | |
| | | public void setQueryType(String queryType) { |
| | | this.queryType = queryType; |
| | | } |
| | | |
| | | public String getShpName() { |
| | | return shpName; |
| | | } |
| | | |
| | | public void setShpName(String shpName) { |
| | | this.shpName = shpName; |
| | | } |
| | | } |