Hi everybody!

I'm trying to get a GridCoverage from an Web Map Server. I have an  
existing WebMapServer object.
Because there is no way (I don't know any way) to get the URL of this  
server from the WebMapServer object, I instantiated the WMSReader  
directly with my WebMapServer instance.
I looked for the example Code of getting a GridCoverage from wms in  
the test case of WMSGridCoverageExchange. I've copied the code but if  
I execute the two lines:

WMSFormat format = (WMSFormat) reader.getFormat();
ParameterValueGroup valueGroup = format.getReadParameters();

I got an ArrayIndexOut of bound exception.

Is that a bug or have I done anything wrong?

By the way: Why is the a constructor WMSGridCoverageExchange(Object  
server)? I only know from the source that you can give a String, a  
URL or a WMSCapabilitiy as a param. I think it is a better way to  
write a constructor for each of the three seperatly.


Greetings,
Benedikt

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to