Revision 4718
trunk/extensions/extWCS/src/com/iver/cit/gvsig/fmap/drivers/wcs/FMapWCSDriver.java | ||
---|---|---|
139 | 139 |
return client.getDescription(); |
140 | 140 |
} |
141 | 141 |
|
142 |
|
|
143 | 142 |
/** |
144 |
* Returns a list containing the formats supported by the coverage |
|
145 |
* |
|
146 |
* Devuelve una lista de formatos soportados por la cobertura. |
|
147 |
* |
|
148 |
* @param coverage |
|
149 |
* @return ArrayList |
|
143 |
* Returns the layer descriptor for a given coverage name. |
|
144 |
* @param layerName |
|
145 |
* @return WCSLayer |
|
150 | 146 |
*/ |
151 |
public ArrayList getFormats(String coverage){ |
|
152 |
return client.getFormats(); |
|
153 |
} |
|
154 |
|
|
155 | 147 |
public WCSLayer getLayer(String layerName) { |
156 |
WCSLayer[] lyrs = getLayerList(); |
|
157 |
for (int i = 0; i < lyrs.length; i++) { |
|
158 |
if (layerName.equals(lyrs[i].getName())) |
|
159 |
return lyrs[i]; |
|
160 |
} |
|
161 |
return null; |
|
148 |
return (WCSLayer) coverages.get(layerName); |
|
162 | 149 |
} |
163 | 150 |
|
151 |
/** |
|
152 |
* Returns an array of WCSLayer's with the descriptors of all coverages |
|
153 |
* @return WCSLayer[] |
|
154 |
*/ |
|
164 | 155 |
public WCSLayer[] getLayerList(){ |
165 | 156 |
if (coverages == null) { |
166 | 157 |
// the WCSLayer collection will be built |
... | ... | |
253 | 244 |
|
254 | 245 |
/** |
255 | 246 |
* Establishes the connection to the WCS server. Connecting to a WCS is |
256 |
* an abstraction, it actually sends a GetCapabilities and a general |
|
257 |
* DescribeCoverage request (not a coverage-specific DescribeCoverage request) |
|
258 |
* to read the necessary data for building further GetCoverage requests. |
|
259 |
* |
|
260 |
* |
|
261 |
* La conexi?n a un servidor WCS es una abstracci?n de dos operaciones: |
|
262 |
* GetCapabilities y DescribeCoverage. Con ellas, se obtienen los datos |
|
263 |
* necesarios para poder operar con el servidor. |
|
264 |
* |
|
265 |
* |
|
247 |
* an abstraction.<br> |
|
248 |
* <p> |
|
249 |
* Actually, it sends a GetCapabilities and a general DescribeCoverage |
|
250 |
* request (not a coverage-specific DescribeCoverage request) to read the |
|
251 |
* necessary data for building further GetCoverage requests. |
|
252 |
* </p> |
|
266 | 253 |
* @throws IOException, DriverException. |
267 | 254 |
*/ |
268 | 255 |
public boolean connect() throws IOException, DriverException { |
... | ... | |
272 | 259 |
|
273 | 260 |
/** |
274 | 261 |
* No close operation is needed since WCS service it is a non-session based |
275 |
* protocol. So, this does nothing and you can omit it. |
|
276 |
* |
|
277 |
* La operaci?n close no es necesaria en un servicio WCS ya que este se implementa |
|
278 |
* sobre un protocolo no orientado a sesiones. As? que esto no hace nada y puede |
|
279 |
* ser omitido. |
|
280 |
* |
|
262 |
* protocol. So, this does nothing and you can omit it.<br> |
|
281 | 263 |
*/ |
282 | 264 |
public void close() { |
283 | 265 |
setConnected(false); |
... | ... | |
285 | 267 |
|
286 | 268 |
/** |
287 | 269 |
* Returns the label of an specific coverage given by the coverage name |
288 |
* |
|
289 |
* Obtiene la etiqueta de una cobertura espec?fica |
|
290 |
* |
|
291 |
* @param nombre de la cobertura (string) |
|
270 |
* @param coverage name (string) |
|
292 | 271 |
* @return string |
293 | 272 |
*/ |
294 | 273 |
public String getLabel(String coverageName) { |
... | ... | |
297 | 276 |
|
298 | 277 |
/** |
299 | 278 |
* Returns the coverage's MAX extent from the server. |
300 |
* |
|
301 |
* Obtiene la M?XIMA extensi?n de la cobertura de el servidor. |
|
302 | 279 |
* @return Rectangle2D |
303 | 280 |
* @throws DriverException |
304 | 281 |
* @throws IOException |
... | ... | |
309 | 286 |
|
310 | 287 |
/** |
311 | 288 |
* Returns the max resolution of a specific coverage given by the coverage's name. |
312 |
* |
|
313 |
* Obtiene la resoluci?n m?xima de una cobertura espec?fica |
|
314 |
* @param nombre de la cobertura (string) |
|
289 |
* @param coverage name (string) |
|
315 | 290 |
* @return double |
316 | 291 |
*/ |
317 | 292 |
public Point2D getMaxResolution(String coverageName) { |
... | ... | |
324 | 299 |
|
325 | 300 |
/** |
326 | 301 |
* Returns an ArrayList containing a set of Strings with the coverage's SRSs. |
327 |
* |
|
328 |
* Obtiene un ArrayList con los SRS de una cobertura espec?fica |
|
329 |
* @param Nombre de la cobertura (string) |
|
302 |
* @param coverage name (string) |
|
330 | 303 |
* @return ArrayList |
331 | 304 |
*/ |
332 | 305 |
public ArrayList getSRSs(String coverageName) { |
... | ... | |
338 | 311 |
|
339 | 312 |
/** |
340 | 313 |
* Returns a String containing a description of an specific coverage. |
341 |
* |
|
342 |
* Obtiene la descripci?n de una cobertura espec?fica |
|
343 |
* @param Nombre de la cobertura (string) |
|
314 |
* @param coverage name (string) |
|
344 | 315 |
* @return string |
345 | 316 |
*/ |
346 | 317 |
public String getCoverageDescription(String coverageName) { |
... | ... | |
353 | 324 |
/** |
354 | 325 |
* Returns an ArrayList containing strings for the time positions of an |
355 | 326 |
* specific coverage given by the coverage's name. |
356 |
* |
|
357 |
* Obtiene la lista de tiempos de una cobertura espec?fica |
|
358 |
* @param nombre de la cobertura (string) |
|
327 |
* @param coverage name (string) |
|
359 | 328 |
* @return ArrayList |
360 | 329 |
*/ |
361 | 330 |
public ArrayList getTimes(String coverageName) { |
... | ... | |
365 | 334 |
return null; |
366 | 335 |
} |
367 | 336 |
|
337 |
/** |
|
338 |
* Sends a GetCoverage request to the client. |
|
339 |
* @param status |
|
340 |
* @return |
|
341 |
* @throws WCSException |
|
342 |
*/ |
|
368 | 343 |
public File getCoverage(WCSStatus status) throws WCSException { |
369 | 344 |
try { |
370 | 345 |
return client.getCoverage(status); |
Also available in: Unified diff