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 @ 1961

History | View | Annotate | Download (4.85 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.struct.WMTSLayer;
31
import org.gvsig.raster.wmts.ogc.struct.WMTSStyle;
32

    
33
/**
34
 * Parameters for the WMTS provider
35
 * @author Nacho Brodin (nachobrodin@gmail.com)
36
 */
37
public interface WMTSDataParameters extends RemoteStoreParameters {
38
        public static final String      DYNCLASS_NAME         = "WMTSDataParameters";
39
        public static final String      FIELD_SRS             = "srs";
40
        public static final String      FIELD_IMAGE_FORMAT    = "imageformat";
41
        public static final String      FIELD_INFO_FORMAT     = "infoformat";
42
        public static final String      FIELD_LAYER           = "layer";
43
        public static final String      FIELD_STYLE           = "style";
44
        public static final String      FIELD_NAME            = "name";
45
        public static final String      FIELD_SRSSTR          = "srsstr";
46
        public static final String      FIELD_OVERRIDE        = "override";
47
        public static final String      FIELD_CANCEL          = "cancellable";
48
        public static final String      FIELD_EXTENT          = "extent";
49
        public static final String      FIELD_WIDTH           = "width";
50
        public static final String      FIELD_HEIGHT          = "height";
51
        public static final String      FIELD_DELETECACHE     = "deletecache";
52
        public static final String      CONNECTOR             = "connector";
53
        
54
        /**
55
         * Assign the fields of the selected WMTSDataParameters in the current
56
         * @param p
57
         */
58
        public void assignFields(WMTSDataParameters p);
59
        
60
        /**
61
         * Sets the style selected
62
         * @param layer
63
         */
64
        public void setStyle(WMTSStyle layer);
65
        
66
        /**
67
         * Gets the style
68
         * @return
69
         */
70
        public WMTSStyle getStyle();
71
        
72
        /**
73
         * Gets the image format
74
         * @return Format
75
         */
76
        public String getImageFormat();
77

    
78
        /**
79
         * Sets the image format
80
         * @param format
81
         */
82
        public void setImageFormat(String format);
83
        
84
        /**
85
         * Gets the format of the info by point
86
         * @return
87
         */
88
        public String getInfoFormat();
89

    
90
        /**
91
         * Sets the format of the info by point
92
         */
93
        public void setInfoFormat(String format);
94
        
95
        /**
96
         * Sets the layer selected
97
         * @param layer
98
         */
99
        public void setLayer(WMTSLayer layer);
100
        
101
        /**
102
         * Gets the layer
103
         * @return
104
         */
105
        public WMTSLayer getLayer();
106
        
107
        /**
108
         * Devuelve el SRS.
109
         * @return SRS.
110
         */
111
        public String getSRSCode();
112
        
113
        public void setSRS(String m_srs);
114
        
115
        public void setSRS(IProjection srs);
116

    
117
        /**
118
         * Returns the projection
119
         * @return
120
         */
121
        public IProjection getSRS();
122
        
123
        /**
124
         * Returns true if the layer is projected
125
         * @return
126
         */
127
        public boolean isProjected();
128
        
129
        public String getSRSID();
130

    
131
        public void setSRSID(String srsid);
132
        
133
        /**
134
         * Returns the current selected SRS.
135
         * @return
136
         */
137
        public String getEPSG(String value);
138
        
139
        public String getName();
140

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

    
192
        public void setURI(String params);
193

    
194
        public String getURI();
195
        
196
        public WMTSConnector getConnector();
197
        
198
        public void setConnector(WMTSConnector connector);
199
}