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

Add support for colormap with floating point keys #206

Merged

Conversation

moradology
Copy link
Collaborator

@moradology moradology commented Feb 17, 2020

Overview

This PR adds support for ColorMap with non-integer keys by looking for an incorrectly parsed value. If incorrectly parsed, the non-integer key is reconstructed. This appears to be safe because this code path is only exercised when we're attempting to decode a ColorMap and not more generally as HOCON is being parsed

Checklist

  • Description of PR is in an appropriate section of the CHANGELOG and grouped with similar changes if possible

Demo

The example configuration now includes a set of floating point keyed ColorMaps

Testing Instructions

  • Run the example OGC server

Closes #187

Copy link
Member

@pomadchin pomadchin left a comment

Choose a reason for hiding this comment

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

LGTM; let's merge it!

@pomadchin pomadchin merged commit 9eb37f7 into geotrellis:develop Feb 18, 2020
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.

Unsupported non-integer value as ColorMap keys
2 participants