Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1249 Added new color ramp in Raster Styler (DEM) #1408

Merged
merged 2 commits into from
Jan 26, 2017

Conversation

allyoucanmap
Copy link
Contributor

  • Added new file to extend colorbrewer
  • Added 5 new elements in color ramp array
  • Extended colorbrewer with new color scales

_255

Below the colors palettes on Weather data (left) and on ETOPO1* (right):

Earth - custom palette
255earthdem

Water - custom palette
255waterdem

Land - custom palette
255landdem

CDA - ramp from http://soliton.vm.bytemark.co.uk/pub/cpt-city/jm/cd/
255cdadem

Simple - ramp from https://github.com/geoserver/geoserver/blob/master/data/release/styles/dem.sld
255simpledem

*Made with QGis to verify the palettes on topography

* Added new file to extend colorbrewer
* Added 5 new elements in color ramp array
* Extended colorbrewer with new color scales
@simboss simboss added the ready label Jan 26, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 80.446% when pulling 4a7c283 on allyoucanmap:dem-color-ramp into 3ab2155 on geosolutions-it:master.

@@ -19,6 +19,9 @@ const {NumberPicker} = require('react-widgets');
const ColorRampItem = require('./EqualIntervalComponents/ColorRampItem');
const colorsSchema = require("./EqualIntervalComponents/ColorRamp");
const colors = require("colorbrewer");
const extendColorBrewer = require("./EqualIntervalComponents/ExtendColorBrewer");
const assign = require('object-assign');
assign(colors, extendColorBrewer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not assign to a const. Do this assign inline, where needed.

12: ["#18c6ca", "#97fe96", "#c5fea5", "#f0feb8", "#fef9bc", "#feee9b", "#f7d580", "#e7cf96", "#d8c9a8", "#c4c1b9", "#e1dfdb", "#ffffff"]
},
Simple: {
3: ["#000000", "#ffd400", "#000000"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should remove #000000 as last color. Keep the last one as #BF7F3F

* fixed ExtendColorRamp
* new color palette in Simple color ramp
@allyoucanmap
Copy link
Contributor Author

Preview new colors:

Styler
_style255

Simple ramp
255simplenewdem

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 80.443% when pulling 51d1801 on allyoucanmap:dem-color-ramp into 3ab2155 on geosolutions-it:master.

@offtherailz offtherailz merged commit 781a0e0 into geosolutions-it:master Jan 26, 2017
@offtherailz offtherailz removed the ready label Jan 26, 2017
@allyoucanmap allyoucanmap deleted the dem-color-ramp branch January 27, 2017 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants