svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / wcs / WCSStatus.java @ 40769
History | View | Annotate | Download (4.24 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.remoteclient.wcs; |
25 |
|
26 |
import java.awt.geom.Rectangle2D; |
27 |
|
28 |
import org.gvsig.remoteclient.RemoteClientStatus; |
29 |
/**
|
30 |
* Describes the status of a WCSclient, so it adds to the Remote client status
|
31 |
* a list of layers, a list of layer styles, the extent of the map.
|
32 |
* Provides the functionality to modify these lists.
|
33 |
*
|
34 |
* @author jaume dom?nguez faus - jaume.dominguez@iver.es
|
35 |
*/
|
36 |
public class WCSStatus extends RemoteClientStatus { |
37 |
//private String resolution = null; TODO do I need it?
|
38 |
private Rectangle2D bBox = null; |
39 |
private String coverageName = null; |
40 |
private String onlineResource = null; |
41 |
private String depth = null; |
42 |
private String times = null; |
43 |
private String parameters = null; |
44 |
private String message = null; |
45 |
|
46 |
/**
|
47 |
* Sets the Bounding Box that is going to be requested to the server.
|
48 |
* @param bBox, Rectangle2D containing the edges of the bounding box
|
49 |
*/
|
50 |
public void setExtent(Rectangle2D bBox) { |
51 |
this.bBox = bBox;
|
52 |
} |
53 |
|
54 |
/**
|
55 |
* Sets the name of the coverage requested to the server.
|
56 |
* @param coverageName, String containing the name of the requesting coverage
|
57 |
*/
|
58 |
public void setCoveraName(String coverageName) { |
59 |
this.coverageName = coverageName;
|
60 |
} |
61 |
|
62 |
/**
|
63 |
* Sets the parameter string. The parameter string is the part of the request
|
64 |
* containing the value for the axis as described in the DescribeCoverage
|
65 |
* document.
|
66 |
* @param parameters
|
67 |
*/
|
68 |
public void setParameters(String parameters) { |
69 |
this.parameters = parameters;
|
70 |
} |
71 |
|
72 |
/**
|
73 |
* Will set the address of the host that serves the following request
|
74 |
* @param onlineResources
|
75 |
*/
|
76 |
public void setOnlineResource(String onlineResources) { |
77 |
this.onlineResource = onlineResources;
|
78 |
} |
79 |
|
80 |
/**
|
81 |
* Sets the depth. The depth is the third dimension for the size.
|
82 |
* @param depth, String
|
83 |
*/
|
84 |
public void setDepth(String depth) { |
85 |
this.depth = depth;
|
86 |
} |
87 |
|
88 |
/**
|
89 |
* Returns the address host that will serve the request
|
90 |
* @return String
|
91 |
*/
|
92 |
public String getOnlineResource() { |
93 |
return onlineResource;
|
94 |
} |
95 |
|
96 |
/**
|
97 |
* Return the name of the coverage requested to the server.
|
98 |
* @return String containing the name of the requesting coverage
|
99 |
*/
|
100 |
public String getCoverageName() { |
101 |
return this.coverageName; |
102 |
} |
103 |
|
104 |
/**
|
105 |
* Returns the Bounding Box that is going to be requested to the server.
|
106 |
* @return Rectangle2D containing the edges of the bounding box
|
107 |
*/
|
108 |
public Rectangle2D getExtent() { |
109 |
return this.bBox; |
110 |
} |
111 |
|
112 |
/**
|
113 |
* Returns the depth of the next request.
|
114 |
* @return String
|
115 |
*/
|
116 |
public String getDepth() { |
117 |
return depth;
|
118 |
} |
119 |
|
120 |
/**
|
121 |
* Returns the value for the time parameter that will be used in the next request
|
122 |
* @return String
|
123 |
*/
|
124 |
public String getTime() { |
125 |
return times;
|
126 |
} |
127 |
|
128 |
/**
|
129 |
* Returns the parameter string.
|
130 |
* The parameter string is the part of the request containing the value for the
|
131 |
* axis as described in the DescribeCoverage.
|
132 |
* @return String
|
133 |
*/
|
134 |
public String getParameters() { |
135 |
return parameters;
|
136 |
} |
137 |
|
138 |
/**
|
139 |
* Sets the value(s) for the time that will be used in the next request.
|
140 |
* @param times
|
141 |
*/
|
142 |
public void setTime(String times) { |
143 |
this.times = times;
|
144 |
} |
145 |
|
146 |
/**
|
147 |
* Returns the message string
|
148 |
* @return String
|
149 |
*/
|
150 |
public String getMessage() { |
151 |
return message;
|
152 |
} |
153 |
|
154 |
/**
|
155 |
* Sets the message string
|
156 |
* @param message
|
157 |
*/
|
158 |
public void setMessage(String message) { |
159 |
this.message = message;
|
160 |
} |
161 |
|
162 |
} |