Revision 2992 trunk/libraries/libRemoteServices/src/org/gvsig/remoteClient/WMSClient.java
WMSClient.java | ||
---|---|---|
135 | 135 |
* @return ArrayList |
136 | 136 |
*/ |
137 | 137 |
public ArrayList getFormats(){ |
138 |
return wms.getFormats(); |
|
139 |
//return null;//wms.getCapabilities().getFormats(); |
|
138 |
ArrayList formats = null; |
|
139 |
try |
|
140 |
{ |
|
141 |
formats = wms.getCapabilities().getServiceInformation().getFormats(); |
|
142 |
//return null;//wms.getCapabilities().getFormats(); |
|
143 |
} |
|
144 |
catch(Exception e){} |
|
145 |
|
|
146 |
return formats; |
|
140 | 147 |
} |
141 | 148 |
|
142 | 149 |
public String[] getLayerNames(){ |
143 |
return wms.getLayerNames(); |
|
144 |
//return null; |
|
150 |
String[] names = null; |
|
151 |
try |
|
152 |
{ |
|
153 |
names = wms.getCapabilities().getMapComposition().getLayerNames(); |
|
154 |
} |
|
155 |
catch(Exception e){} |
|
156 |
return names; |
|
145 | 157 |
} |
146 | 158 |
|
147 | 159 |
/** |
Also available in: Unified diff