Statistics
| Revision:

gvsig-raster / org.gvsig.raster.wmts / branches / org.gvsig.raster.wmts_dataaccess_refactoring / org.gvsig.raster.wmts.io / src / main / java / org / gvsig / raster / wmts / io / WMTSDataParameters.java @ 2316

History | View | Annotate | Download (4.48 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
        
51
        /**
52
         * Sets the style selected
53
         * @param layer
54
         */
55
        public void setStyle(WMTSStyle layer);
56
        
57
        /**
58
         * Gets the style
59
         * @return
60
         */
61
        public WMTSStyle getStyle();
62
        
63
        /**
64
         * Gets the image format
65
         * @return Format
66
         */
67
        public String getImageFormat();
68

    
69
        /**
70
         * Sets the image format
71
         * @param format
72
         */
73
        public void setImageFormat(String format);
74
        
75
        /**
76
         * Gets the format of the info by point
77
         * @return
78
         */
79
        public String getInfoFormat();
80

    
81
        /**
82
         * Sets the format of the info by point
83
         */
84
        public void setInfoFormat(String format);
85
        
86
        /**
87
         * Sets the layer selected
88
         * @param layer
89
         */
90
        public void setLayer(WMTSLayer layer);
91
        
92
        /**
93
         * Gets the layer
94
         * @return
95
         */
96
        public WMTSLayer getLayer();
97
        
98
        /**
99
         * Devuelve el SRS.
100
         * @return SRS.
101
         */
102
        public String getSRSCode();
103
        
104
        public void setSRS(String m_srs);
105
        
106
        public void setSRS(IProjection srs);
107

    
108
        /**
109
         * Returns the projection
110
         * @return
111
         */
112
        public IProjection getSRS();
113
        
114
        /**
115
         * Returns true if the layer is projected
116
         * @return
117
         */
118
        public boolean isProjected();
119
        
120
        public String getSRSID();
121

    
122
        public void setSRSID(String srsid);
123
        
124
        /**
125
         * Returns the current selected SRS.
126
         * @return
127
         */
128
        public String getEPSG(String value);
129
        
130
        public String getName();
131

    
132
        public void setName(String name);
133
        
134
        public void setCancellable(ICancellable cancel);
135
        
136
        public ICancellable getCancellable();
137
        
138
        public boolean isOverridingHost();
139
        
140
        public void setOverrideHost(boolean over);
141
        /**
142
         * Assigns the extent. 
143
         * When a provider is initialized this will need to know what is the extent before the request.
144
         * 
145
         * @param bBox
146
         */
147
        public void setExtent(Rectangle2D bBox);
148
        
149
        /**
150
         * Sets the width
151
         * When a provider is initialized this will need to know what is the width before the request.
152
         * @param w
153
         */
154
        public void setWidth(int w);
155
        
156
        /**
157
         * Sets the height
158
         * When a provider is initialized this will need to know what is the height before the request.
159
         * @param h
160
         */
161
        public void setHeight(int h);
162
        
163
        /**
164
         * Gets the bounding box
165
         * @return
166
         */
167
        public Rectangle2D getExtent();
168
        
169
        /**
170
         * Gets the width
171
         * @return
172
         */
173
        public int getWidth();
174
        
175
        /**
176
         * Gets the height
177
         * @return
178
         */
179
        public int getHeight();
180
        
181
        public boolean isSizeFixed();
182

    
183
        public void setURI(String params);
184

    
185
        public String getURI();
186
        
187
        public WMTSClient getOGCClient();
188
        
189
        public void setOGCClient(WMTSClient ogcClient);
190
}