Hi all,
im trying to use WMS with geotools and i got an exception..
Can soemone help me?
Thx, Fred.
 
 
ive done this:
 

WebMapServer wms = new WebMapServer( new URL(

"http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/teste/Example1-1.map&" ) );

WMSCapabilities capabilities = wms.getCapabilities();

GetMapRequest request = wms.createGetMapRequest(); **

...

 

and get this exception when the code reach ** :

java.lang.ArrayIndexOutOfBoundsException: 1

at org.geotools.data.ows.AbstractRequest.<init>(AbstractRequest.java:100)

at org.geotools.data.wms.request.AbstractWMSRequest.<init>(AbstractWMSRequest.java:10)

at org.geotools.data.wms.request.AbstractGetMapRequest.<init>(AbstractGetMapRequest.java:42)

at org.geotools.data.wms.WMS1_0_0$GetMapRequest.<init>(WMS1_0_0.java:233)

at org.geotools.data.wms.WMS1_1_0$GetMapRequest.<init>(WMS1_1_0.java:132)

at org.geotools.data.wms.WMS1_1_1$GetMapRequest.<init>(WMS1_1_1.java:69)

at org.geotools.data.wms.WMS1_1_1.createGetMapRequest(WMS1_1_1.java:89)

at org.geotools.data.wms.WebMapServer.createGetMapRequest(WebMapServer.java:162)

at gov.imbel.gui.MainFrame.loadWMS(MainFrame.java:657)

...

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to