ok, I got it.
thanks for your help.
for further problems with this problem:
just calculate the max and min values and determine the difference between
them. afterwards you have to split the difference into equal parts. Looks
like this:
range = max - min;
interval = range/4;
ColorMap cm =
sb.createColorMap(
new double[] {min, min+interval, min+2*interval, min+3*interval,
max},
new Color[] {
new Color(0, 255, 0),
new Color(255, 255, 0),
new Color(255, 127, 0),
new Color(191, 127, 63),
new Color(255, 255, 255)},
ColorMap.TYPE_RAMP);
Be careful with negative values!
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Problems-displaying-gridCoverage2D-everything-is-green-tp5057223p5065580.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users