|
Thanks Simone. I actually just found why I was getting somewhat of an
incorrect result. In my fiddling with the 2.4.x release I had
explicitly set the ColorMap to TYPE_INTERVAL (which didn't do anything
in 2.4). As soon as I removed that, and let it do ramps it works much
better. You deserve to compliment yourself! This is a big improvement over the 2.4.x code! :-) Matt Simone Giannecchini wrote: To give a correct answer I need some more details, but I would say it is possible since that is part of the SLD 1.0 raster symbolizer specification. I did not implement all the element but color map has been fully implemented. Actually, I did add some nice ( yeah, I am complimenting with myself :-) ) additional features. The correct behavior for colormap is to build ramps, well with the rastersymbolizer code you cold build also simple classifications and single values mapping. If you check the testColorMap method in the RasterSymbolizerTest class you should be able to understand what I am talking about.Simone. On Fri, May 9, 2008 at 2:59 PM, Matt Foster <[EMAIL PROTECTED]> wrote:Simone, Is it possible at this time to interpolate between two colors in the ColorMap? Matt Matt Foster wrote: I started working some with 2.5M2 yesterday, and initially I'm getting some better results. I'll provide more details as I get into it more. Oh...I did have some problems at first, where my call to ImageIO.write() kept getting the imageio that seems to be packaged as a gt2 extension (?). I don't have GDAL SWIG bindings installed, and my code kept crashing as it was trying to load gdaljni. I finally had to delete the imageio-ext-* jars to get it to stop doing that. I'm using Netbeans 6, and it was not sufficient to just remove those jars in the NB library manager. Maybe it's a Netbeans issue... Matt Michael Bedward wrote: Ciao Simone I'm working with 2.5 trunk Any tips you can offer would be very welcome ! Michael On Fri, May 9, 2008 at 10:36 PM, Simone Giannecchini <[EMAIL PROTECTED]> wrote: Ciao Michael, which version of geotools are you playing with? I'd like to try and give some help... Ciao, Simone. On Fri, May 9, 2008 at 2:22 PM, Michael Bedward <[EMAIL PROTECTED]> wrote: me too :-) in other words - I've also been trying to display single band coverages with float or double data. I've been trying to do it programmatically by creating a simple ColorMap and using this in the creation of a RasterSymbolizer. I then use GridCoverageRenderer.paint() with this symbolizer and get yet another grayscale image <sigh> There are some sexy images of dems, temperature coverages etc on the geotools site. What's the secret ? Michael On Fri, May 9, 2008 at 12:09 AM, Matt Foster <[EMAIL PROTECTED]> wrote: Greetings...I'm trying to make a raster from a matrix of floats via a GridCoverage2D object. I get the GridCoverage created with no problems, but the resulting raster does not get colored properly according to the ColorMap I created in an SLD file. From what I can tell, it appears that the entire range of data from my float[][] array gets put into a single Category in the GridSampleDimension. Looking at the source in RasterSymbolizerSupport it looks like the data need to be categorized, such that the Categories can match up to entries in the ColorMap. Is that basically correct? It appears that my options may be somewhat limited. I think I may have to manually "roll my own" GridSampleDimension with categories specific to my dataset. Does anyone have a better option? TIA for any input. Matt ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- ------------------------------------------------------- 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 ------------------------------------------------------- -- The cosmos is all that is or ever was or ever will be. -- Carl Sagan ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ________________________________ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- The cosmos is all that is or ever was or ever will be. -- Carl Sagan -- The cosmos is all that is or ever was or ever will be. -- Carl Sagan |
begin:vcard fn:Matt Foster - N0EYE n:Foster;Matt org:;NWS Forecast Office - Norman OK email;internet:[EMAIL PROTECTED] title:Information Technology Officer tel;work:(405) 325-3406 x-mozilla-html:TRUE version:2.1 end:vcard
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
