On Thu, Apr 3, 2008 at 10:06 PM, Saul Farber <[EMAIL PROTECTED]> wrote: > 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. >
Well, what I would do this for this is applying a color map which is why I put together the RasterSymbolizer work :-). If you check the proposal page http://docs.codehaus.org/display/GEOTOOLS/Raster+Symbolizer+support (which I am slowly refactoring) you'll see that in action. What I am talking about here is something slightly different. I am trying to think about a fallback solutions when someone specifies a wrong (in the java meaning of this world) RasterSymbolizer which would produce an unrenderable image. I am committing all the work to the gt-2.4.x-rs branch but before doing the actual merge on trunk i would like to solve this. You can play with the code if you like. Simone. > --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 > -- ------------------------------------------------------- Eng. Simone Giannecchini President /CEO GeoSolutions S.A.S. Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob: +39 333 8128928 http://www.geo-solutions.it ------------------------------------------------------- ------------------------------------------------------------------------- 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
