Simone, Martin, I'm actually butting up against this very issue right now.
I've got a float-denominated elevation-model raster with values that are "geophysics" values, not image values. From what I can tell, in order to handle float-backed rasters, java wants the floats to be normalized (mapped into the interval [0.0,1.0]) in some manner. So I've got raw data with no colormodel. I can jam all the float samples into a DataBufferFloat, but the resulting BufferedImage is basically un-drawable in an ARGB way in its raw form. I'd LOVE to hear what you guys come up with. If I can punt this "unrenderable" float-backed coverage over to RasterSymbolizerSupport and have it "normalize" (what I think you called option 2, simone) and then map to AGray and paint the coverage, I'd be really happy. --saul > I am not talking about raster with IndexColorModel, I should have > probably pointed that out. > Typical exmple would be elevation data, which is most part of the time > store in rasters with single band of type short which cannot be > visualized direclty. > > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
