I write a fair bit of the documentation; but it is a collaborate effort based 
on email such as yours. 

However the code example is correct for the tutorial; it was intended to only 
be used for RGB images (and not things like DEMs).


-- 
Jody Garnett


On Saturday, 29 October 2011 at 3:09 AM, LuVar wrote:

> Hi, in middle of 
> http://docs.geotools.org/latest/userguide/tutorial/raster/image.html page 
> there is some code which is nice, but do not tell me who wrote it and where 
> he live...
> 
> have look at it:
> 
> // We need at least three bands to create an RGB style
> int numBands = cov.getNumSampleDimensions();
> if (numBands < 3) {
> return null;
> }
> 

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps 
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to