Skip to main content
Question

Classify raster data by breakpoints

  • October 18, 2016
  • 4 replies
  • 287 views

Forum|alt.badge.img

Hello FME-Community,

 

 

I’d like to classify raster data by using breakpoints and I want to adapt the RGB-Codes before the output. Maybe someone of the community here can help me.

 

 

Thank you so much. :)

 

 

Best regards!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • October 18, 2016

Hi @abu_de_bdlq_16 I think this article is a good starting point on how to use the RasterExpressionEvaluator to classify your rasters.

It would help if you could specify more on what you are actually trying to achieve.


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • October 18, 2016

You can use conditional values in a RasterExpressionEvaluator, but nesting several layers makes the expression very complicated.

 

 

Depending on your exact scenario, I might recommend using the RasterCellValueReplacer and paletes.

Forum|alt.badge.img
  • Author
  • October 19, 2016

Both ways are possible, thank you so much. :)


takashi
Celebrity
  • January 3, 2017

Hi @abu_de_bdlq_16, if the requirement is to classify the cells of a grayscale raster into five classes by four threshold values and replace cell values with specific colors associated to each class, this workflow might be helpful.

Notes:

  • Modify the thresholds in the expression according to the actual demand.
  • See the help on the RasterPaletteExtractor transformer to learn about the syntax for palette definitions.

upper: source raster, lower: result