Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / wcs / WCSStatus.java @ 40559

History | View | Annotate | Download (4.99 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
/*
25
 * $Id: WCSStatus.java 29649 2009-06-29 17:06:55Z jpiera $ 
26
 * $Log$
27
 * Revision 1.9  2006-12-05 16:27:15  fdiaz
28
 * *** empty log message ***
29
 *
30
 * Revision 1.8  2006/05/12 07:45:49  jaume
31
 * some warnings removed
32
 *
33
 * Revision 1.7  2006/04/25 06:47:50  jaume
34
 * clean up unnecessary imports
35
 *
36
 * Revision 1.6  2006/04/19 11:04:51  jaume
37
 * *** empty log message ***
38
 *
39
 * Revision 1.5  2006/03/27 15:20:15  jaume
40
 * *** empty log message ***
41
 *
42
 * Revision 1.3  2006/03/21 11:30:26  jaume
43
 * some wcs client operation stuff
44
 *
45
 * Revision 1.2  2006/03/15 08:54:42  jaume
46
 * *** empty log message ***
47
 *
48
 * Revision 1.1.2.1  2006/03/08 09:08:31  jaume
49
 * *** empty log message ***
50
 *
51
 * Revision 1.1  2006/03/06 15:18:32  jaume
52
 * *** empty log message ***
53
 * 
54
 */
55
package org.gvsig.remoteclient.wcs;
56

    
57
import java.awt.geom.Rectangle2D;
58

    
59
import org.gvsig.remoteclient.RemoteClientStatus;
60
/**
61
 * Describes the status of a WCSclient, so it adds to the Remote client status
62
 * a list of layers, a list of layer styles, the extent of the map.
63
 * Provides the functionality to modify these lists.
64
 * 
65
 * @author jaume dom?nguez faus - jaume.dominguez@iver.es
66
 */
67
public class WCSStatus extends RemoteClientStatus {
68
        //private String                resolution                = null; TODO do I need it?
69
        private Rectangle2D        bBox                        = null;
70
        private String                coverageName        = null;
71
        private String                onlineResource        = null;
72
        private String                depth                        = null;
73
        private String                times                        = null;
74
        private String                parameters                = null;
75
        private String                message                        = null;
76
        
77
        /**
78
         * Sets the Bounding Box that is going to be requested to the server.
79
         * @param bBox, Rectangle2D containing the edges of the bounding box
80
         */
81
        public void setExtent(Rectangle2D bBox) {
82
                this.bBox = bBox;
83
        }
84
        
85
        /**
86
         * Sets the name of the coverage requested to the server.
87
         * @param coverageName, String containing the name of the requesting coverage
88
         */
89
        public void setCoveraName(String coverageName) {
90
                this.coverageName = coverageName;
91
        }
92

    
93
        /**
94
         * Sets the parameter string. The parameter string is the part of the request 
95
         * containing the value for the axis as described in the DescribeCoverage
96
         * document.
97
         * @param parameters
98
         */
99
        public void setParameters(String parameters) {
100
                this.parameters = parameters;
101
        }
102

    
103
        /**
104
         * Will set the address of the host that serves the following request
105
         * @param onlineResources
106
         */
107
        public void setOnlineResource(String onlineResources) {
108
                this.onlineResource = onlineResources;
109
        }
110
        
111
        /**
112
         * Sets the depth. The depth is the third dimension for the size. 
113
         * @param depth, String
114
         */
115
        public void setDepth(String depth) {
116
                this.depth = depth;
117
        }
118

    
119
        /**
120
         * Returns the address host that will serve the request 
121
         * @return String
122
         */
123
        public String getOnlineResource() {
124
                return onlineResource;
125
        }
126

    
127
        /**
128
         * Return the name of the coverage requested to the server.
129
         * @return String containing the name of the requesting coverage
130
         */
131
        public String getCoverageName() {
132
                return this.coverageName;
133
        }
134
        
135
        /**
136
         * Returns the Bounding Box that is going to be requested to the server.
137
         * @return Rectangle2D containing the edges of the bounding box
138
         */
139
        public Rectangle2D getExtent() {
140
                return this.bBox;
141
        }
142

    
143
        /**
144
         * Returns the depth of the next request.
145
         * @return String
146
         */
147
        public String getDepth() {
148
                return depth;
149
        }
150

    
151
        /**
152
         * Returns the value for the time parameter that will be used in the next request
153
         * @return String
154
         */
155
        public String getTime() {
156
                return times;
157
        }
158
        
159
        /**
160
         * Returns the parameter string.
161
         * The parameter string is the part of the request containing the value for the
162
         * axis as described in the DescribeCoverage.
163
         * @return String
164
         */
165
        public String getParameters() {
166
                return parameters;
167
        }
168

    
169
        /**
170
         * Sets the value(s) for the time that will be used in the next request. 
171
         * @param times
172
         */
173
        public void setTime(String times) {
174
                this.times = times;
175
        }
176

    
177
        /**
178
         * Returns the message string
179
         * @return String
180
         */
181
        public String getMessage() {
182
                return message;
183
        }
184
        
185
        /**
186
         * Sets the message string 
187
         * @param message
188
         */
189
        public void setMessage(String message) {
190
                this.message = message;
191
        }
192
        
193
}