GeoscienceAustralia / ga-worldwind-suite

A collection of tools created by the Geoscience Australia (GA) Movies and 3D Visualisation (M3DV) team. The tools are built around the NASA World Wind Java SDK, an open-source virtual globe toolkit.
40 stars 24 forks source link

Add a mode parameter to the ColorMap element to allow classifications etc. #88

Open jfnavin opened 12 years ago

jfnavin commented 12 years ago

Useful modes might be "floor" "ceiling" "nearest" or "interpolate"

Default mode would be "interpolate" which would behave as existing.

The new modes would allow classification colour schemes to be easily added. Eg. "ceiling" would allow you to define class breaks at the upper end of a range.

Example:

<ColorMap mode="ceiling" percentages="true">
  <Entry value="0.5" red="255" green="0" blue="0"/>
  <Entry value="1.0" red="0" green="0" blue="255"/>
</ColorMap>

This configuration would result in all values up to and including the midpoint of the data to be coloured red, and the remainder to be coloured blue.