Statistics
| Revision:

gvsig-raster / org.gvsig.raster.wmts / trunk / org.gvsig.raster.wmts / org.gvsig.raster.wmts.io / src / main / java / org / gvsig / raster / wmts / io / WMTSDataParameters.java @ 2613

History | View | Annotate | Download (5.07 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
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 2
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
*/
22

    
23
package org.gvsig.raster.wmts.io;
24

    
25
import java.awt.geom.Rectangle2D;
26

    
27
import org.cresques.cts.IProjection;
28
import org.gvsig.compat.net.ICancellable;
29
import org.gvsig.fmap.dal.coverage.store.parameter.RemoteStoreParameters;
30
import org.gvsig.raster.wmts.ogc.WMTSClient;
31
import org.gvsig.raster.wmts.ogc.struct.WMTSLayer;
32
import org.gvsig.raster.wmts.ogc.struct.WMTSStyle;
33

    
34
/**
35
 * Parameters for the WMTS provider
36
 * @author Nacho Brodin (nachobrodin@gmail.com)
37
 */
38
public interface WMTSDataParameters extends RemoteStoreParameters {
39
        public static final String      DYNCLASS_NAME         = "WMTSDataParameters";
40
        public static final String      FIELD_IMAGE_FORMAT    = "imageformat";
41
        public static final String      FIELD_INFO_FORMAT     = "infoformat";
42
        public static final String      FIELD_NAME            = "name";
43
        public static final String      FIELD_SRSSTR          = "srsstr";
44
        public static final String      FIELD_OVERRIDE        = "override";
45
        public static final String      FIELD_WIDTH           = "width";
46
        public static final String      FIELD_HEIGHT          = "height";
47
        public static final String      FIELD_DELETECACHE     = "deletecache";
48
        public static final String      FIELD_STYLE_NAME      = "style";
49
        public static final String      FIELD_EXTENT          = "extent";
50
        public static final String      FIELD_DIMENSION       = "dimension";
51
        public static final String      FIELD_DIMENSION_VALUE = "selected_dimension_value";
52
        
53
        /**
54
         * Gets the selected dimension
55
         * @return
56
         */
57
        public String getDimension();
58
        
59
        /**
60
         * Sets the selected dimension
61
         * @param dimension
62
         */
63
        public void setDimension(String dimension);
64
        
65
        /**
66
         * Gets the value for the selected dimension
67
         * @return
68
         */
69
        public String getDimensionSelectedValue();
70
        
71
        /**
72
         * Sets the value for the selected dimension
73
         * @param dimension
74
         */
75
        public void setDimensionSelectedValue(String dimension);
76
        
77
        /**
78
         * Sets the style selected
79
         * @param layer
80
         */
81
        public void setStyle(WMTSStyle layer);
82
        
83
        /**
84
         * Gets the style
85
         * @return
86
         */
87
        public WMTSStyle getStyle();
88
        
89
        /**
90
         * Gets the image format
91
         * @return Format
92
         */
93
        public String getImageFormat();
94

    
95
        /**
96
         * Sets the image format
97
         * @param format
98
         */
99
        public void setImageFormat(String format);
100
        
101
        /**
102
         * Gets the format of the info by point
103
         * @return
104
         */
105
        public String getInfoFormat();
106

    
107
        /**
108
         * Sets the format of the info by point
109
         */
110
        public void setInfoFormat(String format);
111
        
112
        /**
113
         * Sets the layer selected
114
         * @param layer
115
         */
116
        public void setLayer(WMTSLayer layer);
117
        
118
        /**
119
         * Gets the layer
120
         * @return
121
         */
122
        public WMTSLayer getLayer();
123
        
124
        /**
125
         * Devuelve el SRS.
126
         * @return SRS.
127
         */
128
        public String getSRSCode();
129
        
130
        public void setSRS(String m_srs);
131
        
132
        public void setSRS(IProjection srs);
133

    
134
        /**
135
         * Returns the projection
136
         * @return
137
         */
138
        public IProjection getSRS();
139
        
140
        /**
141
         * Returns true if the layer is projected
142
         * @return
143
         */
144
        public boolean isProjected();
145
        
146
        public String getSRSID();
147

    
148
        public void setSRSID(String srsid);
149
        
150
        /**
151
         * Returns the current selected SRS.
152
         * @return
153
         */
154
        public String getEPSG(String value);
155
        
156
        public String getName();
157

    
158
        public void setName(String name);
159
        
160
        public void setCancellable(ICancellable cancel);
161
        
162
        public ICancellable getCancellable();
163
        
164
        public boolean isOverridingHost();
165
        
166
        public void setOverrideHost(boolean over);
167
        /**
168
         * Assigns the extent. 
169
         * When a provider is initialized this will need to know what is the extent before the request.
170
         * 
171
         * @param bBox
172
         */
173
        public void setExtent(Rectangle2D bBox);
174
        
175
        /**
176
         * Sets the width
177
         * When a provider is initialized this will need to know what is the width before the request.
178
         * @param w
179
         */
180
        public void setWidth(int w);
181
        
182
        /**
183
         * Sets the height
184
         * When a provider is initialized this will need to know what is the height before the request.
185
         * @param h
186
         */
187
        public void setHeight(int h);
188
        
189
        /**
190
         * Gets the bounding box
191
         * @return
192
         */
193
        public Rectangle2D getExtent();
194
        
195
        /**
196
         * Gets the width
197
         * @return
198
         */
199
        public int getWidth();
200
        
201
        /**
202
         * Gets the height
203
         * @return
204
         */
205
        public int getHeight();
206
        
207
        public boolean isSizeFixed();
208

    
209
        public void setURI(String params);
210

    
211
        public String getURI();
212
        
213
        public WMTSClient getOGCClient();
214
        
215
        public void setOGCClient(WMTSClient ogcClient);
216
}