Rainer Suddendorf a écrit :
I am trying to display a map from a web map server.
In some cases I get the following exception, although I get a valid image from the WMS :

java.lang.IllegalArgumentException: Band number 3 is not valid.
   at org.geotools.coverage.TypeMap.getColorInterpretation(TypeMap.java:522)
at org.geotools.coverage.grid.Grid2DSampleDimension.getColorInterpretation(Grid2DSampleDimension.java:363) [...snip...]



It sound like that there is a glitch in the way the color model is setup. Could you send us the following informations please:

System.out.println(gridCoverage);
System.out.println(gridCoverage.getRenderedImage());

        Martin.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to