Hi, I'm trying to give a default colortable to the grass datastore. I
am not able to understand how to deal with colors.
I know that the styler will be applied, but I want to exploit this also.

So when the coverage is created I see something like:

                                        nan = new Category(Vocabulary
                                                        
.formatInternational(VocabularyKeys.NODATA),
                                                        new Color(0, 0, 0, 0), 
min - 1 );

                                        values = new Category("values", colors, 
new NumberRange(
                                                        min, max), new 
NumberRange(min, max));

This is:

                        final GridSampleDimension band = new 
GridSampleDimension(
                                        coverageName, new Category[] { nan, 
values }, uom)
                                        .geophysics(true);
                        return coverageFactory.create(coverageName, raster,
                                        originalEnvelope, new 
GridSampleDimension[] { band }, null,
                                        properties);

Where I copied the code from I have the two ranges between 1-255 and
0-9000. Since my sample values are really geophisical values, I
thought I could use both the raster values range, which doesn't apply
instead.

Any hint on how I can create properly the nan and values categories
when I have the min, max and array of colors?

Thanks,
Andrea

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to