gvsig-raster / org.gvsig.raster.wms / trunk / org.gvsig.raster.wms / org.gvsig.raster.wms.io / src / main / java / org / gvsig / raster / wms / io / WMSDataParameters.java @ 4181
History | View | Annotate | Download (5.2 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 |
package org.gvsig.raster.wms.io; |
23 |
|
24 |
import java.awt.Dimension; |
25 |
import java.awt.geom.Rectangle2D; |
26 |
import java.net.URI; |
27 |
import java.util.List; |
28 |
import java.util.Map; |
29 |
import java.util.Vector; |
30 |
|
31 |
import org.gvsig.compat.net.ICancellable; |
32 |
import org.gvsig.fmap.dal.coverage.store.parameter.RemoteStoreParameters; |
33 |
|
34 |
/**
|
35 |
* Parameters for the WMS provider
|
36 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
37 |
*/
|
38 |
public interface WMSDataParameters extends RemoteStoreParameters { |
39 |
|
40 |
public void setLayerQuery(String string); |
41 |
|
42 |
public void setInfoLayerQuery(String string); |
43 |
|
44 |
/**
|
45 |
* Sets the info by point format
|
46 |
*/
|
47 |
public void setInfoFormat(String format); |
48 |
|
49 |
/**
|
50 |
* Gets the info by point format
|
51 |
* @return
|
52 |
*/
|
53 |
public String getInfoFormat(); |
54 |
|
55 |
public void setFormat(String string); |
56 |
|
57 |
public void setSRS(String string); |
58 |
|
59 |
public void setWmsTransparency(boolean boolean1); |
60 |
|
61 |
public void setURI(URI uri); |
62 |
|
63 |
public void setStyles(List<RemoteWMSStyle> styles); |
64 |
|
65 |
/**
|
66 |
* Sets the dimension vector that is a list of key-value pairs containing
|
67 |
* the name of the dimension and the value for it
|
68 |
* @param dimensions
|
69 |
*/
|
70 |
public void setDimensions(Vector<String> dimensions); |
71 |
|
72 |
/**
|
73 |
* Sets the set of URLs that should be accessed for each operation performed
|
74 |
* to the server.
|
75 |
*
|
76 |
* @param onlineResources
|
77 |
*/
|
78 |
public void setOnlineResources(Map<String, String> onlineResources); |
79 |
|
80 |
public void setQueryable(boolean boolean1); |
81 |
|
82 |
public void setFixedSize(Dimension dimension); |
83 |
|
84 |
public URI getURI(); |
85 |
|
86 |
public String getInfoLayerQuery(); |
87 |
|
88 |
public String getLayerQuery(); |
89 |
|
90 |
public String getFormat(); |
91 |
|
92 |
public String getSRSCode(); |
93 |
|
94 |
/**
|
95 |
* @return Returns the wmsTransparency.
|
96 |
*/
|
97 |
public boolean isWmsTransparent(); |
98 |
|
99 |
public List<RemoteWMSStyle> getStyles(); |
100 |
|
101 |
public Vector<String> getDimensions(); |
102 |
|
103 |
/**
|
104 |
* Gets the URL that should be accessed for an operation performed
|
105 |
* to the server.
|
106 |
*
|
107 |
* @param onlineResources
|
108 |
*/
|
109 |
public String getOnlineResource(String operation); |
110 |
|
111 |
/**
|
112 |
* Gets the online resource map
|
113 |
*
|
114 |
* @param onlineResources
|
115 |
*/
|
116 |
public Map<String,String> getOnlineResource(); |
117 |
|
118 |
/**
|
119 |
* If it is true, this layer accepts GetFeatureInfo operations. This WMS operations
|
120 |
* maps to FMap's infoByPoint(p) operation.
|
121 |
*/
|
122 |
public boolean isQueryable(); |
123 |
|
124 |
public Dimension getFixedSize(); |
125 |
|
126 |
/**
|
127 |
* Sets the bounding box of the request
|
128 |
*/
|
129 |
public void setExtent(Rectangle2D bBox); |
130 |
|
131 |
/**
|
132 |
* Gets the bounding box of the request
|
133 |
* @return
|
134 |
*/
|
135 |
public Rectangle2D getExtent(); |
136 |
|
137 |
public void setCancellable(ICancellable cancel); |
138 |
|
139 |
public Object getSRS(); |
140 |
|
141 |
public void setOverrideHost(boolean b); |
142 |
|
143 |
public void setName(String title); |
144 |
|
145 |
public String getName(); |
146 |
|
147 |
public int getWidth(); |
148 |
|
149 |
public int getHeight(); |
150 |
|
151 |
public ICancellable getCancellable();
|
152 |
|
153 |
/**
|
154 |
* <p>Gets the behaviour of the parser with regards the axis order</p>
|
155 |
*
|
156 |
* <p>Returns <code>true</code> if the WMS parser should assume that the
|
157 |
* order of the coordinates follows the XY axis order
|
158 |
* (the first coordinate corresponds to the horizontal X
|
159 |
* axis, while the second coordinate corresponds to the
|
160 |
* vertical Y axis), regardless the protocol version and CRS in use.</p>
|
161 |
*
|
162 |
* <p>Returns <code>false</code> if the WMS parser should decide the
|
163 |
* axis order based on the protocol version and the coordinate
|
164 |
* reference system (CRS) in use. In particular, if protocol
|
165 |
* version is >= 1.3.0, then the WMS parser assumes
|
166 |
* the axis order defined in the official EPSG registry for the
|
167 |
* CRS in use. For versions < 1.3.0, the XY axis order is assumed.</p>
|
168 |
*
|
169 |
* <p>The default value is <code>false</code></p>.
|
170 |
* @see #setXyAxisOrder(boolean)
|
171 |
* @return
|
172 |
*/
|
173 |
public boolean isXyAxisOrder(); |
174 |
|
175 |
/**
|
176 |
* <p>Sets the behaviour of the parser with regards the axis order.<p>
|
177 |
*
|
178 |
* <p>If set to <code>true</code>, then the XY axis order
|
179 |
* is assumed for all the WMS
|
180 |
* protocol versions and coordinate reference systems.</p>
|
181 |
*
|
182 |
* <p>If set to <code>false</code>
|
183 |
* then the WMS parser will decide the axis order based on
|
184 |
* the protocol version and the coordinate reference system (CRS)
|
185 |
* in use. In particular, if protocol
|
186 |
* version is >= 1.3.0, then the WMS parser assumes
|
187 |
* the axis order defined in the official EPSG registry for the
|
188 |
* CRS in use. For versions < 1.3.0, the XY axis order is assumed.</p>
|
189 |
*
|
190 |
*
|
191 |
* @param assumeXY
|
192 |
* @see #isXyAxisOrder()
|
193 |
*/
|
194 |
public void setXyAxisOrder(boolean assumeXY); |
195 |
} |