svn-gvsig-desktop / trunk / libraries / libRemoteServices / src / org / gvsig / remoteClient / Tests / Test.java @ 3341
History | View | Annotate | Download (526 Bytes)
1 |
package org.gvsig.remoteClient.Tests; |
---|---|
2 |
|
3 |
import org.gvsig.remoteClient.wms.WMSClient; |
4 |
|
5 |
import junit.framework.TestCase; |
6 |
|
7 |
public class Test extends TestCase |
8 |
{ |
9 |
|
10 |
public static void main(String[] args) |
11 |
{ |
12 |
WMSClient wmsclient = new WMSClient("http://wms.geodan.nl/startdata/sclmapserver.exe?"); |
13 |
|
14 |
try
|
15 |
{ |
16 |
wmsclient.connect(); |
17 |
System.out.println();
|
18 |
String[] layerNames = wmsclient.getLayerNames(); |
19 |
System.out.println(layerNames);
|
20 |
} |
21 |
catch(Exception e) |
22 |
{ |
23 |
System.out.println(e.getMessage());
|
24 |
} |
25 |
} |
26 |
|
27 |
} |