From: Gabriella Turek 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, 3 May 2016 11:34
To: Gabriella Turek 
<[email protected]<mailto:[email protected]>>
Subject: Raster styling with noData value

Hi all,
the examples of raster styling that are in github are brilliant (thanx again 
Andrea!), but there’s one example missing: the case of of a raster with a no 
data value (typically –9999)
I would like to be able to color my raster with a ramp type style between min 
and max, and this is very well illustrated in the examples, but it is no clear
how to add in there a color for no data points that  is not the same as the min 
value….Because if it is not, then the color between –9999 and min gets “ramped”
as well.
Thanx
Gaby

Hi Gabriella,
some time ago I built a fluent StyleBuilder that is meant to replace the old 
clunky
one still available in the main module.
You can get it by depending on the gt-brewer module, and there are examples on
how to build programmatically styles without getting crazy in its tests, see 
the Cookbook* classes:
https://github.com/geotools/geotools/tree/master/modules/extension/brewer/src/test/java/org/geotools/styling/builder

In particular for rasters:
https://github.com/geotools/geotools/blob/master/modules/extension/brewer/src/test/java/org/geotools/styling/builder/CookbookRasterTest.java

Cheers
Andrea


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to