Revision 188 trunk/libraries/libWMSv0/src/com/iver/wmsclient/wms_1_0_0/WMS_1_0_0.java
WMS_1_0_0.java | ||
---|---|---|
12 | 12 |
import com.iver.wmsclient.wms_1_0_0.capabilities.BoundingBox; |
13 | 13 |
import com.iver.wmsclient.wms_1_0_0.capabilities.DCPType; |
14 | 14 |
import com.iver.wmsclient.wms_1_0_0.capabilities.FeatureInfo; |
15 |
import com.iver.wmsclient.wms_1_0_0.capabilities.Format; |
|
15 | 16 |
import com.iver.wmsclient.wms_1_0_0.capabilities.LatLonBoundingBox; |
16 | 17 |
import com.iver.wmsclient.wms_1_0_0.capabilities.Layer; |
17 | 18 |
import com.iver.wmsclient.wms_1_0_0.capabilities.WMT_MS_Capabilities; |
... | ... | |
268 | 269 |
|
269 | 270 |
for (int i = 1; i < t.length; i++) { |
270 | 271 |
for (int j = 0; j < raiz.getLayerCount(); j++) { |
272 |
if (raiz.getLayer(j).getName() == null) continue; |
|
271 | 273 |
if (raiz.getLayer(j).getName().getContent().equals(t[i])) { |
272 | 274 |
raiz = raiz.getLayer(j); |
273 | 275 |
ret.add(raiz); |
... | ... | |
327 | 329 |
public String[] getInfoURLs() { |
328 | 330 |
return infoURLs; |
329 | 331 |
} |
332 |
|
|
333 |
/** |
|
334 |
* @see com.iver.wmsclient.WMSClient#getInfoFormats() |
|
335 |
*/ |
|
336 |
public String[] getInfoFormats() { |
|
337 |
ArrayList formatos = new ArrayList(); |
|
338 |
Format f = root.getCapability().getRequest().getFeatureInfo().getFormat(); |
|
339 |
if (f.getGeoTIFF()!= null){ |
|
340 |
formatos.add("GeoTIFF"); |
|
341 |
} |
|
342 |
|
|
343 |
if (f.getBLANK()!= null){ |
|
344 |
formatos.add("BLANK"); |
|
345 |
} |
|
346 |
|
|
347 |
if (f.getGIF()!= null){ |
|
348 |
formatos.add("GIF"); |
|
349 |
} |
|
350 |
|
|
351 |
if (f.getGML_1()!= null){ |
|
352 |
formatos.add("GML.1"); |
|
353 |
} |
|
354 |
|
|
355 |
if (f.getGML_2()!= null){ |
|
356 |
formatos.add("GML.2"); |
|
357 |
} |
|
358 |
|
|
359 |
if (f.getGML_3()!= null){ |
|
360 |
formatos.add("GeoGML.3"); |
|
361 |
} |
|
362 |
|
|
363 |
if (f.getINIMAGE()!= null){ |
|
364 |
formatos.add("INIMAGE"); |
|
365 |
} |
|
366 |
|
|
367 |
if (f.getJPEG()!= null){ |
|
368 |
formatos.add("JPEG"); |
|
369 |
} |
|
370 |
|
|
371 |
if (f.getMIME()!= null){ |
|
372 |
formatos.add("MIME"); |
|
373 |
} |
|
374 |
|
|
375 |
if (f.getPNG()!= null){ |
|
376 |
formatos.add("PNG"); |
|
377 |
} |
|
378 |
|
|
379 |
if (f.getPPM()!= null){ |
|
380 |
formatos.add("PPM"); |
|
381 |
} |
|
382 |
|
|
383 |
if (f.getSVG()!= null){ |
|
384 |
formatos.add("SVG"); |
|
385 |
} |
|
386 |
|
|
387 |
if (f.getTIFF()!= null){ |
|
388 |
formatos.add("TIFF"); |
|
389 |
} |
|
390 |
|
|
391 |
if (f.getWBMP()!= null){ |
|
392 |
formatos.add("WBMP"); |
|
393 |
} |
|
394 |
|
|
395 |
if (f.getWebCGM()!= null){ |
|
396 |
formatos.add("WebCGM"); |
|
397 |
} |
|
398 |
|
|
399 |
if (f.getWMS_XML ()!= null){ |
|
400 |
formatos.add("WMS_XML"); |
|
401 |
} |
|
402 |
|
|
403 |
return (String[]) formatos.toArray(new String[0]); |
|
404 |
} |
|
330 | 405 |
} |
Also available in: Unified diff